Shopify Files guide

Why Shopify adds random letters to your file names

Get your file links now

Build or export every link, check them, and fill a product CSV.

Runs in your browser. Nothing is uploaded.

Open the Files URL Exporter

When Shopify adds an ID

Shopify’s Help Center says a unique identifier might be added when a file with the same name already exists in your store, including files uploaded directly to product pages that don’t show in Content > Files, or when the name contains special characters or formatting that conflicts with the CDN.

For files added through the API, the default is to append a UUID when the name is in use. Shopify’s own example shows the result: image_2a67cb67-5b4d-4ecb-9c59-cc3ca9736065.jpg.

Names that always get a suffix

Image names can’t end with pico, icon, thumb, testing, small, compact, medium, large or grande, because the CDN reads those as resize requests. test_medium.png gets a suffix added automatically. Shopify also suggests avoiding an underscore right before size-like numbers: product-image-5x4.jpeg instead of product_image_5x4.jpeg. File names can’t begin with a period.

Spaces and symbols

Shopify doesn’t publish its character rules. Merchants who tested it report that spaces become underscores, runs of spaces or symbols collapse to one underscore, hyphens at the start or end are removed, and accents are dropped (Crème.jpg becomes Creme.jpg). The Files URL Exporter applies these rules when it builds links and marks every name it changed, so check those links.

How to avoid it

  1. Use unique, plain names: letters, numbers and hyphens (trail-tee-front.jpg).
  2. Don’t end image names with size words like small or large.
  3. If a file already got an ID, you can rename it in Content > Files by editing its URL handle. The old link stops working.
  4. To get the real names Shopify ended up with, use the GraphiQL export in the Files URL Exporter.

More guides

Sources: Uploading and managing files (Shopify Help Center), fileCreate duplicate handling (GraphQL Admin API 2026-10), Merchant-measured file name changes (Shopify Community, 2022). Not affiliated with, endorsed by, or sponsored by Shopify Inc. Shopify is a trademark of Shopify Inc.