Bulk File Renamer
Published Updated
Rename a batch of files by find and replace, prefix, suffix or a number pattern such as photo-{n}, with an optional case change, and download the copies as one ZIP. Compound extensions such as .tar.gz stay together.
Four modes, with results
Run through the page's own renaming code. In every mode the extension is left alone:
| Mode and settings | Before | After |
|---|---|---|
Find _, replace with - | a_b_c.txt | a-b-c.txt |
Prefix 2026- | a.txt | 2026-a.txt |
Suffix -final | report.pdf | report-final.pdf |
Numbering scene-{n}, start 7, 3 digits | a.png, b.png, c.png | scene-007.png, scene-008.png, scene-009.png |
| Case: title | holiday-photo_2024.jpg | Holiday-photo_2024.jpg |
A numbering pattern with no {n} falls back to the bare number, so no two files collapse to one name. Case change applies after the mode, and upper case turns photo.jpg into PHOTO.jpg.
Renaming a batch
Step 1
Add the files
Any file type. They are listed in the order they were added, each with a bin to remove it; an empty (0-byte) file is left out with a message.
Step 2
Choose a mode and fill it in
Find and replace, prefix, suffix or numbering. The new names update live beside the old ones.
Step 3
Rename and download
Press Rename & Download as ZIP. The archive is renamed-files.zip, and the originals on disk are not changed.
Cases that behave unexpectedly
- Emptied names. A find that removes the whole base name, such as deleting draft from draft.docx, keeps the original name.
- Slashes. A / or \ in your text becomes a hyphen, so a name cannot point to a folder.
- Other characters. Windows forbids < > : " | ? and * in names, per Microsoft's naming rules. The tool does not remove them, so a ZIP entry named that way may not extract cleanly on Windows.
- Leading dots. A name such as .gitignore is treated as having no extension.
When another tool fits better
For images that also need a new size, Bulk Image Resizer resizes many at once. To turn text such as titles into URL-ready names, Slug Generator is built for that.
Inside renamed-files.zip, read back in four browsers
We gave this tool generated files (random bytes and repetitive text, no personal data) in Google Chrome 156, Chromium 153 (Playwright build, not Google Chrome), Firefox 155 and Playwright's WebKit build (not the Safari app), pressed Rename & Download as ZIP, and opened each archive ourselves: names, flags, stored dates and the bytes of every file.
| What we checked | Result in our test (all four engines) |
|---|---|
| File contents | Every entry we read back unpacked to the same bytes as its input (same SHA-256), over 1,000 entries per engine. |
| Cyrillic and accented names | Stored as UTF-8 with the ZIP's UTF-8 flag set, so фото отпуск.txt kept its letters; plain ASCII names were stored without the flag. |
| Date and time stored for each file | Each file's own date, in 2-second steps: .gitignore dated 15 June 2021 10:20:31 was stored as 10:20:30, and a file dated 1975 as 1 January 1980 00:00:00, the earliest ZIP date. |
| A 0-byte file in a batch of nine | Not added. The page showed: One or more files were empty (0 bytes) and couldn't be used. The other eight were listed and zipped. |
| Compression | Every file is deflated: 150,000 random bytes took 150,050 bytes in the ZIP in every engine, and 60,000 bytes of repetitive text took 6,730 (Chrome 156 and Chromium 153), 6,732 (Firefox 155) or 7,192 (WebKit build). |
| A prefix of ../2026/q?<>:"|* | Saved as ..-2026-q?<>:"|*a.txt: slashes became hyphens, and the characters Windows forbids stayed in the name. |
| Engine | 1,000 files of 1 KB | 20 files of 5 MB random bytes (100 MB) | 20 files of 5 MB text (100 MB) |
|---|---|---|---|
| Chrome 156 | 0.50 s | 2.5 s, ZIP 104,891,862 bytes | 2.6 s, ZIP 11,397,354 bytes |
| Chromium 153 | 0.36 s | 2.6 s, ZIP 104,891,862 bytes | 3.2 s, ZIP 11,397,354 bytes |
| Firefox 155 | 0.33 s | 4.2 s, ZIP 104,891,862 bytes | 3.8 s, ZIP 11,397,952 bytes |
| WebKit build | 1.1 s | 2.6 s, ZIP 104,891,762 bytes (contents not read back) | 2.3 s, ZIP 12,325,781 bytes |
Times run from pressing the button to the download link, one run each on our test Mac. In the WebKit build the 100 MB ZIP was offered with all 20 entries listed, but our test could not read it back in full, so its contents were not compared. The 100 MB of random bytes came out about 34,000 bytes larger than the input (34,262; 34,162 in the WebKit build), because data that is already dense does not compress and every file still gets a deflate wrapper, while the text shrank to 11.4 MB (12.3 MB in the WebKit build). The page reads every file into memory before it writes the ZIP.
We read the ZIPs with our own parser.
Odd names, run through the renaming code
These come from the page's renaming code (lib/bulkRename.ts) run in Node 22.23.1 on generated names; the browser runs above gave the same names for the cases they shared.
| Setting | Before | After |
|---|---|---|
Suffix -old | site.tar.gz, logs.tar.bz2, x.tar.7z | site-old.tar.gz, logs-old.tar.bz2, x.tar-old.7z |
Suffix -x | .env.local, .gitignore, archive. | .env-x.local, .gitignore-x, archive-x. |
| Title Case | élan vital.txt, фото отпуск.txt, .gitignore | Élan Vital.txt, Фото Отпуск.txt, .gitignore (unchanged) |
| lowercase | PHOTO.JPG, Report Final.PDF | photo.JPG, report final.PDF |
| UPPERCASE | straße.txt | STRASSE.txt |
Numbering img-{n}, start -2, 3 digits | four files | img--002.png, img--001.png, img-000.png, img-001.png |
Numbering {n}, start 98, 2 digits | three files | 98.png, 99.png, 100.png |
Numbering img-{n}, start 1.5 | two files | img-1.5.png, img-2.5.png |
| No change, three names | a.jpg, a.jpg, a (1).jpg | a.jpg, a (1).jpg, a (1) (1).jpg |
Find draft, replace with nothing | draft.docx | draft.docx (an emptied name falls back to the original) |
Case changes leave the extension as it was in every case we ran, and a number wider than the padding simply grows. A 400-character prefix was cut to the 150 characters a text box holds, and a 300-character original name came back with a 200-character base plus its extension. In Node, 10,000 names with 2,500 repeats came back all distinct, in 13.5 and 28.4 ms in two runs.
Renaming questions
Does it rename the files on my computer?
No. It reads each file and puts a copy in a ZIP under the new name. The originals stay as they are, so you extract the archive and keep the copies you want.
In what order does numbering run?
In list order, which is the order the files were added. There is no sort option. Three files added as IMG_0412, IMG_0399 and IMG_0500 become photo-1, photo-2 and photo-3 in that sequence. Remove and add again to change it.
Is .tar.gz kept together?
Yes. The extensions .tar.gz, .tar.bz2, .tar.xz, .tar.zst and a few similar ones are treated as one, so numbering gives backup-1.tar.gz and a suffix of -old gives site-old.tar.gz. Any other name keeps only what follows the last dot.
Can I use wildcards or regular expressions?
No. Find text is literal and case-sensitive, and every occurrence in the name is replaced. Searching for report in Report.pdf and report.pdf changes only the second file.
What if two files end up with the same name?
Names are compared without regard to case, and later ones get a counter before the extension. A.jpg, a.jpg and a.JPG come out as A.jpg, a (1).jpg and a (2).JPG.
Is there a limit on files or size?
The ZIP writer has no ZIP64 support, so it stops at 65,535 files or 4 GB. Over the file limit the page names it: with 65,536 small files, all four engines showed Too many files for a ZIP archive (more than 65535). Try fewer or smaller files at a time. Every file is also read into memory first, so a large batch depends on your device. In our test 20 files of 5 MB, 100 MB in all, were zipped in 2.5 to 4.2 seconds. Each text box holds up to 150 characters.
Does the ZIP keep each file's original date?
Yes, within what a ZIP date can hold. Each entry gets its file's own modified date in local time, counted in 2-second steps: a file dated 15 June 2021 10:20:31 was stored as 10:20:30 in all four browser engines. These dates run from 1980 to 2107, so a file dated 1 March 1975 was stored as 1 January 1980 00:00:00, and in Node 22.23.1 a date in 2108 came out as 31 December 2107 23:59:58. The contents are not changed.
Will zipping make my photos or videos smaller?
Hardly. Every file is deflated, but data that is already compressed does not shrink: 100 MB of random bytes came out about 34,000 bytes larger as a ZIP, while 100 MB of plain text shrank to 11.4 to 12.3 MB. The ZIP is a way to get all the renamed copies in one download.
Why was one of my files not added?
An empty file (0 bytes) is left out, and the page says: One or more files were empty (0 bytes) and couldn't be used. The other eight files of the test batch were listed and zipped as usual.
How does Title Case treat a name that starts with a dot or an accent?
It capitalizes the first letter of each word, accented and non-Latin letters included, so élan vital.txt becomes Élan Vital.txt and фото отпуск.txt becomes Фото Отпуск.txt. A name that starts with a dot and has no other dot, such as .gitignore or .env, keeps its case. A dotfile with a second dot is read as a name plus an extension, so .env.local becomes .Env.local.