CleanCSV

Convert CSV to JSON

Turn a CSV or spreadsheet into a JSON array of objects, with headers as keys and sensible types, ready for code, APIs and test fixtures.

Free, no sign-upFiles never leave your deviceCSV, Excel & JSON

CSV to JSON converter

No account. No uploads. Just clean data.

100% in your browser
1

Upload your file

Drop your CSV or Excel file here

or browse your device. You can select several files at once.

CSV, TSV, TXT, XLSX, XLS, ODS and JSON · up to 50.0 MB and 250,000 rows

Your files never leave your device.

Step by step

How to use this tool

  1. 1

    Drop a CSV or Excel file into the tool above.

  2. 2

    Optionally rename columns to the keys you want (snake_case is one click) and remove columns you do not need.

  3. 3

    JSON is already selected as the download format. Click Download JSON.

Output format

Each row becomes an object whose keys are the column headers, collected in an array and pretty-printed with two-space indentation. Empty or repeated headers get unique keys such as column_3 or name_2.

Types without surprises

A column becomes numbers only if every value in it is a plain number without leading zeros, and booleans only if every value is true or false. Empty cells in those columns become null. Everything else stays a string, so zip codes like 00501 and IDs like 007 are never mangled.

Clean keys for code

Use the snake_case header style in the Columns section to turn “First Name” into first_name, and rename any column to match the property names your code expects.

Frequently asked questions

Can I convert Excel to JSON?

Yes. Upload an .xlsx, .xls or .ods file, pick a sheet and download JSON.

Does it create nested JSON?

No. The output is a flat array of objects, one per row.

Can I split the JSON into several files?

Yes. Turn on Split into multiple files in the download section to get a ZIP of JSON files with a set number of records each.