Skip to content

File naming convention generator

Pick the parts a file name should have, put them in order, then choose a separator and a word style. The pattern updates as you go, with example names for four kinds of file.

Parts, in order

  1. 1. Date
  2. 2. Type
  3. 3. Company
  4. 4. Number
Separator

Pattern

{date}_{type}_{issuer}_{number}

Example names

  • Invoice, from scan_0042.pdf2026-03-12_Invoice_AcmeCorp_INV-0042.pdf
  • Contract, from Document (3).docx2026-01-20_Contract_NorthwindTraders.docx
  • Bank statement, from statement.pdf2026-02-28_BankStatement_FirstCityBank.pdf
  • Photo, from IMG_4821.JPG2026-04-05_Photo.jpg

A part a file has no value for drops out with its separator. The photo has no company or number, for example.

Use this pattern in the renamer
  • Dates that sort

    Year-first formats such as 2026-03-12 keep files in date order in any folder view, on any system.

  • One pattern for every file

    A part a file does not have drops out with its separator, so one pattern can name invoices and photos alike.

  • Ready for the renamer

    The pattern uses the renamer's own tokens. Paste it into a custom pattern in the app to name files by what is inside them.

Questions

File naming convention generator, answered

What makes a good file naming convention?

A date first in year-month-day order so files sort by time, then the parts you search by, such as type and company, with one separator used the same way throughout. Leave out characters that some systems refuse.

Which separator should I use?

Underscores and hyphens are safe everywhere and keep names readable in links and scripts. Spaces work on current systems but need quoting on the command line. A dot can be mistaken for the start of the extension.

What do the curly braces mean?

Each {token} is filled from the file: {date} with the document date, {issuer} with the company, {number} with the reference number. Text outside the braces is kept as written.

What happens when a file has no value for a part?

The part drops out together with its separator. If nothing in the pattern has a value, the original name is kept.

Rename files by their contents

The renamer reads dates, companies, document types and numbers from your files on your device, and names each file from them.

Your files are read on your device and never uploaded