How to convert CSV to JSON and back
Prepare a spreadsheet export for an application. The first row supplies JSON keys and a SKU with leading zeros remains a string.
Steps
Paste the input into the form and choose a mode if one is offered. Check the result before copying or saving it.
Example
sku
000123
→ [{"sku":"000123"}]name,qty
Bolt,2 → [{"name":"Bolt","qty":"2"}]What to check
Treat a value like SKU 000123 as text. If you open the result in a spreadsheet, keep its column in text format so the leading zeroes survive.
Common tasks and examples
Start with a small sample. Compare the structure before and after a format conversion, or check that only the intended characters changed in a text operation.
sku;qty 000123;2 → [{"sku":"000123","qty":"2"}][{"sku":"000123"}] → CSV"a,b" → "a,b"
Task reference
- CSV → JSON
- Settings: CSV delimiter: , · UTF-8 · What to expect: JSON · [{…}]
- CSV → JSON
- Settings: CSV delimiter: ; · Input: SKU 000123 · What to expect: JSON · "000123"
- JSON → CSV
- Settings: CSV delimiter: , · What to expect: CSV · UTF-8
- JSON → CSV
- Settings: CSV delimiter: ; · What to expect: CSV · ;
- CSV → JSON
- Settings: CSV delimiter: TAB · Input: .tsv · What to expect: JSON