Skip to content
M2TOOLKIT

Files · free tool

Filename Cleaner

Make file names safe for websites, servers and every operating system.

Download as many files as you want — it's free, with no sign-up and no size caps beyond your device.

  • Files
  • Free
  • No sign-up
  • Runs in your browser
  • Updated
Separator

To rename actual files in one go, use the Batch File Renamer.

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us.

How to use the Filename Cleaner

  1. Paste file names, one per line.
  2. Choose hyphens or underscores and letter case.
  3. Copy the clean names.

What does this tool do?

Spaces, accents and symbols in file names cause broken links on websites and errors on some systems. The cleaner converts accented letters (é → e), removes symbols and joins words with hyphens, while keeping the file extension.

The rules it applies

Accented letters are converted to plain ones (é → e, ü → u, ç → c), symbols and brackets are removed, and runs of spaces or punctuation become a single separator: a hyphen or an underscore, your choice. With Lowercase on, everything becomes lower-case. The extension is kept and always lower-cased, so .JPG becomes .jpg.

Some examples from the tool: “My Holiday Photo (Final) #2.JPG” becomes my-holiday-photo-final-2.jpg, “Q3 report v2 FINAL!!.docx” becomes q3-report-v2-final.docx, and “Ça va?.txt” becomes ca-va.txt.

Names it handles differently

Only the last extension is kept, so archive.tar.gz becomes archive-tar.gz; rename double extensions back by hand. Hidden “dotfiles” like .htaccess lose their leading dot. Letters outside the Latin alphabet (Chinese, Arabic, Cyrillic and so on) are removed, so “照片 2026.png” becomes 2026.png. Keep the original names for those files.

This tool only writes the new names. To rename real files on your computer in one go, use the Batch File Renamer.

Related: Batch File Renamer

Why use it?

  • Web-safe image and document names.
  • Avoid “%20” in URLs.
  • Consistent naming across a project.

Use cases

  • Images and PDFs before uploading them to a website or CMS.
  • Files shared between Windows, macOS and Linux.
  • Consistent names for a photo library or a project folder.

Example

“Résumé – Anna Müller 2026.pdf” becomes “resume-anna-muller-2026.pdf”.

Common mistakes

  • Keeping spaces in web file names: they become %20 in links and break when copied.
  • Relying on capital letters to tell files apart: Report.pdf and report.pdf are the same file on Windows and macOS but different files on Linux servers.

Privacy

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.

Frequently asked questions

Why should I avoid spaces in file names?

Spaces become %20 in web addresses, break command-line scripts unless you add quotes, and can cause errors when uploading. Hyphens are the usual replacement for files on websites.

Can capital letters in file names cause problems?

Yes, on websites. Most web servers treat Photo.jpg and photo.jpg as different files, so a link with the wrong capitalisation breaks. Lowercase names avoid the problem.

Content last updated . See how M2Toolkit works.

Other tools people use alongside the filename cleaner.