Skip to content
Inboxwise Tools

How to fix “Invalid CSV header: missing headers” in a Shopify product import

Three different-looking problems with one cause: Shopify matches the first row of your CSV against its column names exactly — spelling, capitals and spaces included. Fix the header row and all three go away.

Published · By the Inboxwise Tools team

The three symptoms

  • Invalid CSV header: missing headers — the first line doesn’t match Shopify’s header row. Shopify also suggests checking for extra spaces at the end of that line.
  • Network error: Unexpected token < in JSON at position 0 — sounds like a connection problem, but Shopify’s help says it comes from column headers that don’t exactly match the template. Header names are case-sensitive.
  • A “Choose column headings” window appears during import — Shopify couldn’t match some headers and asks you to map them from a drop-down. You can map them there, but fixing the file means the next import works without it.

What “exactly” means

In your fileWhat Shopify expectsProblem
handleHandle (older files) or URL handleCapital letters
Variant Price Variant PriceTrailing space
Option 1 NameOption1 NameExtra space
Body HTMLBody (HTML) (older files) or DescriptionName doesn’t match either template
Title missingTitleRequired column

Which columns are required

Per Shopify’s CSV guide, a file that adds new products only needs Title. If you’re adding variants, you also need URL handle, so Shopify can group the rows. To update existing products, include URL handle and Title. You don’t need every column. One exception from Shopify’s guide: if an update file includes variant columns such as SKU or weight without Option1 name and Option1 value, Shopify creates a new default variant and deletes the existing ones — so include the option columns whenever you touch variant data.

Shopify’s current export uses names like URL handle, Option1 name and Price. Older exports use Handle, Option1 Name and Variant Price. Pick one style for the whole file; having both Handle and URL handle in one file is asking for trouble. Shopify’s CSV guide also says a file can’t have both a Barcode and a Barcodes column.

The quickest fix

  1. Export one product from your store (Products → Export → Current page or selected products).
  2. Copy that file’s first row over the first row of your file, then match your columns to it.
  3. Delete any column Shopify doesn’t know, unless it’s a metafield column in Shopify’s format.

Or let the free Shopify CSV Error Fixer do it: it recognizes current and older column names, fixes capitalization and stray spaces automatically, and flags duplicate or unknown columns. It runs in your browser, so the file isn’t uploaded.

Still failing with correct headers?

  • Hidden characters. Some editors add an invisible marker at the very start of a file, or the header row has a tab instead of a comma. Saving again as “CSV UTF-8” from a spreadsheet app usually cleans this up.
  • Wrong separator. A file saved with semicolons looks fine in Excel but is one giant column to Shopify. See quote and encoding errors.
  • Wrong kind of CSV. Customer, inventory and order CSVs have different headers. Make sure you’re importing on the Products page.

Related errors

Sources

Last reviewed: November 14, 2026. Not affiliated with Shopify.