CSV to JSON
Turn a CSV into a JSON array of records — headers become keys.
Runs in your browser — your data never leaves it
Paste, type, or drop a file. Runs as you type.
Output appears here as you type.
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.