CSV to JSON

Convert CSV data to JSON in your browser. Processing happens locally, so your data stays on your device.

Source CSV

Reads up to 5 MB.

Parsed data

Waiting for CSV

Paste CSV or TSV, open a file or choose the sample to begin.

Parser options

Header row
Delimiter

Type conversion (optional)

Turn text such as 42 or 1.5 into JSON numbers.

Turn the exact text true or false into JSON booleans.

JSON preview

Your JSON will appear here

Add CSV on the left. Each row becomes an object, or an array if there is no header row.

Interpretation summary

Valid CSV will be explained here: how many rows and columns were read, how headers were handled and what was converted.

Header handling

  • With a header row, the first row gives the names and each row becomes an object.
  • A heading used twice gets a number after it: the first keeps its name, the next is name_2.
  • A blank heading is named column_ followed by its position, such as column_3.
  • Without a header row, every row is data and becomes an array.

Type conversion

  • By default, every value is text.
  • Convert numbers turns plain numbers such as 42, -7 or 1.5 into JSON numbers, only when nothing is lost.
  • Convert true/false turns the exact text true or false into JSON booleans.
  • A quoted value is read like any other, so quotes do not stop a number being converted.

CSV parsing behaviour

  • A comma or a tab is detected as the delimiter, or you can choose one.
  • Quoted values may hold commas, quotes and line breaks.
  • A blank value is kept as an empty string. A field a short row does not have is left out.
  • Spaces are never trimmed.

Limitations

  • A row with more values than the header has names blocks the JSON. Nothing is dropped or invented.
  • Dates, times, nulls and nested data are never guessed. They stay text.
  • A number that a JSON number could not hold exactly stays text, with a note.
  • CSV up to 5 MB can be read.

Privacy and local processing

  • Your CSV is read and converted in this browser tab.
  • It is not uploaded or stored by Numerila.
  • Nothing you enter, and no JSON made from it, is included in usage measurement.
  • Text that looks like a formula or like markup is treated as plain data and is never run.

See the Privacy Policy for more.

How to use it

  1. Paste CSV or TSV, open a file or choose the sample.
  2. Set the header row and delimiter if the automatic choice is wrong.
  3. Turn on number or true/false conversion if you want typed values, then copy or download the JSON.

CSV in

name,age,member
Ada,36,true
Lin,30,false

JSON out (values as text)

[
  {
    "name": "Ada",
    "age": "36",
    "member": "true"
  },
  {
    "name": "Lin",
    "age": "30",
    "member": "false"
  }
]

JSON out (conversion on)

[
  {
    "name": "Ada",
    "age": 36,
    "member": true
  },
  {
    "name": "Lin",
    "age": 30,
    "member": false
  }
]

Analytics only runs if you choose to allow it below. Advertising and affiliate tracking are not currently active on Numerila. Your preferences are saved in this browser, but these settings do not activate either service.