Dev Tools
  1. All dev tools
  2. CSV to JSON

Convert CSV to JSON

Turn CSV exported from Excel, Google Sheets or a database into JSON. The header row becomes the keys, and numbers and true/false become real values.

How to use the convert CSV to JSON

  1. Paste CSV, or open a .csv file.
  2. Choose whether the first row is a header and whether to convert numbers and booleans.
  3. Copy the JSON or download it.

Questions

Does it handle commas and line breaks inside fields?

Yes. Quoted fields can contain commas, quotes (written as "") and line breaks, as in the CSV standard (RFC 4180). The delimiter (comma, semicolon, tab or pipe) is detected from the first line.

Why is "00123" still text?

Converting it to a number would lose the leading zeros, which usually matter in IDs, ZIP codes and phone numbers. Only values that survive the round trip are turned into numbers.

Is my data sent anywhere?

No. Everything runs in your browser with JavaScript. What you paste is never sent to a server, and the site's security policy stops the page from connecting to any other website. That matters for tokens, keys and customer data, which people paste into tools like this every day.