Clean pasted file names in bulk while preserving extensions and making names easier to use across systems.
How to clean a list of file names
- Paste file names, one per line. Blank lines are ignored. Use up to 500 names and 20,000 characters.
- Choose whether to lowercase the names and replace whitespace with hyphens.
- Select Clean File Names, review the output and any duplicate warning, then copy the list.
This tool prepares a list of names; it does not upload, rename or modify files on your device. Changing the input or options clears the previous result. Reset clears the result and restores the default options.
Cleaning rules and examples
The cleaner normalizes Unicode compatibility characters, removes control characters and the reserved characters < > : " / \ | ? *, and trims trailing spaces and periods. It collapses repeated punctuation separators in the base name. With the default options, photo 01.JPG becomes photo-01.JPG. With lowercase enabled, it becomes photo-01.jpg.
The last dot separates the extension from the base name. The extension is retained after invalid characters are cleaned; this does not convert the file format. For example, report.p?df becomes report.pdf. Windows reserved device names receive an underscore prefix: CON.txt becomes _CON.txt. A name that becomes empty is rejected so it cannot silently disappear from your list.
Review duplicates before renaming
Different inputs can produce the same result. For example, a?.txt and a*.txt both become a.txt. The tool preserves both rows and warns about repeated results, ignoring letter case. It does not add numbered suffixes or decide which file to keep. Choose distinct names before using a batch renaming application to avoid overwriting files.
Limits and related tools
Paste file names rather than full paths or URLs: path separators are removed, not interpreted as folders. Leading-dot names such as .env lose their leading dot, which may change how software treats them. Rename configuration files only after checking their requirements. Filename length limits, Unicode comparisons and additional restrictions vary by filesystem and application, so these rules cannot guarantee compatibility everywhere.
Use the Slug Generator for website slugs, or browse Developer Tools for other text and web utilities. Keep a backup and check references before renaming files used by a website, project or application.
Different operating systems and applications have different naming rules. Review results before renaming real files, especially when names are referenced by software or links.