CSV to JSON Converter

Convert CSV to JSON in your browser: RFC 4180 quoting, auto delimiter detection, header-row option. Files never leave your device. No upload — runs 100% in your browser

How to use this tool

  1. Paste or drop your input above.
  2. The tool processes it locally — usually instantly.
  3. Copy the output or download the result.

The conversion people ask for constantly

CSV is the export format of every system ever built; JSON is the input format of every API and script written since. This page bridges them locally: paste CSV, get JSON — with the header row mapped to object keys and each data row becoming one object.

Quoting handled properly

The parser follows RFC 4180, the actual CSV specification: fields wrapped in double quotes may contain commas and line breaks, a literal double quote inside a quoted field is written twice (""), and a UTF-8 BOM at the start of the file is stripped. Those three details are exactly where naive split(',') converters produce corrupted data — the sample above deliberately includes a quoted comma and a quoted thousands separator.

Delimiter and headers

Auto-detect inspects the first line (outside quotes) and picks comma, semicolon, tab or pipe — semicolon matters because several European locales export CSV with it. The header option switches between an array of objects (first row = keys) and a plain array of arrays. Empty or duplicate column names are made unique automatically.

Numbers stay strings — on purpose

Values are kept exactly as written. A ZIP code 0755 or an ID 00123 survives intact, which automatic number-typing would destroy. If your consumer needs numbers, convert in your script where the schema is known.

Frequently Asked Questions

Are my files uploaded to a server?

No. Everything on this page runs inside your browser using JavaScript and WebAssembly. Your file never leaves your device — you can even disconnect from the internet after the page loads and the tool still works.

Why are numbers quoted in the JSON?

Deliberately: automatic number conversion destroys leading zeros (ZIP codes, account IDs) and regionally formatted numbers. Keep them as strings, or convert where the schema is known.

Does it handle newlines inside quoted cells?

Yes — RFC 4180 quoting is fully implemented, including escaped quotes and CRLF line endings.

How big a CSV can I paste?

The practical limit is your browser's memory; files of several MB paste and convert in a moment. For truly huge CSVs use a scripted solution.

Related Tools

XML FormatterLine CounterChinese Word CounterX/Twitter Character CounterYAML to JSONJSON to YAMLCSV to ExcelExcel to CSVXML to CSVCSV to XMLHTML Entity DecoderCase ConverterKebab Case ConverterJSON DiffDOCX to TXT