Pre-launch — your 10 free credits are reserved for launch day. Join the waitlist
converters · free tool

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

Input
name,age
Ada,36
Al,41
Output
[
  {
    "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