JSON to CSV
Turns an array of JSON objects into a CSV table.
Paste CSV or upload a spreadsheet export to get a JSON array, with the header row used as keys. This CSV to JSON converter handles quoted fields and commas inside values.
Convert types turns plain numbers, true, and false into JSON values and empty cells into null. Values like 00123 or 1e5 stay text, so ZIP codes and IDs keep every digit.
.csv or .tsv file up to 5 MB."" inside quotes stands for one double quote.column1, column2, and so on.true and false become booleans, and an empty cell becomes null. Everything else stays a string, including 00123, 1e5, and phone numbers.Input:
name,age,city "Doe, Jane",34,Paris
Output:
[{"name":"Doe, Jane","age":34,"city":"Paris"}]A column zip with the value 02134 gives [{"zip":"02134"}]. The leading zero is kept, so the value stays a string.
Spreadsheets are easy to edit, but code and APIs work with JSON. Converting CSV to JSON is the quickest way to load a sheet of products, users, or settings into an app, send it to an API, or use it as test data.
ZIP codes, phone numbers, product codes, and IDs often start with 0. Turning them into numbers would drop those zeros for good, so values with leading zeros always stay strings. If a column should never be converted, turn off "Convert types" and every value stays text.
null, and extra cells go under _extra.name and name_2.Yes, by default. Turn off "First row is the header" and keys become column1, column2, and so on.
Yes, when "Convert types" is on. Values with leading zeros, like ZIP codes, stay as text so no digits are lost.
Yes, as long as the value is wrapped in double quotes, which is standard CSV.
No. Parsing happens entirely in your browser.
Often used together with the CSV to JSON.
Turns an array of JSON objects into a CSV table.
Beautifies or minifies JSON.
Converts XML into readable JSON, with attributes and repeated elements handled.