Convert CSV to JSON

Turn CSV rows into JSON objects when the first row has field names, or arrays when it does not. Values remain strings, so leading zeroes are preserved.

Enter CSV text to create JSON.

How to convert CSV to JSON

  1. Paste CSV text and choose its delimiter.
  2. Select whether the first row contains unique, non-empty field names.
  3. Convert, then copy the result or download the JSON file.

Example

A header name,age followed by Ana,30 becomes an object with name and age. The value 001 remains the string "001".

Limits and data handling

  • Up to one million characters and 20,000 rows.
  • Header names must be unique and non-empty, with the same number of fields in every row.
  • Values remain strings; this converter does not infer numbers or dates.

Processing and privacy

Conversion runs in this browser. The CSV text is not sent to the server.

Frequently asked questions

Are numeric-looking values converted to numbers?

No. Values remain strings, preserving leading zeroes and avoiding type guesses.

Can I convert CSV without a header?

Yes. Clear the header option to create an array of values for each row.

Why must header names be unique?

Duplicate or blank names are rejected so that object properties do not overwrite one another.