Websites, apps & code / Automation
Rename and sort files in bulk
Hundreds of files with messy names that you want renamed and sorted.
Fill in your details
Leave blank to use the example. Names are remembered for other prompts too (stored only on your device).
Prompt
Help me rename and sort files in bulk. What the files look like: IMG_1234.jpg, receipt final2.pdf, scan0012.pdf Naming rule I want: date_type_description, e.g. 2025-04-03_receipt_hardware.pdf My computer: Teach the simplest way first (such as Finder batch rename) and use code only if needed. Please: 1. First ask me 3–5 questions, then list the approach and steps (any cost, which data it touches). Only start after I say OK, and test with fake data only. 2. First tell me to copy the folder as a backup and work on the copy. 3. Do a dry run listing "old name to new name" and only rename after I have looked and agreed. 4. Handle name clashes (two files becoming the same name) without overwriting. 5. Never delete any file. 6. Teach me to run it step by step and how to undo it. Never ask me to paste passwords, API keys or bank details; if needed, show me where to store them safely (environment variables or the service settings page), not in code or sheets.
Paste it into ChatGPT, Gemini, Claude or Meta AI.
Test result
What we noticed
The AI asked 5 questions, said to back up first and showed an old-to-new dry run table with _2 suffixes for clashes. It pointed out a computer cannot read a receipt date, which the prompt did not mention.
See what the AI actually wrote
Good, no action yet. Please answer 5 questions first:
- Mac or Windows? (You mentioned Finder, so I will assume Mac.)
- About how many files? In one folder, or spread over many subfolders?
- Which date should go in the name: the photo's date taken, the date printed on the receipt, or the file's creation date? A computer cannot read the date on a receipt, so you would enter that.
- What are the types (receipt, invoice, photo, document...)? I will use your list.
- Who writes the description, such as "hardware shop"? A computer cannot guess it, so should you fill it in by hand, or start with one simple word?
Approach and steps:
- Back up: copy the whole folder in Finder (hold Option and drag, or right-click and "Duplicate"). Do everything on the copy.
- Use Finder for what can be automatic: select several files, right-click "Rename...", choose "Replace Text" or "Format" to add dates or prefixes in bulk. Free, no code.
- For the part needing individual descriptions: renaming one by one is the safest (press Return on a file and type).
- Only if Finder is not enough, write code. For example, to read photo dates taken I would give you a small Python file, with a dry run first.
Cost: none. What it touches: only file names in the copy, not file contents.
Dry run (list only, nothing changed):
| Old name | New name (fake demo) |
|---|---|
| IMG_1234.jpg | 2025-04-03_photo_[add description].jpg |
| receipt final2.pdf | 2025-04-03_receipt_hardware.pdf |
| scan0012.pdf | [date to confirm]_document_[add description].pdf |
Only rename after you have looked and agreed.
Name clashes: if two files would get the same name, I add _2, _3 and never overwrite.
No file is deleted.
Step by step: 1) Copy the folder. 2) Open the copy. 3) Select files of one kind. 4) Right-click > Rename. 5) Check the preview Finder shows. 6) Confirm by pressing Rename.
Undo: because you work on the copy the original is untouched; if it goes wrong delete the copy and copy again. Right after a batch rename, Command + Z undoes it.
Answer the questions and say OK and I will go on.
AI tools that suit this
- Claude Suggested tool Free plan
Strong at long documents, editing and code
- ChatGPT Suggested tool Free plan
The most widely used AI chat, for writing, questions and images
- Claude Code Suggested tool Free plan
AI that writes code directly on your computer
Recommendations only, not sponsored. Check each site for what the free plan includes.
This site is made by FullMark Tech
Want your own website, or your shop spreadsheets automated? FullMark Tech builds business websites and custom Excel tools.