CSV to JSON Converter

Convert CSV to JSON online: paste or import your spreadsheet, pick the delimiter and preview the table and JSON before downloading.

Without a header, each object's keys become column1, column2, column3…

Applies to every column. Numbers with a leading zero and numbers too long to be exact stay as text, but IDs, account numbers or phone numbers made only of digits become numbers — leave it off if your sheet has codes like these.

0Records
0Columns
0Inconsistent rows

Turn CSV files into JSON for free and make spreadsheet data easy to use in applications, APIs and other systems. Import a file or paste the data directly, set the delimiter and preview the structure as a table and as JSON before downloading. Each CSV row becomes an object, and the header's column names become its keys.

The converter follows RFC 4180, the same standard Excel, LibreOffice and Google Sheets use when exporting CSV: it understands quoted fields, escaped quotes (""), line breaks inside a cell, Windows line endings and the BOM marker Excel adds at the start of the file. It also detects whether the separator is a comma, semicolon, tab or pipe, and flags rows whose column count doesn't match the header — the most common sign of a field containing the delimiter without quotes. Everything runs in your browser; your data is never uploaded.

Need to go the other way, or want to check a JSON file before using it? JSON to CSV Converter · JSON Validator

How to convert CSV to JSON

  1. Paste the CSV into the box, drag the file into it or click "Import .csv file".
  2. Leave the delimiter on "Detect automatically" or choose your file's separator, and say whether the first row is the header.
  3. Decide how to handle empty fields and whether numbers and true/false should become real JSON types.
  4. Review the table and any inconsistency warnings, then copy the JSON or download the .json file.

How the data is converted

  • With a header, each row becomes an object keyed by the header names. Without one, the keys are column1, column2 and so on.
  • Blank column names are called columnN, and repeated names get a suffix (_2, _3) so no data is overwritten.
  • Rows with too few columns are filled with your chosen empty value. Extra columns get extra keys, and both cases are listed in the warnings with their line number.
  • With automatic conversion on, 42, -3.5 and 1e3 become numbers and true/false become booleans. Values like 007, 02134 and 1,234.56 stay as text so leading zeros and formatting aren't lost.
  • Completely blank lines are skipped, and a quote that's never closed triggers a warning showing the line where it was opened.

Practical example

The preloaded example is a comma-separated export with four columns. The tool detects the delimiter and produces four keys per record: name, email, city and age. The name "Lima, Bruno" was quoted because it contains a comma, and it arrives in the JSON intact. Bruno's empty age becomes "" or null depending on the option you choose, and with automatic conversion on, the ages 34 and 29 become numbers instead of strings.

Frequently asked questions

How do I convert an Excel spreadsheet to JSON?

In Excel, choose File > Save As and pick "CSV UTF-8 (Comma delimited)". Then import the file here. Even if your Excel saves with semicolons because of regional settings, automatic detection recognizes the separator.

What does the inconsistent row warning mean?

It means the row has more or fewer columns than the header. Most of the time it's a text field that contains the delimiter but wasn't quoted, or a cell that was deleted. The conversion still runs, but it's worth checking the rows listed.

Should I turn on automatic number conversion?

Turn it on if the JSON will feed calculations or an API that expects numbers and booleans. Leave it off to keep everything exactly as text, for example codes with leading zeros. Even when it's on, the tool keeps numbers that are too long for JavaScript, and values with thousands separators, as text.

Is it better to use an empty string or null for blank fields?

It depends on the system receiving the data. Databases and APIs often distinguish "not provided" (null) from "provided but blank" (""). If you're not sure, null is usually the clearer choice for optional fields.

Does the converter handle line breaks inside a cell?

Yes. Under the CSV standard, a field wrapped in double quotes can contain line breaks, delimiters and quotes (written twice, ""). The converter handles all of these, and the line numbers in the warnings refer to the actual lines of the file.

Is my data sent to a server?

No. The file is read and converted entirely in your browser and never leaves your computer, so you can safely convert spreadsheets with personal, financial or internal data.