Characters to Avoid in Web Folders and Filenames

To avoid broken links, naming conventions are important in web folders and filenames.

Do not use any of these common characters:

  • # pound
  • < left angle bracket
  • $ dollar sign
  • + plus sign
  • % percent
  • > right angle bracket
  • ! exclamation point
  • ^ circumflex accent
  • & ampersand
  • * asterisk
  • ‘ single quotes
  • | pipe
  • { left bracket
  • ? question mark
  • “ double quotes
  • = equal sign
  • } right bracket
  • / forward slash
  • : colon
  • \ back slash
  • blank spaces
  • @ at sign

Also, keep these rules in mind.

  • Don’t start or end your filename with a space, period, hyphen, or underline.
  • Keep your filenames to a reasonable length and be sure they are under 31 characters.
  • Blank spaces are replaced by %20 by the browser. Which makes it harder to read if shared.

Acceptable Characters

  • - hyphen
  • _ underscore

Examples

Best practices for web folder and file naming.

Good filenames:

  • website-training-class-sample.pdf
  • website_training_class_sample.pdf
  • website_training-class_sample.pdf
  • WebsiteTrainingClassSample.pdf
  • websitetrainingclasssample.pdf

Bad filenames:

  • website training class sample.pdf (browser renders: website%20training%20class%20sample.pdf)

Good folder names:

  • Word-Documents
  • Word_Documents
  • WordDocuments
  • worddocuments

Bad folder names:

  • Word Documents (browser renders: .../Word%20Documents/...