How to bulk rename product photos for Shopify & Etsy

Why filenames matter, the naming conventions that scale, and a safe workflow for renaming a whole batch.

Camera and phone exports arrive with names like DSC_0491.JPG or IMG_20240517_143022.jpg. Those names tell nobody anything — not you six months from now, not your storefront, and not a search engine. Renaming product photos to clean, descriptive filenames before you upload makes your catalog easier to manage and gives every image a small, honest SEO signal. This guide covers why filenames matter and how to rename a large batch without breaking anything.

Do it in the browser. AltForge turns a product spreadsheet plus your image files into a proposed filename for every photo, then exports a rename manifest — all locally, with nothing uploaded.

Why filenames matter

Naming conventions that scale

A good filename is lowercase, uses hyphens as separators (search engines treat hyphens as word breaks; underscores they do not), contains only URL-safe characters, and follows a predictable order. A reliable pattern is:

{sku}-{product-slug}-{variant}-{index}.jpg

For example: tt-018-linen-apron-natural-1.jpg, tt-018-linen-apron-natural-2.jpg. The SKU anchors the product, the slug is human-readable, the variant disambiguates color or size, and the trailing index orders the set.

Slugging: turning words into safe filenames

"Slugging" is the process of converting a title into a safe string: lowercase everything, strip accents (cafécafe), replace spaces and punctuation with a single hyphen, collapse repeats, and trim to a sensible length. Deterministic slugging means the same input always yields the same output, so re-running the process never surprises you. AltForge applies exactly these rules and lets you set the separator and maximum length.

Handling duplicates and numbering

When several photos would slug to the same name — for instance three angles of the same variant — append a numeric suffix (-1, -2, -3) rather than letting names collide. Zero-pad only if a single product will ever exceed nine images (-01-12) so files sort correctly. Keep the numbering consistent across the whole catalog.

A safe rename workflow

  1. Work on a copy. Never rename your only originals. Duplicate the folder first.
  2. Build a manifest. Generate a two-column list of original filename → proposed filename before touching any file. AltForge exports this as CSV or plain text.
  3. Review the manifest. Scan for blanks, duplicates, and anything that looks wrong. Fix it in the review table, not by hand afterward.
  4. Apply the renames. Use your operating system, a trusted batch-rename utility, or a short script that reads the manifest. Because the manifest is explicit, the result is repeatable and auditable.
  5. Spot-check. Open a few renamed files to confirm they match the intended product before uploading.
Keep your originals. A rename is destructive if you lose the mapping. The manifest is your undo history — keep it with the batch.

Platform notes

Shopify preserves your uploaded filename and uses it in the image URL, so clean names carry straight through. Etsy renames images on upload, so the filename mainly helps you organize the source files and any product feed you maintain elsewhere. Either way, a consistent naming scheme keeps your library sane.

Draft alt text & clean filenames in your browser

AltForge is a free, privacy-first tool. Nothing is uploaded — images and CSVs are processed entirely on your device.

Launch the free tool →

Related: SKU & filename naming conventions · Preparing a rename manifest · Alt text for Etsy