Black Friday Sale · Save $40 every year on Phoenix Pro --:--:--
All tools

CSV to JSON

Paste a CSV and get JSON. Values stay text unless you ask.

Convert JSON to CSV

Privacy first — your data never leaves your device Everything runs directly in your browser, not on our servers. Your text and files are never sent anywhere.

Paste CSV to see JSON.

JSON

About this tool

What is a CSV to JSON converter?

A CSV to JSON converter reads the first row as names and turns each following row into a JSON object. CSV to JSON online on this page keeps every value as text, so 00123 does not become the number 123.

How to convert CSV to JSON

Paste the CSV or open a .csv file. The JSON appears with syntax highlighting as you type. Copy it or download it to convert CSV to JSON. Choose semicolon or tab when the file is not separated by commas.

Text, numbers, and dotted headers

Leave the checkboxes off and every cell stays a string. Parse numbers, booleans, and null when you want 1, true, and null to change type. A dotted header such as user.name stays one name until you rebuild nested objects. If a dotted header clashes with another column, the page keeps the flat names and says why.

Semicolons, tabs, and repeated headers

A repeated header is renamed, so a second name column becomes name__2. A missing header becomes column_2, column_3, and so on. An unfinished quote is reported and not guessed. This page reads CSV text. It does not open a spreadsheet workbook.

The other direction is the JSON to CSV converter.

Check the JSON in the JSON Formatter, or list path differences in JSON Compare & Diff.

Frequently Asked Questions

How do I convert CSV to JSON?

Paste the CSV. JSON appears below as you type. Copy it or download data.json. Open a .csv file when the text is already saved.

Why does 00123 stay a string?

CSV has no types. This converter keeps the characters you pasted. Turn on Parse numbers, booleans, and null only when you want plain numbers, true, false, and null to change type. 00123 stays text.

How do I convert a semicolon or tab file?

Choose Semicolon or Tab. The page does not guess the separator. A comma file stays on Comma, including when a quoted cell contains a comma.

Does this CSV to JSON converter upload my file?

No. The converter runs in your browser. The CSV is not uploaded.

How do I convert CSV to JSON format?

Paste the CSV or open a .csv file. CSV to JSON format on this page uses the first row as names and turns each later row into an object. Copy the JSON or download data.json. Values stay text unless you turn on parsing. Format that JSON in the JSON Formatter, or compare two JSON files in JSON Compare & Diff.

How do I export CSV to JSON?

Open the CSV or paste it, then download data.json to export CSV to JSON. The download is the full file. Choose Semicolon or Tab when the file is not separated by commas. To turn the JSON back into a table, use the JSON to CSV converter.

Is there an online CSV to JSON converter?

Yes. This online CSV to JSON converter runs in your browser. CSV to JSON online here keeps values such as 00123 as text. The file is not uploaded.

Last updated:

Build with Phoenix Code

Open the JSON in Phoenix Code and edit it with syntax highlighting next to the code that uses it.