CSV to JSON

Convert CSV or TSV data to a JSON array of objects. Auto-detects delimiters and runs in your browser.

About CSV to JSON

Paste CSV or TSV data and instantly get a JSON array of objects. The first row is used as property names by default. Auto-detects comma, semicolon, or tab delimiters. Handles quoted fields with embedded commas and newlines per RFC 4180. All processing runs in your browser.

Features

  • Auto-detect delimiter (comma, semicolon, or tab)
  • RFC 4180 compliant parser with quoted field support
  • First row as header or treat all rows as data
  • Trim whitespace from values optionally
  • Configurable JSON indentation (2 or 4 spaces)
  • Copy JSON to clipboard or download as .json file
  • Row and column count stats
  • 100% client-side — nothing is uploaded

How to use

  1. 1Paste CSV or TSV data into the input panel.
  2. 2Adjust delimiter, header, and trim options if needed.
  3. 3Click Convert to generate JSON.
  4. 4Copy the result or download as a .json file.

Frequently Asked Questions

Does it handle quoted fields with commas?
Yes. The parser follows RFC 4180 and correctly handles fields wrapped in double quotes, including those containing commas and newlines.
What if my CSV uses semicolons or tabs?
The auto-detect mode analyzes the first line to determine the delimiter. You can also manually select semicolon or tab.
What happens without a header row?
If you uncheck the header option, the output is a JSON array of arrays instead of objects.
Is my data sent to a server?
No. Parsing and conversion run entirely in your browser. Nothing is uploaded or stored.

Related Converters

Explore other tools