Add Suffix to Filenames
Add Suffix to Filenames separates each name at its last dot when that dot is not the first character, inserts the entered suffix before the extension, and downloads renamed-files.zip. An empty field falls back to -copy. Dotfiles such as .env are treated as extensionless names, while compound extensions such as .tar.gz are split only before .gz.
Runs locally — files stay on your deviceWhere is the suffix placed?
Before the final extension, or at the end when no final extension is recognized.
The last dot defines the extension in this tool
Filename conventions are not universal. This implementation uses a simple last-dot rule and treats a leading dot at position zero as part of the basename.
How it works
The basename and last extension are split, the suffix or -copy fallback is inserted, and JSZip packages all renamed copies.
Key concepts
Final dot only
archive.tar.gz becomes archive.tar plus .gz.
Leading-dot exception
.env is considered a basename with no extension.
When to use it
- Create labeled variants such as -review.
- Add a version token before ordinary extensions.
- Preserve original files while making renamed copies.
When not to use it
- Do not expect compound extensions to remain one unit.
- Do not expect collision checks.
- Do not use it to edit document-internal titles or links.
Worked examples
Ordinary extension
- Input
report.pdf + suffix -final- Expected output
report-final.pdf
Suffix precedes .pdf.
Compound extension
- Input
archive.tar.gz + -old- Expected output
archive.tar-old.gz
Only .gz is treated as extension.
Dotfile
- Input
.env + -sample- Expected output
.env-sample
The leading dot is not split.
Common mistakes
Assuming compound-extension awareness
Only the final dot is used. Correction: Rename those files separately if needed.
Leaving blank unintentionally
-copy is applied. Correction: Enter the exact desired suffix.
Expecting originals changed
Copies are archived. Correction: Extract the downloaded ZIP.
Best practices
- Include an intentional separator.
- Check dotfiles and compound extensions.
- Avoid resulting duplicate names.
Related operations and differences
Add Prefix to Filenames
Choose Add Prefix to Filenames when you need to add a prefix to selected filenames.; use Add Suffix to Filenames specifically for rename suffix.
Lowercase Filenames
Choose Lowercase Filenames when you need to convert selected filenames to lowercase.; use Add Suffix to Filenames specifically for rename suffix.
Replace Text in Filenames
Choose Replace Text in Filenames when you need to replace exact text across selected filenames.; use Add Suffix to Filenames specifically for rename suffix.
Uppercase Filenames
Choose Uppercase Filenames when you need to convert selected filenames to uppercase.; use Add Suffix to Filenames specifically for rename suffix.
Compare Two Files
Choose Compare Two Files when you need to compare two files securely by SHA-256.; use Add Suffix to Filenames specifically for rename suffix.
File Checksum Comparator
Choose File Checksum Comparator when you need to compare a file digest with an expected checksum.; use Add Suffix to Filenames specifically for rename suffix.
Limitations and privacy
- No compound-extension rules, preview, collision handling, character validation, paths, or in-place rename.
- Empty input becomes -copy.
- Output is renamed-files.zip.
Processing happens in this browser. Selected file contents are not uploaded by this tool.
Downloads and copied results remain on this device; handle them according to their sensitivity.
Frequently asked questions
What happens when the field is empty?
-copy is inserted.
How is .tar.gz handled?
The suffix is inserted before .gz.
How is .env handled?
The suffix is appended to the whole name.
Are originals preserved?
Yes.