How are columns chosen?
The first row is the header. Each following row becomes an object using those header names.
Runs in your browser. No signup required.
Rows are split on line breaks first. The first row’s cells become object keys. Each later row becomes one object. A cell that is missing because the row is short becomes an empty string. Cells past the header are dropped. Commas inside quotes are kept as part of the cell when the quotes start and end on that same line.
A line break inside a quoted field is not supported, because the splitter runs before quote parsing. A multiline address in one CSV cell will be read as two rows and the columns will shift. Flatten that field, or use a converter that implements full RFC 4180, before you trust the JSON.
A file whose first line is name,city and whose next lines are Ada,London and Grace,"New York" becomes two objects. The quoted comma never appears in that example; the quotes around New York are unnecessary but legal, and the city key is New York. Paste or choose a local file. The JSON is built in the tab. You can copy it or hand it to the JSON formatter if you want indentation checked.
Headers are used as-is, including spaces and odd characters. Duplicate header names collide the way a normal object does: the later cell wins for that key. There is no option to make an array of arrays without headers. Add a header row if the file is headerless, or the first data row will be mistaken for keys.
Cells are not cast to numbers or booleans. A column of 30 is the string "30" in the JSON. That is the safe choice for ZIP codes and IDs that would lose a leading zero. Parse them in your own code if you need types. The reverse tool, JSON to CSV, is the one that flattens nested objects. This page only reads a table.
An empty paste produces no useful array. A single header row and no data rows produces an empty array. The file is not uploaded. On a shared computer, clear the box when the CSV contained personal data.
The first non-empty line is the header, split on every comma. Later lines are records. A quote toggles a field, and two quotes in a row inside a quoted field become one quote character. A comma outside quotes ends a field. Missing cells become an empty string. The starter sheet name,age then Alice,30 then Bob,25 becomes two objects, {"name":"Alice","age":"30"} and {"name":"Bob","age":"25"}. Ages stay strings. Nothing is coerced to a number.
A quoted comma survives. The sheet name,note then Ada,"hello, world" keeps hello, world as one note value. The header line does not use that quote rule. A comma inside the first line always starts a new column name. Blank lines are dropped before parsing, so a trailing newline does not add an empty object.
Use it for a small export you want to paste into a script, a fixture, or the JSON formatter. The download name follows the uploaded file, with .csv removed and .json added. A pasted sheet with no file name downloads as data.json. The text stays in the browser. Closing the tab drops both boxes.
A semicolon-separated file is not detected. Those semicolons stay inside one field. Nested CSV and a second header row are not special. This page does not turn JSON back into CSV. That direction is the JSON to CSV page, which flattens objects and quotes fields that contain a comma.
Column names are taken as written, including spaces. A header " name" and a header "name" are two different keys. Duplicate header names overwrite earlier cells in that row because each key is set in order. The last cell with that name is the one that remains.
There is no row limit in the parser itself. A very large paste can make the tab slow because the whole string is parsed and then pretty-printed with a two-space indent. If the text is not text, the error box shows the message and the JSON box is cleared. You do not get a partial array.
A doubled quote inside a quoted field is one quote character in the value. The line name,note then "Ada ""Bee""",30 stores the name Ada "Bee" and the second cell 30 only if the header has two columns. The header itself is split on every comma, so a quoted header is not unquoted. A first line of "last, first",age becomes three column names, not two.
Pretty print uses a two-space indent and a trailing newline from JSON.stringify. Keys stay in header order. The page does not sort rows and does not drop a row whose cells are all empty strings if that line contained commas. A line that is only a comma is one object of empty strings. Upload reads the file as text in the browser and then you still press convert.
Paste your data into CSV Input, or press Upload CSV and choose a .csv file. The first row is read as the column names.
Press Convert to JSON.
Read the result in JSON Output. If the CSV cannot be parsed, an error is shown.
Press Copy JSON or Download to take the result with you.
The first row is the header. Each following row becomes an object using those header names.
Yes, when the quotes stay on one line. A line break inside a quoted field is not supported, because rows are split on line breaks first.
Missing cells become empty strings. Extra cells beyond the header are ignored.
No. Paste it or open a local file. The JSON is built in the browser.
Yes, because every cell stays a string. The JSON will contain "021" rather than the number 21. Convert types in your own code if you need numbers.
Not reliably. Rows are split on line breaks before quotes are interpreted, so a newline inside quotes starts a new row.
No. Alice and Bob become objects whose age values are the strings 30 and 25. The parser never calls a number conversion.
Wrap the field in double quotes. Ada,"hello, world" stores hello, world as one note. The header line does not honor those quotes.