T

Text Machine

Powerful text tools, in your browser

CSV to JSON Converter

Convert CSV or TSV into clean JSON in your browser. The first row becomes the keys, the delimiter is detected automatically, and you can keep each value as text or have numbers and booleans typed — nothing is uploaded.

Delimiter

Output

Values

The first row becomes the keys for each object.

CSV
JSON

Your JSON will appear here.

How to use CSV to JSON Converter

  1. 1

    Paste your CSV

    Paste rows of CSV or TSV data with one record per line. Keep the column names in the first row so they can become the keys.

  2. 2

    Pick the delimiter

    Leave it on Auto to detect commas, semicolons, or tabs automatically, or choose the delimiter your data uses.

  3. 3

    Choose the output shape

    Use Objects to turn each row into an object keyed by the header, or Rows to keep every line as a simple array. Switch Values to Typed to read numbers and booleans as real JSON types.

  4. 4

    Copy the JSON

    Copy the formatted JSON and paste it straight into your code, an API request, or a config file.

Frequently asked questions

How do I convert CSV to JSON?
Paste your CSV with the column names in the first row, and the formatted JSON appears instantly below. Use the Copy button to grab the result. Everything runs in your browser.
Does the first row have to be a header?
In Objects mode the first row is used as the keys for every object. If your data has no header, switch to Rows mode and each line becomes a plain array of values instead.
Can it read tabs or semicolons, not just commas?
Yes. Auto mode detects commas, semicolons, and tab-separated data, so a spreadsheet copy or a European-style CSV both convert without changing any settings.
How are numbers and booleans handled?
By default every value stays a string. Switch Values to Typed and the tool reads plain numbers as JSON numbers, true and false as booleans, and the word null as a real null.
Is my data uploaded anywhere?
No. The conversion happens entirely in your browser with JavaScript, so your CSV never leaves your device and nothing is stored on a server.

Related tools

Keep going with these handy tools

JSON to CSV Converter

Unix Timestamp Converter

JSON to YAML Converter

Text to Binary Converter

Text to Hex Converter

Morse Code Translator