Skip to content
Inboxwise Tools

How to fix “Illegal quoting” and “Missing or stray quote” in a Shopify CSV

Both messages mean Shopify couldn’t split a line into columns. The cause is almost always the file’s encoding or a quotation mark in a product description. Here’s how to find the exact spot and fix it without retyping anything.

Published · By the Inboxwise Tools team

The messages:

  • Illegal quoting on line 14
  • Missing or stray quote on line 14

Shopify’s help pages give two causes: the file isn’t UTF-8 encoded, or a quote is missing or out of place. A close cousin isn’t an error at all — the import succeeds but titles show é or ’ where é or an apostrophe should be. That one is always encoding.

Step 1: save the file as UTF-8

  • Excel (Windows or Mac): File → Save As → choose CSV UTF-8 (Comma delimited). Plain “CSV (Comma delimited)” uses an older encoding.
  • Google Sheets: File → Download → Comma-separated values. It’s UTF-8 already.
  • Numbers (Mac): File → Export To → CSV, and set Text Encoding to Unicode (UTF-8).

Try the import again. If the error is gone, you’re done.

Step 2: fix the quotes

Shopify expects standard CSV, which has three quoting rules:

  1. A value that contains a comma, a quote or a line break must be wrapped in double quotes.
  2. A double quote inside such a value is written twice: "".
  3. Only straight quotes (") count. Curly quotes (“ ”) are just text.

A description that breaks these rules:

tee,Classic Tee,"<p>Our 6" pocket tee</p>",Acme

The " after 6 ends the quoted value early, and the rest of the line no longer lines up. Written correctly:

tee,Classic Tee,"<p>Our 6"" pocket tee</p>",Acme

You rarely have to do this by hand. Spreadsheet apps add the doubled quotes when they save, so the usual culprits are files built by a script, edited in a plain text editor, or pasted from Word (which turns straight quotes into curly ones and can leave a stray straight quote behind).

Step 3: find the line

The line number in the message is a line in the file, and a description with line breaks spans several. Open the file in a text editor that shows line numbers (VS Code, Notepad++, TextEdit with line numbers turned on) and look at that line and the one above it. The problem quote is usually at the start of a long HTML description.

Or skip the hunting: the free Shopify CSV Error Fixer reports unclosed quotes and rows with too many or too few columns by line number, detects the encoding, and gives you a UTF-8 copy to download. Nothing is uploaded — it runs in your browser.

Other things that look like quoting errors

  • Semicolons instead of commas. Excel in many European locales saves CSVs with ; between columns. Shopify needs commas. (The checker converts these.)
  • Tab-separated files saved with a .csv name.
  • A line with one column too many from an unquoted comma in a title like Mug, Large.

Related errors

Sources

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