Your products live in a spreadsheet. Your store wants a JSON file. Between the two sits a conversion that looks trivial and quietly decides whether your catalogue imports cleanly or arrives with mangled SKUs and prices the importer reads the wrong way.
The conversion itself is simple, and the CSV to JSON Converter on Ovatly does it in your browser: paste the CSV or open the file, choose whether the first row is a header, and download converted.json. What decides the quality of the result is not the tool. It is two things you control: what your header row says, and understanding that every value in the output is text.
Contents
- Quick answer
- The header row becomes the field names
- Every value stays a string, and that protects you
- Delimiters and quoted fields, handled
- How to convert a product list, step by step
- Worked example: two rows in, JSON out
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Open the CSV to JSON Converter, paste your product CSV or upload the file, and leave the header option on: the output is an array of objects, one per product, keyed by your header names. Before you convert, rename the headers to the field names your store's importer expects, because those names become the JSON keys word for word. Expect every value to be a string: prices, stock counts and SKUs come out exactly as written, and a SKU like 007 keeps its zeros. Download the result as converted.json and import that.
The header row becomes the field names
With the header option on, the converter reads the first row of your CSV as field names and builds one object per remaining row, using those names as the keys. That makes the header row the single most important line in the file. The converter does not map fields for you and does not know your store's vocabulary. If your sheet says "Product Title" and your importer expects "name", the JSON will carry "Product Title" and the import will shrug.
So renaming the headers in the CSV before you convert is the lever. Open the spreadsheet, change each column heading to the exact field name the receiving side expects, and keep the names short and plain. Do that once, in the file you control, and every object in the output arrives with the right keys.
Every value stays a string, and that protects you
The converter never guesses types. It does not look at a price and decide it is a number, or at a date and decide to reformat it. Every value in the JSON is a string, copied as written: a price of 499 comes out as the text "499", a stock count of 12 as "12".
That sounds like a limitation until you meet the alternative. The day a converter decides your SKU 007 is really the number 7, the zero disappears, and the code in the file no longer matches the label on the shelf, the barcode in the warehouse or the row in your stock records. Strings are why that cannot happen here. If your store needs prices as numbers, it converts them when it reads the file, on its side, where the rules are known. Your file keeps the values exactly as you wrote them.
Delimiters and quoted fields, handled
Product files rarely arrive as tidy comma-separated text. Exports from other systems use semicolons or tabs just as often. The converter auto-detects the delimiter, so a semicolon file converts without you re-saving it first. Quoted fields are read by the standard CSV rules, which means a product name that itself contains a comma survives the trip intact, as long as the CSV quotes it the standard way. You do not need to clean either of these up by hand before converting.
How to convert a product list, step by step
- Prepare the CSV: rename the header row to the field names your importer expects, and make sure the first row really is a header, not a product.
- Open the CSV to JSON Converter and paste the CSV text, or upload the file.
- Leave the header option on, so the output is an array of objects keyed by your headers.
- Convert and inspect the output before you download: count the objects against your product rows, and spot-check a SKU with leading zeros and a price.
- Download converted.json and import it into your store.
Worked example: two rows in, JSON out
The converter's own example file is a two-row list with the headers name and age:
name,age
Ana,31
Ben,28
With the header option on, it comes out as an array of two objects:
[
{ "name": "Ana", "age": "31" },
{ "name": "Ben", "age": "28" }
]
Read it closely, because your product file follows the identical pattern. The headers became the keys. Each row became one object. And the ages are strings, "31" and "28" in quotes, not numbers. Swap the headers for sku, name and price and the shape is the same: one object per product, your header names as keys, and every value, price included, exactly the text you wrote.
Limitations and honest tradeoffs
The output contains exactly the columns your CSV has, nothing added and nothing mapped. A field your importer requires but your spreadsheet lacks will simply be absent, and no converter can invent it. Nothing is typed for you either: there are no numbers and no dates in the output, only strings, so any side that needs real numbers has to convert them itself.
Rows that fall short of the header are padded with empty strings rather than rejected, which keeps the conversion moving but means a missing price becomes a quiet blank instead of an error. The check in step 4 exists because of that: blanks deserve a look before the file goes anywhere.
Common mistakes
- Converting before renaming the headers. The keys in the JSON are your spreadsheet's headings, word for word. Rename first, convert second.
- Expecting prices to arrive as numbers. They arrive as strings, by design. If the import complains, the fix is on the reading side.
- Reading a padded blank as real data. A blank field can mean the row was short a column. Check the source row before you trust it.
- Turning the header option off. Without it you get an array of arrays instead of objects, and an importer expecting named fields has nothing to hold on to.
FAQs
What does the JSON from a product CSV look like? With the header option on, you get an array of objects, one object per product row, keyed by your header names. A two-row file with the headers name and age and the rows Ana, 31 and Ben, 28 becomes two objects with name and age keys. A product file works the same way, with your own headers as the keys.
Will my prices become numbers in the JSON? No. Every value stays a string, so a price written as 499 comes out as the text 499, exactly as written. The converter never guesses types. If your store needs a numeric price, that conversion happens on the store side when it reads the file.
My SKUs start with zeros. Will they survive? Yes. Because values are never converted to numbers, a SKU like 007 stays 007. Turning it into a number would drop the zeros and break the match with your labels, barcodes and stock records.
What if a product row is missing a value? Rows shorter than the header are padded with empty strings, so the product still gets every field, with the missing ones blank. Check for blanks after converting, because a padded field looks like a real empty value in the JSON.
Is my product list uploaded anywhere? No. The converter runs locally in your browser. You paste the CSV or open the file, and the JSON is produced on your device. Nothing is sent to a server.
Conclusion
A clean product import is decided before the conversion, in the header row, and protected during it, by values that stay exactly as written. Rename the headers to what your importer expects, convert with the CSV to JSON Converter, and check the output once before it travels. When a conversion does go wrong, our guide to CSV to JSON mistakes covers the failures to look for. For more in this series, see the Data and JSON Tools guides.
References
- RFC 4180, the common format for CSV files, on the header line and quoted fields: https://www.rfc-editor.org/rfc/rfc4180
- RFC 8259, the JSON data interchange format, on objects, arrays and string values: https://www.rfc-editor.org/rfc/rfc8259