CSV to JSON Converter (With Header Row)

Convert CSV to JSON online — header row becomes keys, quoted fields and commas handled. Paste, convert, copy.

—

How it works

The CSV is parsed with full RFC-4180 quoting support (quoted fields, embedded commas, doubled quotes, CRLF). The first row becomes the keys; every following row becomes one JSON object in the output array.

Examples

InputOutput
name,age\nAda,36[{ "name": "Ada", "age": "36" }]
"Say, hi",xquoted field keeps its comma
a,b\n1,2\n3,4array of 2 objects

Frequently Asked Questions

Does the first row have to be headers?

Yes — the first row is used as the JSON keys. If your CSV has no header, add one line at the top (anything: a,b,c...) and convert again.

Are numbers converted to real JSON numbers?

No — every value stays a string, because CSV has no type information. '36' could be an age or a zip code; converting types blindly corrupts data. Post-process with JSON.parse on the fields you know are numeric.

How are commas inside a field handled?

Wrap the field in double quotes (standard CSV quoting): "Smith, John",42 converts correctly with the comma preserved. A quote inside a quoted field is written doubled ("").

Is there a size limit?

No server limit — everything runs in your browser, so the practical limit is your machine's memory. Files of a few hundred thousand rows convert fine.

Related Tools

JSON Formatter & ValidatorRandom Password Generator (Bulk)Unix Timestamp Converter (Epoch)JSON to YAML ConverterMarkdown to HTML ConverterText to Unicode Converter (Code Points)MD5 Hash GeneratorHTML Encoder / Decoder (Entities)Base64URL Encoder / DecoderBase64 to PDF ConverterHTML to Markdown Converter