Convert CSV to JSON
Turn spreadsheet rows into clean JSON, with numbers and text told apart sensibly.
- 100% free
- No sign-up
- Runs in your browser
Paste comma-, semicolon-, tab- or pipe-separated text, open a .csv, .tsv or .txt file, or drop one here
Next: JSON formatter · JSON to CSV · CSV to Excel
Report a problem with this tool
How to use CSV to JSON
Paste or open your CSV
Paste the text, or open or drop a .csv, .tsv or .txt file. The separator is detected and the JSON appears as you type.
Choose the shape
Pick a list of objects, a list of lists, or one object keyed by a column such as id. Set how numbers, empty cells and indentation are written.
Copy or download
Copy the JSON, or download it as a .json file named after your CSV.
Why use Utils365
Reads real-world CSV
Commas, semicolons, tabs and pipes are detected. Quoted values can hold the separator, line breaks and doubled quotes, and a byte-order mark at the start is ignored.
Careful with numbers
42 and 3.14 become numbers, but 007, +44 20 7946, 1,234 and 20-digit IDs stay text, so nothing is silently changed.
Problems are pointed out
An unclosed quote is reported with its line number, and rows with too few or too many cells are counted and still converted.
Private by design
The file is converted on your device and never uploaded, so customer lists and exports stay with you.
Frequently asked questions
Which values become numbers?
Only values that can make the trip unchanged: whole numbers up to 9007199254740991 and decimals of up to 15 significant digits, written plainly like 42, -3.5 or 1.5E+15. A value too small to store, like 1E-400, stays text rather than becoming 0. Anything with leading zeros, a plus sign, spaces or thousands separators stays text, as do longer numbers. Turn detection off to keep every value as text.
How do I convert a TSV or semicolon-separated file?
The same way. The separator is detected from the first rows: comma, semicolon, tab or pipe. If the guess is wrong, for example in a file with a single column, choose the separator yourself. A first line like sep=; that Excel adds to name the separator is followed and left out of the JSON.
What happens to duplicate or empty column names?
Every key is made unique. A repeated name gets a number, so two name columns become name and name_2, and a column with no name is called by its position, such as column3.
Can I get nested JSON from a flat CSV?
Yes. Turn on nesting and a column named address.city becomes a city key inside an address object. If one column is named address and another address.city, the dotted name is kept as it is, because a key can’t be both a value and an object.
What if some rows have missing or extra cells?
They are still converted. Rows are compared with the header row, or with the most common row length when there is no header. Missing cells are written as empty values, extra cells get keys such as column5, and a note tells you how many rows differ and the line of the first one.
Does the order of columns and rows change?
No. Keys are written in column order and rows in file order, even when names or IDs look like numbers. With the keyed shape, a repeated key keeps its first position and the last row’s values.
How large a file can I convert?
Files up to 50 MB can be opened. Large files are held beside the text box rather than in it, and a long result is shown cut short on the page, while copy and download include all of it. Files are read as UTF-8.