CSV to JSON Converter: what you need to know
APIs and apps speak JSON; exports and spreadsheets speak CSV. CSV to JSON should be trivial, until a comma inside quotes splits a row or an ID loses its leading zero.
This converter handles quoted commas and line breaks, keeps IDs as they were, recognises numbers properly, and shows you the first rows before you download.
CSV and JSON: what changes
- CSV: Rows of values separated by commas, the lowest common denominator of data. No types, no formatting, and quoting and encodings vary between programs.
- JSON: Structured data as nested objects and lists, the language of web APIs. Exact structure and types that every programming language reads.
How the CSV to JSON converter works
A CSV is read in your browser. Quoted commas, line breaks inside cells, leading zeros and long ID numbers come through untouched, and values like 1,234.50, $1,200 and 7% are recognised as numbers.
It is written as JSON with numbers written as numbers, and a preview of the first rows is shown before you download.
What the JSON is used for
- APIs and apps
- Configuration
- Data exports
What makes this CSV to JSON converter different
- Nothing silently changed. Zeros, IDs and quoted text survive.
- Numbers stay numbers. Currency and percentages are recognised.
- Preview first. See the rows before you save.
Tips for the best JSON
- Make sure the first row holds the column names.
- Remove totals rows and notes above the table for the cleanest result.
On the blog: How to Convert CSV to JSON Free, Step by Step
CSV to JSON converter
CSV to JSON here turns each row into an object keyed by the header, with numbers and true/false written as real JSON values, not strings. Quoted cells, commas and line breaks inside cells are read to the CSV standard, so nothing lands in the wrong key.
This csv to json converter writes the shape you need: an array of objects, an array of arrays, an object of columns, or an object keyed by the first column, and JSON Lines for streaming and BigQuery. A header like address.city can build nested objects.
To convert csv to json, drop in the file or paste the text, pick the shape and download. It also takes an excel file to json: drop in an .xlsx and choose the sheet.
Need to export csv to json for an API, a web app or a database seed? Copy the result straight to the clipboard. If you have used csvjson before, this does the same job - and never uploads your data.
A free CSV to JSON converter: the header row becomes the keys, numbers and true/false keep their types. Starting from a spreadsheet? Excel to CSV to JSON online: drop the .xlsx on the Excel to JSON page. An Excel to CSV to JSON converter free of installs.
How to convert CSV to JSON (3 steps)
Paste the rows or drop a .csv.tsv or Excel file; check the table shown; choose an array of objects, arrays or columns, then copy or download the JSON.
CSV vs JSON: which should you use?
CSV is a flat table that opens in Excel; JSON holds nested data and types and is what APIs and JavaScript read. Convert to JSON when the data is going into code.
Handling headers, quotes and empty values
The first row becomes the keys. Quoted fields with commas or line breaks inside are read correctly, empty cells become empty values, and numbers and true/false are typed.
Nested values and arrays from CSV columns
A dotted header such as address.city becomes a nested object, so a flat CSV can produce the nested JSON an API expects.
CSV to JSON for APIs and databases
An array of objects is the shape most APIs and document databases take; JSON Lines (one object per line) suits bulk imports.
How to convert CSV to JSON
- Drop in a CSV, TSV or Excel file, or paste the data.
- Choose the JSON shape, typed values and indent.
- Download the .json file or copy it.
People also search for
- json to csv
- excel to json
- csv to json array
- csv to json online
- tsv to json