CSV to JSON converter

Paste CSV or data copied from Excel to get a JSON array of objects, using the first row as keys.

Private: works in your browser, nothing is uploaded.

How to use the CSV to JSON Converter tool

  1. Paste CSV, or copy cells from Excel or Google Sheets (tab-separated).
  2. Check the delimiter and header options.
  3. Copy or download the JSON.

Handling real-world CSV

CSV looks simple until you meet a real export. The parser follows RFC 4180: fields with commas, quotes or line breaks inside double quotes are read correctly, and doubled quotes ("") become a single quote. The delimiter is detected automatically, which matters because Excel in many European locales saves CSV with semicolons, and data copied straight from a spreadsheet is tab-separated.

Types

With type conversion on, numbers become JSON numbers, true and false become booleans and empty cells become null. Turn it off when you have values like ZIP codes, phone numbers or IDs with leading zeros (00123), which must stay text. Very long numbers are always kept as text to avoid losing precision.

Privacy

Everything runs in your browser. Nothing you type is sent to our server or stored.

Example

A CSV like this:

name,city,age
Anna,Berlin,31
Omar,Lyon,27

becomes an array of two objects, each with the keys name, city and age. This is the shape most APIs, JavaScript code and NoSQL databases expect, so the result can be pasted straight into a request body, a test fixture or a configuration file.

Common problems and fixes

  • Everything ends up in one field: the file uses semicolons or tabs instead of commas. European Excel versions often export with semicolons.
  • Strange characters like é instead of é: the file was saved in an old encoding. Open it in a text editor and save it as UTF-8, then paste again.
  • Leading zeros disappear in postcodes or IDs: treat such columns as text in the code that reads the JSON, or keep them as strings.
  • Empty keys: the header row has blank cells. Give every column a name before converting.

Frequently asked questions

What if my CSV has no header row?

Untick “First row is a header” to get an array of arrays.

Does it handle Excel exports?

Yes, including semicolon-separated files and quoted fields with line breaks.

How do I get JSON back into CSV?

Use the JSON to CSV converter.

Is my data uploaded?

No. Parsing happens in your browser.

Can I use the JSON for an API request?

Yes. The output is standard JSON. Validate it in your API client (Postman, Insomnia, curl) and check whether the API expects a single object or an array of objects.

Is the order of the columns kept?

Yes. Keys in each object follow the order of the columns in the header row. Note that JSON itself does not guarantee key order, so code reading it should not depend on it.