Processed online by Toolvito
Document Batch Renamer
Give many documents new names in one go, using what is inside them: the title or author stored in a PDF or Word file, the date it was made, its number of pages, or a piece of text such as an invoice or order number. Add a counter, change letter case and spaces, and replace words. You get the renamed files in a ZIP and a list of old and new names, plus a script that renames the files on your own computer, so you do not have to upload them again.
How to rename documents in a batch
- Choose the documents, or one or more ZIP files that hold them (up to 1,000 files; folders are kept).
- Type the pattern for the new names, for example {date} {title} or Invoice {text:INV-(\d+)}, and choose letter case and spaces.
- Press Rename. Check the old and new names on the page, then download the ZIP, or the script that renames your original files.
Parts of the pattern
- {name} the old name, {ext} its ending (added for you when left out), {folder} the folder it is in.
- {n} a counter; {n:3} with three digits (001, 002). Choose the first number and the step.
- {title}, {author}, {pages} from the document; {date} the date it was made (or the date stored in the ZIP); {today} today.
- {text:...} the first text in the document that matches a pattern (a regular expression), such as {text:INV-(\d+)} for the number after INV-. With brackets, only the part in brackets is used.
Rename the files on your computer
The download has rename-files.ps1 for Windows (PowerShell) and rename-files.sh for macOS and Linux. Put the script in the folder with your files and run it. It checks that every file is there, goes through temporary names so that two files can swap names safely, and stops if a new name is already taken.
Good to know
- Text is read from PDF (the first five pages), Word, OpenDocument and plain text files. A scanned PDF has no text to find; use the OCR & Text Extractor first.
- Characters that Windows does not allow (\ / : * ? " < > |) are removed, and names such as CON or AUX get an underscore. When two files would get the same name, the second becomes "name (2)".
- For photos by the date they were taken, or new names from your own list, use the Batch File Renamer.
Privacy
Your files are sent to the Toolvito server to be renamed. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.