Examples
-
CSV with header
id,name 1,Ada 2,Grace
About CSV to JSON
A spreadsheet export or database dump almost always comes out as CSV, but the JavaScript or API code consuming it wants a plain array of objects - the exact reverse of what our JSON to CSV tool does.
Paste CSV or tab-separated data with a header row, and each subsequent row becomes one JSON object keyed by those headers - tabs are auto-detected when the input has no commas, and quoted fields (including embedded commas or escaped quotes) are handled.
FAQ
- What about CSV without a header row?
- This tool assumes the first row is the header. If your data has no header, add a placeholder row of column names before pasting it in.