How to bulk rename product photos for Shopify & Etsy
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.
Why filenames matter
- Search engines read them. A file called
linen-apron-natural-front.jpgreinforces what the image shows;IMG_4821.jpgsays nothing. - They are self-documenting. A descriptive name lets you find, sort, and audit images without opening each one.
- They prevent collisions. Uploading two files both named
image.jpgcan overwrite or confuse a bulk importer. - They map to SKUs. Embedding the SKU ties each photo to a product row, which is invaluable for feeds and re-imports.
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
- Work on a copy. Never rename your only originals. Duplicate the folder first.
- 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.
- Review the manifest. Scan for blanks, duplicates, and anything that looks wrong. Fix it in the review table, not by hand afterward.
- 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.
- Spot-check. Open a few renamed files to confirm they match the intended product before uploading.
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