Skip to content
Tejo Tools
Menu
Data toolsProcessed on your device

CSV to JSON

Paste your CSV. It’s turned into JSON as you type, on your device.

0 characters · 0 lines
Delimiter
More options
Indent
Result

Your result will appear here.

0 characters · 0 lines

What it does

CSV from a spreadsheet or a database export becomes JSON you can use in code or send to an API:

How to use it

  1. Paste or type CSV into “Your text”. Select “Try a sample” to see a product list.
  2. Check the options. The result updates as you type, with its rows, columns and delimiter above it.
  3. Select Copy to put the JSON on your clipboard, or Download JSON to save it as a .json file.

Good to know

Privacy

Your CSV is processed on your device: converting runs in your browser, and nothing you paste is uploaded.

Advertisements

Frequently asked questions

How is the header row used?

With First row is the header on, each later row becomes a JSON object and the header’s names are its keys. A blank name becomes `column_1`, `column_2` and so on, by its position, and a repeated name gets `_2`, `_3` added, so every key is different. Turn the option off to get an array of arrays, one per row, the first row included.

How are numbers and true/false read?

With Detect numbers, true/false and empty cells on, a value written as a JSON number, like `12.50`, `-3` or `1e5`, becomes a number with every digit kept as written, so nothing is rounded. `true` and `false`, in any mix of capitals, become JSON’s `true` and `false`, and an empty cell becomes `null`. Anything else stays text: `007` keeps its leading zeros, and `+5`, `.5` and `1,5` stay text too. Turn the option off to keep every value as text, with empty cells as `""`.

Which delimiters can it read?

Comma, semicolon, tab and pipe. Auto picks one of the four from the text itself, and the Delimiter line above the result names it, such as “Semicolon (detected)”. Text with only one column is read as comma-separated. If Auto picks the wrong one, choose the delimiter yourself.

Why does my Excel CSV use semicolons?

Where the comma is the decimal separator, as in Germany, France or Brazil, Excel saves CSV files with semicolons between the values. Auto detects them, so the file converts like any other. A value such as `12,50` stays text, since a comma can also separate thousands; change the comma to a point first if you need a number.

Is my CSV uploaded?

No. Converting runs in your browser, on your device, and nothing you paste is uploaded.

Advertisements