Batch Rename Fixer

Turn a messy list of filenames into clean, safe ones — and get the script to apply it.

100% private — your files never leave your device. Every tool on this page runs entirely in your browser. Files are processed locally and are never uploaded to any server, never stored, and never shared.

Batch Rename Fixer

Paste a list of filenames (one per line). Clean illegal characters, spaces, and duplicates, then generate a rename script you run yourself.

Rename scripts

Generated rename commands appear here.

When to use this

Filenames break uploads, shells, and cross-platform moves because of characters like :, *,?, ", <, >, and |, or because of spaces some systems hate. When you have dozens of files from a camera, a download, or a colleague, fixing them by hand is tedious and error-prone. Paste the list, choose your rules, and get a script that renames them all in one go.

Worked example

You paste my photo (1).jpg, report: final_v2.png, bad*name.pdf. With “spaces → dash” and illegal-character stripping, they become my-photo-1.jpg, report-final_v2.png,badname.pdf. If two sanitize to the same name, the tool appends -1 so nothing is overwritten.

What it does and doesn’t do

It sanitizes names and resolves duplicates safely; it does not touch your files directly. Browsers can’t bulk-rename local files for privacy reasons, so it emits a PowerShell script (Windows) and a bash script (macOS/Linux) you run in the folder yourself. Always review the script before executing — renaming is reversible only if you check the mapping first.

FAQ

Will it overwrite files? No. Duplicate resulting names get a -1, -2 suffix so each output is unique.

Why a script instead of renaming here? A browser can’t safely rename files on your disk. The script puts you in control and works offline.

Are my filenames uploaded? No. Processing happens locally in your browser.

Related tools from our network

A focused set of free calculators and guides across related topics — no account required.