CSV to JSON Converter Online — Auto-Detect Delimiter

Convert CSV to JSON (or JSON back to CSV) online. Auto-detects comma, semicolon, tab or pipe, turns numbers and booleans into JSON types, loads a .csv file and downloads .json—free, in your browser.

How it works
  • CSV→JSON: first row is headers; comma, semicolon, tab, and pipe delimiters are supported. Turn on Detect numbers and booleans to convert plain numbers and true/false. Turn on Nest dotted headers to build nested objects from headers like address.city. JSON→CSV: top-level array of objects; nested objects always become dotted headers, arrays are written as JSON strings, and missing keys become empty cells.
About CSV to JSON conversion

How CSV to JSON conversion works

This CSV to JSON converter reads the first row as column headers and turns every following row into an object keyed by those headers, producing an array of objects. With Detect numbers and booleans on, plain numbers and true/false become JSON types; everything else stays a string. Auto delimiter detects comma, semicolon, tab, and pipe automatically.

Fields follow RFC 4180: a field containing the delimiter, a quote, or a line break is wrapped in double quotes, and inner quotes are doubled (""). Excel in many European locales exports semicolon-separated CSV, which Auto delimiter handles without any setup. The reverse button converts that JSON array back to a CSV table.

CSV to JSON example

CSV input
name,age,city
Ada,36,London
Linus,28,Helsinki
JSON output
[
  {
    "name": "Ada",
    "age": 36,
    "city": "London"
  },
  {
    "name": "Linus",
    "age": 28,
    "city": "Helsinki"
  }
]

CSV to JSON FAQ

Is my CSV uploaded?
No. Conversion runs entirely in your browser. Load file reads the file locally with FileReader — nothing is sent to a server.
How do I convert a semicolon or tab separated file?
Leave Delimiter on Auto to detect it, or pick Semicolon, Tab, Comma, or Pipe explicitly in the Delimiter dropdown.
Why are numbers strings in the JSON?
CSV has no data types, so every field is text. Turn on Detect numbers and booleans to convert plain numbers and true/false. Leading zeros like 007 stay strings so they are not lost.
How are nested JSON objects converted to CSV?
Nested objects are flattened into dotted headers such as address.city, in first-seen order. Arrays are written as JSON strings inside a single cell, so they can be parsed back later.
What JSON shape does JSON to CSV need?
A top-level array of objects. Columns are the union of all keys across objects, and rows missing a key get an empty cell.
How do I get nested JSON from CSV?
Use headers with dots and turn on Nest dotted headers. For example, the header address.city with the row London becomes {"address":{"city":"London"}}. If a header conflicts with another like a and a.b, both stay as flat keys so no data is lost.