Best way to validate a Shopify or WooCommerce CSV before import
Importing a product list into Shopify or WooCommerce can fail because the CSV contains hidden issues like duplicate SKUs, wrong price formats or malformed URLs. These errors stop the import, force you to edit rows manually, and waste time. By checking the file against the platform's rules before you upload, you can catch and correct problems in bulk, ensuring a smooth import.
Why this is harder than it looks
Store owners often rely on spreadsheet software that hides leading zeros, treats large numbers as scientific notation, or inserts invisible characters. Platform validators then reject the file, showing vague error messages that point to a row but not the exact cause. Without a systematic pre‑flight, you end up correcting rows one by one, risking new mistakes and delayed product launches.
Step by step
- Open the CSV in a plain‑text editor. Use Notepad++, VS Code or any editor that shows raw characters. This reveals hidden spaces, BOM markers or non‑UTF‑8 encoding. If the file starts with a strange character, save it as UTF‑8 without BOM before proceeding.
- Check the header row for required columns. Shopify expects columns like Handle, Title, Body (HTML) and Price; WooCommerce needs Name, SKU, Regular price, etc. Compare your header against the platform's documentation. Missing or misspelled headers will cause the import to stop immediately.
- Look for leading zeros and scientific notation. Columns such as SKU, barcode or inventory quantity must retain exact text. In Excel, format those columns as Text before saving, or open the CSV in the editor and ensure numbers are not displayed as 1.2E+05. Add a leading apostrophe if needed.
- Detect duplicate values. Use the editor’s Find All or import the CSV into a temporary spreadsheet and apply conditional formatting to highlight duplicate Handles, SKUs, barcodes or variant option combinations. Duplicates break uniqueness constraints and cause overwrites.
- Validate price and numeric fields. Prices must use a dot as decimal separator, contain no currency symbols, and be non‑negative. Search for commas, dollar signs or negative signs. Also verify that compare‑at prices are higher than regular prices, otherwise the platform flags the row.
- Check image URLs for proper format. Every URL should start with https://, contain no spaces, and end with a supported extension like .jpg, .png or .webp. A quick regular‑expression search (https?://[^\s]+\.(jpg|png|webp)) can highlight malformed links.
- Save a clean copy and run a test import of a few rows. After fixing the issues, create a new CSV file with only the first 5 - 10 rows and import it into a sandbox store. If the test succeeds, you can safely upload the full file.
Common mistakes
- Saving the CSV with Excel’s default encoding
- Leaving duplicate SKUs in the file
- Using commas as decimal separators in price columns
- Ignoring invisible Unicode characters
Where ImportGuard fits in
ImportGuard scans a Shopify or WooCommerce CSV in the browser, flags the exact row and column for each problem, and offers an automatic repair for safe issues. It then writes a corrected CSV, generates an HTML report and lets you download both files without any server upload.
FAQ
It can suggest a suffix for each duplicate handle, but you must confirm the change. Automatic renaming prevents accidental overwrites while keeping the product URLs unique.
ImportGuard detects the delimiter during parsing and adjusts accordingly. If it fails, open the file in a text editor and replace the semicolons with commas before re‑uploading.
Yes. The analysis runs in a Web Worker, keeping the UI responsive even for thousands of rows. However, very large files may take a minute or two to process.