Filename Cleaner
Clean up messy filenames β remove spaces, special characters, batch rename in seconds.
Messy filenames with spaces, brackets, and special characters cause problems when uploading, sharing, or scripting.
How to use
- Paste your filenames into the box, one per line.
- Choose how to handle spaces and whether to lowercase.
- Click "Clean filenames" β copy the results or use them to rename your files.
- Note: browsers cannot rename files on your disk directly. Use the cleaned names when saving or renaming.
About this tool
This tool cleans them in bulk following common safe-naming conventions.
Everything runs in your browser β your filenames never leave your device.
How it works
The cleaner replaces spaces with hyphens or underscores and strips characters that are illegal or troublesome in filenames β / \ : * ? " < > | and control characters. Accented letters are transliterated (Γ© becomes e) so files stay portable across Windows, macOS, and Linux.
It also collapses repeated separators ("my--file" becomes "my-file") and trims leading and trailing dots and spaces, which Windows silently mangles. The result works everywhere: web servers, cloud storage, and email attachments.
Worked examples
Photo batch: "IMG_2026 Vacation (1).JPG" becomes "img_2026-vacation-1.jpg" β web-safe and sortable.
Downloads folder: Clean up "Report Final FINAL v2 (1).pdf" into "report-final-v2-1.pdf" before archiving.
Quick reference
| Removed / replaced | Becomes |
|---|---|
| Spaces | - (hyphen) or _ (underscore) |
| / \ : * ? " < > | | Removed |
| Accented letters (Γ©, ΓΌ, Γ±) | Plain letters (e, u, n) |
| Repeated separators (--) | Single separator (-) |
| Leading / trailing dots & spaces | Trimmed |
Frequently asked questions
Will this rename files on my computer?
No β browsers cannot rename files on disk for security. Copy the cleaned names and rename manually, or use them when saving new files.
Are Chinese characters kept?
Yes, Chinese characters (CJK) are preserved by default. Only unsafe symbols like brackets, quotes, and emojis are removed.
What characters are removed?
Everything except letters, numbers, underscores, hyphens, dots, and CJK characters.
More free tools
Word Counter
Count words, characters, sentences and reading time as you type.
Text Case Converter
Change text to UPPERCASE, lowercase, Title Case and more.
Lorem Ipsum Generator
Generate placeholder text for designs and mockups.
Remove Duplicate Lines
Delete repeated lines, keep the first occurrence.
Sort Lines Alphabetically
Sort any list AβZ or ZβA in one click.
URL Slug Generator
Turn titles into clean URL slugs.