This free online CSV to JSON converter turns pasted CSV or a UTF-8 .csv file into a JSON array of objects. Preview the rows, then copy or download formatted or minified JSON. Conversion runs locally in your browser with no account required.
Each data row becomes one JSON object. Header cells become field names, and values remain strings unless you enable basic type detection. Check which row contains headers and what types the receiving API, script or application expects before importing the result.
How to convert a CSV file to JSON online
You can paste CSV text or choose a file in your browser. For a saved CSV export:
- Open Upload CSV, then Choose CSV, and select one UTF-8
.csvfile. You can also drop one file into the upload area. The file is read locally, not sent to ToolMint's server. - Select the delimiter if auto detection does not match your export. Keep First row contains headers enabled when the first row contains field names.
- Leave Detect basic data types off to keep cell values as strings, or enable it only when those types suit the receiving system.
- Select Preview CSV and check the columns, row count and warnings. Correct reported errors in the source before exporting.
- Select Convert to JSON, choose Formatted or Minified, then Download JSON to save
converted-data.json. Copy is available for pasting the result into another application.
The file picker accepts one file up to 20 MiB (20,971,520 bytes); conversion supports up to 500 columns. Export an Excel workbook as UTF-8 CSV first: renaming .xlsx to .csv does not convert its contents. Keep the original export and compare the generated JSON before importing it elsewhere.
CSV to JSON example: a table becomes an array
Paste this fictional CSV into Paste CSV, keep First row contains headers enabled and leave Detect basic data types off:
name,city,active
Maya,Dubai,true
Omar,Abu Dhabi,false
Select Preview CSV, then Convert to JSON. The complete formatted output is:
[
{
"name": "Maya",
"city": "Dubai",
"active": "true"
},
{
"name": "Omar",
"city": "Abu Dhabi",
"active": "false"
}
]
The output is one array containing two objects, rather than a separate JSON file for each row. The header row is not a data record. The active flags remain strings in this example; enabling type detection changes them to JSON booleans. Choose Minified for the same values without indentation, or Download JSON to save the result.
Convert CSV to JSON without losing leading zeros
Select Load ID example, leave the first-row header option enabled and convert this fictional customer export:
customer_id,postal_code,amount,active
000123,02108,12.5,true
000124,00501,7,false
With type detection off, the first record is:
{"customer_id":"000123","postal_code":"02108","amount":"12.5","active":"true"}
Enable type detection and convert again. The first record becomes:
{"customer_id":"000123","postal_code":"02108","amount":12.5,"active":true}
The complete output wraps both records in a JSON array. The IDs and postal codes remain strings; the amount and flag change types. If a spreadsheet has already changed 000123 into 123, this converter cannot reconstruct the missing zeros. Use the original export.
Choose strings or basic type detection
Leave Detect basic data types off when exact cell text matters. IDs, phone numbers and postal codes are identifiers, even when they contain only digits. Keeping strings also retains decimal spelling such as 12.50.
Enable detection when the receiving system requires basic typed values. The setting applies across the conversion, rather than to individual columns:
true,falseandnullare recognized without regard to letter case.- Blank or whitespace-only cells become
null; with detection off, empty cells remain empty strings. - Safe integers and finite plain decimal numbers can become numbers. Leading-zero numeric values and integers outside JavaScript's safe range stay strings.
- Dates and exponent notation such as
1e3remain text. Decimal conversion can change precision or spelling; it is not exact decimal arithmetic.
Compare the JSON output with the target API or application's field requirements. For example, "active":"true" and "active":true are different types even though a table preview may look similar.
Check separators, headers and row lengths
Use Preview CSV before exporting. If a semicolon-separated file appears as one wide column, select Semicolon instead of relying on auto detection. A comma inside a quoted cell belongs to that cell; it should not create another column.
Enable First row contains headers only when the first row contains field names. Otherwise, disable it to generate names such as column_1 and keep the first row as data. Header names are trimmed; empty names receive a fallback, and repeated names receive suffixes such as email_2. Check renamed fields against the names your importer expects.
A short row receives empty values for missing cells, or null when type detection is enabled. A row with more cells than its header row blocks export. Check its separator and quotation marks, then correct the source. Disable header mode only when the file genuinely has no header row.
Review the JSON before importing it
After Convert to JSON, check a representative record containing an ID, a decimal, a boolean and a blank cell. Confirm the displayed row count against the source; the preview shows only a limited set of rows, while conversion uses the parsed dataset.
Use JSON Schema Validator with the receiving system's schema to check required fields and types. Use JSON Formatter to inspect the generated payload or Text Diff Checker to compare two JSON exports in the same format. Formatting checks syntax; it does not repair data or establish that values are correct.
Understand what a reverse conversion preserves
The JSON to CSV Converter supports the reverse export, but CSV does not retain JSON's full type and nesting model. A dotted header such as profile.city remains a literal field name in this converter. JSON text inside a cell, such as ["new","trial"], remains a string rather than becoming an array.
Export binary spreadsheets as UTF-8 CSV before using this tool. Review the page's privacy and limitations sections for processing details and supported limits; keep the original file so you can compare the result before replacing data in another system.