JSON

CSV to JSON

Convert CSV files into structured JSON, with optional type inference.

csv-to-json.tool
0 chars
JSON output will appear here
Nothing you paste here is ever sent to a server - conversion happens locally in your browser.
Overview

What is a csv to json?

This tool converts CSV data into structured JSON - the reverse of JSON to CSV. It handles quoted fields with embedded commas or quotes correctly, and can optionally infer real data types (numbers, booleans, and nulls) instead of leaving every value as a plain string.

Quick start

How to use this tool

  1. 1Paste your CSV data, or upload a .csv file.
  2. 2Pick the delimiter your file uses, and whether the first row contains column headers.
  3. 3Toggle Infer types on to convert numeric and boolean-looking values automatically, or off to keep everything as strings.
  4. 4Copy the JSON output or download it as a .json file.
Where it helps

Common use cases

Turning a spreadsheet export into JSON for an API or seed script
Converting a CSV report into structured data for a frontend app
Preparing test fixtures from real exported data
Quickly checking what a messy CSV file actually contains
Good to know

Frequently asked questions

What happens with quoted fields containing commas?

They're parsed correctly - a properly quoted field like "Smith, John" is treated as a single value, not split into two columns.

What does 'Infer types' actually change?

With it on, values like "42", "true", and empty cells become the number 42, the boolean true, and null. With it off, every value stays a plain string, matching the raw CSV exactly.

What if my CSV has no header row?

Turn off 'First row is headers' and each row is converted into an array of values instead of an object with named keys.

Is my file uploaded anywhere?

No - parsing and conversion happen entirely in your browser, whether you paste the data or upload a file.

quick_facts.json

{

"runs_in_browser": true,

"data_sent_to_server": false,

"signup_required": false,

"price": "free",

"category": "Converters"

}

Related tools

#FF
No signup
Color Converter

Convert colors between HEX, RGB, HSL, and CMYK — online color converter with live preview.

Open tool
No signup
Timestamp Converter

Convert Unix timestamps to and from human-readable dates.

Open tool
MD
No signup
Markdown to HTML

Render Markdown into clean, copyable HTML.

Open tool