Category: Developer tools

CSV to JSON Converter

System ideaMissing a tool?

Convert pasted CSV into JSON arrays or objects with delimiter and header options

Paste CSV, choose comma, semicolon or tab, and convert rows to indented JSON. Use the first row as keys or output arrays. No upload.

Paste CSV to convert it to JSON.

JSON
The result will appear here.

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

This CSV to JSON converter handles pasted CSV or delimited text in the browser. Choose comma, semicolon or tab, then decide whether the first row should become object keys. With headers on, the result is an array of objects; with headers off, it is an array of arrays. Quoted fields are parsed in RFC 4180 style, so a quoted value may contain the delimiter, line breaks and doubled quote escapes. Empty header cells become column1, column2 and so on, and missing trailing cells are filled with empty strings so records keep the same keys. The output is always two-space indented JSON, with a parsed row count, copy action and converted.json download. The tool does not infer types, so numbers, booleans, nulls and dates stay strings. It does not expand nested keys, auto-detect delimiters, accept custom delimiters beyond comma, semicolon and tab, upload files, stream very large data, emit JSON Lines or create schemas. The pasted CSV and generated JSON stay in your browser.

How to use it

  1. Paste CSV or tab/semicolon-delimited text into the input area.
  2. Choose comma, semicolon or tab and set whether the first row is a header.
  3. Review the row count, copy the indented JSON or download converted.json.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

Does my CSV leave the browser?
No. Conversion runs in the page, and the pasted CSV plus the generated JSON are not uploaded to LocalTools.
What do the delimiter and header options do?
The delimiter tells the parser how cells are separated. The header option controls whether the first row becomes object keys or whether every row is emitted as an array.
Can it convert tab-separated or semicolon-separated data?
Yes. Pick tab for TSV-style text or semicolon for regional spreadsheet exports. Pipe and arbitrary custom delimiters are not supported here.
Are quoted commas and line breaks handled?
Yes. A quoted field can contain the selected delimiter or a line break, and doubled quotes inside a quoted field are unescaped during parsing.
Will numbers and booleans become native JSON values?
No. Every cell value stays a JSON string. This keeps conversion predictable but means there is no type inference, date parsing or null conversion.