Skip to main content

Data Tools

CSV to JSON

Paste delimited rows and export a JSON array. Set the separator, choose whether the first row is a header, and control type inference.

See how to use this tool

CSV to JSON

Data is converted locally in your browser without server upload.

Privacy: your input is processed only in this browser. Refreshing clears the current state.

About CSV to JSON

Each data row becomes one object. With First row is header enabled, the first row supplies the field names. Otherwise, the tool assigns names such as column_1 and column_2. Use distinct headers so two columns do not share the same key.

How to use it

  1. 1Paste the CSV text into Input. Choose comma, semicolon, or Tab to match how the file was exported.
  2. 2Set First row is header. Enable Infer numbers and booleans only if fields such as quantities and true or false flags should become JSON values of those types.
  3. 3Select Convert to JSON, check the object count and field names, then copy or download the .json file.

When to use it

  • ✓Try the headers id,qty and the row 007,10. With type inference enabled, the id is the string "007" and the qty is the number 10. With inference off, both values are strings.

Related tools

FAQ

Why did several columns become one field?

Check the delimiter. A spreadsheet export that uses semicolons needs the Semicolon option. Quote a cell that contains the chosen delimiter, for example "Smith, Jane" in comma-separated input.

How do I keep an identifier column consistently as text?

Leave type inference off. Even without a leading zero, an ID like 123 stays the string "123" in the output.