File Renaming Guide

Learn how to rename files by content, how to batch rename them, how to set up a naming convention that lasts, and what to look at when comparing AI file renamers.

1. Renaming files by content

Most filenames are auto-generated by a camera or the OS — IMG_20240103_142355.jpg, scan001.pdf, DSC00211.CR2. They tell you "which one it is", not "what it's about", which makes them useless for searching.

Renaming by content means letting a tool read the file itself and derive a descriptive name. There are three main signals:

  • Text: body text and titles in PDF, Word, PowerPoint, Excel and TXT, summarized into a subject.
  • Visuals: after extracting frames, a vision model identifies scene, subject and action (e.g. "surfer at sunset on the beach").
  • Metadata: capture time, GPS location, camera model, used to auto-fill date and place.
Tip: combining content naming with structured fields works best. E.g. 20240103_Xiamen-Sunset-Portrait.jpg — the date keeps it sortable, the subject keeps it searchable.

2. How to batch rename files

Renaming hundreds or thousands of files by hand is slow and error-prone. There are four common approaches, each with trade-offs:

MethodGood forLimitation
Built-in batch renameUniform renaming across a batch (Photo (1), Photo (2)…)Ignores content, only numbering
Rules / regexFilenames that already follow a pattern; find-and-replace, prefix/suffixNeeds regex skill; no content understanding
Scripts (Python etc.)Highly customized, reproducible pipelinesRequires coding and maintenance
AI content-awareMessy names that need content readingNeeds a local model, downloaded once

Three things that matter in batch renaming

  • Review before writing: confirm each suggestion before the batch runs, to avoid "all wrong at once".
  • Never overwrite on conflict: when a target name exists, append -01, -02 automatically.
  • Undoable: restore original names with one click, with history saved.

3. Building a file naming convention

A good convention lets you (and your colleagues) understand a file years later. Follow this structure:

Use "fields + a fixed separator"

Common patterns: date_subject_type or date_client_project_version. Pick one separator — underscore _ or hyphen - — and never mix.

Use YYYYMMDD for dates

Eight-digit dates sort in true chronological order by name, e.g. 20240103. Avoid Jan 3 or 01-03, which sort incorrectly.

Skip empty fields

When a field has no value (a photo without GPS), don't leave a stray separator. 20240103__portrait.jpg should be 20240103_portrait.jpg.

Avoid illegal characters

Windows and macOS both forbid \ / : * ? " < > | in filenames, and limit length. Your convention should include "auto-replace illegal characters".

Turning the convention into a template is the most valuable step — define it once, and every file follows the same fields for long-term consistency.

4. Choosing an AI file renamer

AI renamers are multiplying. What really separates them:

DimensionWhat to check
Local vs cloudWhether file content and visuals leave your computer; sensitive files should be processed locally.
Naming controlCan you define template fields, separators and date formats — or only accept a fixed scheme?
Review & undoCan you confirm each suggestion before writing; restore everything after applying?
File typesDoes it cover your real material: PDF/Office, phone HEIC, camera RAW, various video formats.
Setup costDo you need to install runtimes and pull models, or is there a one-click path?
PricingIs the free tier enough to try; is it one-time or subscription?

How NameHero does it

  • Built-in local AI engine (ships with the installer, no Ollama needed); content and visuals never leave your computer; one-click model download in-app.
  • Templated naming: date / subject / type / project / location, with empty fields skipped.
  • Review first, then apply; one-click undo, with history persisted across restarts.
  • Supports PDF/Office, HEIC, TIFF, AVIF, camera RAW (CR2/CR3/NEF/ARW/DNG…) and common video.
  • Free tier: 50 naming runs per month; Pro is a one-time, lifetime purchase.

Point it at your messiest folder

Download free to get started, no credit card. Before anything changes on disk, NameHero shows you every suggestion to review.