🔒 100% Private — Your files never leave your device

CSV to JSON Converter

Paste CSV data or upload a file to convert to JSON. Supports comma, semicolon, and tab delimiters — download the result.

or paste below
Ad Space

CSV to JSON Converter Online Free

Convert CSV files or pasted CSV data to JSON format. Supports comma, semicolon, and tab delimiters. First row can be treated as headers for key names. Output is downloadable as a .json file.

Frequently Asked Questions

Does it support different delimiters?
Yes. Choose comma (,), semicolon (;), or tab as the delimiter. Tab-separated files (TSV) are also supported.
What happens to numeric values?
Numbers are automatically converted from strings to numbers in the JSON output. Strings remain as strings.
Can I convert without a header row?
Yes. Uncheck 'First row is header' and columns will be named field1, field2, field3, etc.
Is my CSV data sent to a server?
No. Parsing happens locally in your browser with JavaScript.

Related Tools

Ad Space
Ad Space

How to convert CSV to JSON online

A CSV file stores rows of data as plain text. JSON stores the same data as objects with named keys. Developers often need this change when they send data to an API, load a file into a script, or feed a web app. The steps below take about a minute.

Step by step

  1. Upload your .csv file, or paste the CSV text into the box.
  2. Check the delimiter. Look at your raw text: if values are split by commas, keep comma. If they are split by semicolons, pick semicolon. Files exported from spreadsheets in some regions use semicolons.
  3. Decide about the first row. Keep "First row is header" checked if the first line holds column names. Uncheck it if the first line is already data.
  4. Click Convert to JSON.
  5. Read the result. Then use Copy JSON or Download .json.

A worked example

Say you paste these three lines with a header row:

name,age,city
Lea,31,Lyon
Omar,28,Lille

The output is a list of two objects, one per data row:

[{"name":"Lea","age":31,"city":"Lyon"},{"name":"Omar","age":28,"city":"Lille"}]

The input has 3 lines. One is the header, so the JSON holds 3 − 1 = 2 objects. Each object has 3 keys, taken from the header. That makes 2 × 3 = 6 values in total.

Practical tips

Common uses

More questions about CSV and JSON

Why is my JSON output all in one key or one column?

The delimiter probably does not match your file. If your data uses semicolons but comma is selected, each line is read as a single value. Switch the delimiter and convert again.

Why do I see strange characters like é instead of é?

The file was probably saved in a different text encoding than the one being read. Re-export the CSV from your spreadsheet as UTF-8, then upload it again.

Can I turn the JSON back into CSV later?

Yes, if the JSON is a flat list of objects with the same keys, as in the example above. Nested objects or lists inside a value do not fit well in a table, so they need to be flattened first.