Converter tool

Shopify Product CSV Validator and Cleaner

Check a Shopify product import CSV before you upload it: handles and variant rows, option columns, prices, inventory values, image URLs, SEO lengths and duplicate SKUs. Get a row-by-row report and a cleaned CSV with the mechanical fixes applied.

Current or legacy Shopify template

1. Your product CSV

Or paste the feed text

Shopify Product CSV Validator and Cleaner

Operator: Abdulla Al Fahad. How tools are built and checked

A Shopify import fails or silently misfiles products when a handle has a space, a variant repeats an option combination, a price carries a dollar sign or an image URL is plain http. The import screen reports some of this after the upload; this validator finds it first, row by row, against the rules on Shopify's CSV help page, and writes a cleaned file with the mechanical fixes applied.

It reads the current template (URL handle, Price, Compare-at price) and the older one (Handle, Body (HTML), Variant Price), keeping your own header row in the cleaned file.

Rows are grouped into products by handle, and the first row of each product carries the product-level fields while later rows are variants or extra images.

Key features

  • Handle rules, non-adjacent repeats of a handle, and first-row Title, Vendor and Status checks
  • Variant rows: option names and values, duplicate combinations, missing values, orphaned option columns and variant rows that contradict the first row
  • Price, compare-at and cost as plain numbers, with currency symbols and thousands separators repaired
  • Inventory policy, tracker, quantity, fulfilment service, weight and boolean values
  • Image URLs (https, spaces, thumbnail suffixes), image position and alt text length, and gift cards that cannot be imported
  • Duplicate SKUs, Excel scientific-notation SKUs and barcodes, and barcode check digits

How Shopify groups rows into products and variants and which values it accepts

Shopify's page requires only Title for a new product, and URL handle too once variants are involved. Status takes active, draft or archived; published and the shipping, tax and gift-card flags take true or false; inventory policy takes deny or continue; inventory tracker takes shopify, shipwire, amazon_marketplace_web or a blank cell, and fulfilment service takes manual, shipwire, webgistix, amazon_marketplace_web or the lower-case handle of a service set up in your admin; weight units are g, kg, lb and oz. The help page writes all of these in lower case; the validator accepts true, TRUE and True alike for the flags, and reports other capitalisation of status, policy, tracker and units as a warning rather than an error. Limits include 3 options, 250 images, 250 tags, 70 characters of SEO title and 320 of SEO description.

How it works

Each header is mapped to its meaning with both naming schemes, so Variant SKU and SKU are the same check. Rows are walked in order and grouped by handle; a handle that returns after other products is flagged, because Shopify's own exports keep a product's rows together. The cleaned CSV changes only what has one clear reading: trimmed cells, handles rewritten as lower-case dash slugs, prices stripped of symbols and thousands commas, policy, status, units and true/false in Shopify's spelling. Copy, SKUs, barcodes and image addresses are left alone apart from encoding spaces.

When to run it

  • A merchant moving 3,000 products from another platform and finding that the export writes Yes and No for the booleans and prices with currency symbols.
  • A migration consultant checking a supplier's file for duplicate SKUs before inventory syncs with a warehouse system.
  • A store owner who edited an export in Excel and now has barcodes in scientific notation and handles with capitals.

Running a check

  1. Drop the CSV, or paste its text.
  2. Read the summary: rows with errors, rows with warnings only, products and variants.
  3. Filter the findings by level or column and fix them in the file or your source system. A warning named formula-start marks a cell that begins with = + - or @; check it is meant to.
  4. Download the cleaned CSV and the problem report, and import the cleaned file.
  5. Re-run the cleaned file to confirm that only the findings you chose to keep remain.

Example

A merchant's four-row export in the legacy template: a T-shirt in two sizes plus a mug (every column shown)

Handle,Title,Body (HTML),Vendor,Tags,Option1 Name,Option1 Value,Option2 Name,Option2 Value,Variant SKU,Variant Price,Variant Compare At Price,Variant Inventory Policy,Variant Barcode,Image Src,Image Position,SEO Title,Status
tee shirt,Basic Tee,<p>Soft cotton tee.</p>,Acme,"cotton, Cotton",Size,S,Color,Red,TEE-S-R,$19.99,15.00,Deny,4006381333932,https://cdn.example/a.jpg,1,A very long SEO title that goes well beyond the seventy character guide for titles,active
tee shirt,,,,,,M,,Red,TEE-S-R,19.99,25.00,deny,4006381333931,http://cdn.example/b_thumb.jpg,1,,
tee shirt,,,,,Size,M,Color,Red,TEE-M-R,19.99,,,,,,,
mug,Mug,<p>Stoneware mug.</p>,,,Title,Default Title,,,MUG-1,9.50,,continue,,,,,draft

Findings

2 products, 4 variants; 3 rows with errors, 1 with warnings only; 13 findings (4 errors, 9 warnings); the cleaned CSV applies 5 fixes (the handle on three rows, the price, the policy). Row numbers count the header as row 1.
Row 2 (2 errors, 6 warnings): handle "tee shirt" (fix: tee-shirt), price $19.99 (fix: 19.99), tags cotton and Cotton repeat, SEO title is 82 characters, compare-at 15.00 not above price 19.99, policy Deny differs from deny in capitalisation, barcode 4006381333932 has check digit 2 where 1 is expected, SKU TEE-S-R also on row 3
Row 3 (1 error, 2 warnings): image URL is http, image position 1 repeats row 2, SKU TEE-S-R also on row 2
Row 4 (1 error): option values M / Red repeat row 3
Row 5 (1 warning): no vendor

Limits

The validator cannot know which handles already exist in your store, so it cannot predict updates versus creations; the overwrite option on the import screen decides that.

Category text is not checked against Shopify's taxonomy, and metafield columns are accepted without checking their definitions.

A product with several variant rows needs an Option1 name on its first row. A single-variant product can use Default Title as the option value, and the checks allow that.

The per-product variant limit is not enforced: Shopify's CSV page does not state one, and it has changed over time.

  • Fix the first-row errors of a product first: a missing Title or handle there affects every variant row below it.
  • Treat duplicate-SKU warnings seriously if a fulfilment or inventory app matches on SKU; Shopify itself allows duplicates.

Common errors and how to fix them

Handle may only hold letters, numbers and dashes (no spaces, underscores or symbols).
Use the suggested slug, such as tee-shirt for "tee shirt". The cleaned file rewrites the handle on every row of the product.
The option values (M / Red) repeat row 3; every variant of a product needs a different combination.
Change one option value or remove the duplicate variant row.

Reading the row groups

A product's first row carries Title, Description, Vendor and Tags. Following rows with the same handle are further variants, further images or both. A filled Title, Description, Vendor or Tags on a later row that differs from the first row is flagged, because Shopify uses the first row's values.

Frequently asked questions

Does it work for the old Handle and Body (HTML) template?

Yes. Legacy names are read as their current equivalents. A file with both Barcode and Barcodes columns is flagged, since Shopify's import fails on that combination.

Why is the cleaned file written without a byte-order mark and with LF line ends?

Shopify's page asks for UTF-8 with LF line feeds, so the cleaned file follows it. Cells are written exactly as they are, including any that start with = + - or @: Shopify imports an apostrophe literally, so adding one would put it into a title or SKU. Such cells are reported as formula-start warnings instead, and only the problem report CSV, which you open in a spreadsheet rather than import, guards them with an apostrophe.