CSV to JSON
Turn a CSV (or TSV, ; and | files) into a JSON array of records — headers become keys.
Your data never leaves your browser
This tool runs entirely on your computer. What you paste or drop is never uploaded, never stored and never seen by us — close the tab and it's gone. How we know
Sign up to run — no credit card required.
Press Run to see the output. Sign up takes ten seconds — no credit card required.
Worked example
name,age
Ada,36
Al,41[
{
"name": "Ada",
"age": "36"
},
{
"name": "Al",
"age": "41"
}
]This example is one of CSV to JSON's test cases — if the tool stopped producing this output, the build would fail.
Questions
- Does it handle quoted fields with commas and newlines?
- Yes. It's a real RFC 4180 reader, not a split on commas — quoted fields, embedded commas, doubled quotes, and newlines inside quotes all parse correctly. That's the difference between a converted file and a silently corrupted one.
- What happens to a short row?
- Missing trailing fields become empty strings rather than undefined, so every record has the same keys.
- What if a quote is never closed?
- It errors instead of guessing. A silently truncated field is worse than a message.
Related tools
JSON Formattertakes json
Pretty-print and indent JSON — in your browser, nothing uploaded.
JSON Validatortakes json
Check whether JSON is valid and see the first error.
JSON to CSVtakes json
Turn a JSON array of records into CSV, with proper escaping.
JSON Minifiertakes json
Strip whitespace from JSON down to the smallest valid form.