CSV ↔ JSON Converter

Convert CSV to JSON and back. Pick comma, semicolon or tab, numbers and booleans are auto-typed, and quoted fields keep commas and newlines.

All conversion happens locally in your browser. Your data never leaves your device.

—

How It Works

The parser reads your CSV character by character, tracking whether it is inside a quoted field. That means commas, semicolons and even newlines inside quotes are kept as part of the value, while the delimiter outside quotes splits fields. The first row becomes the set of keys for the JSON objects.

CSV Parsing Rules
Double quotes wrap fields that contain the delimiter, quotes or newlines. A doubled quote ("") inside a quoted field is an escaped quote. The first row is the header; data rows are mapped to keys in order.
Type Inference (CSV → JSON)
Values are converted to the most natural JSON type when possible. If a value does not match any rule it stays a string, so "1.2.3" or "007" are never mangled.
JSON → CSV
The header is the union of all keys across every object, in first-seen order. Values containing the delimiter, quotes or newlines are wrapped in double quotes, and embedded quotes are doubled.

Type Inference Reference

CSV ValueJSON TypeExample
Integernumber42 → 42
Decimalnumber3.14 → 3.14
true / falsebooleantrue → true
Emptynull→ null
Anything elsestring"007" → "007"

Frequently Asked Questions

What are CSV and JSON?

CSV (Comma-Separated Values) stores tabular data as plain text rows. JSON (JavaScript Object Notation) is a structured format for key-value objects and arrays. They are the two most common interchange formats for tabular data, and converting between them is a everyday task.

How is the CSV header row handled?

The first row is used as the header: each value becomes a key in the JSON objects. If a data row has fewer values than headers, the missing keys get null. If it has more, the extras are ignored.

How is type inference done?

Whole numbers and decimals become JSON numbers, the strings true and false become booleans, empty values become null, and everything else stays a string. Quoted fields, including values with embedded commas and newlines, are parsed correctly.

Which delimiters are supported?

Comma, semicolon and tab. Semicolon is common in CSV files exported from European versions of Excel; tab is the standard for TSV files. Pick the delimiter that matches your file before converting.

Is my data uploaded anywhere?

No. All parsing and serialization happens in your browser with plain JavaScript. Nothing is sent to a server, so sensitive data stays on your device.

Round out your spreadsheet workflow: export workbooks as clean text with Excel to CSV, hand a finished file back to a colleague with CSV to Excel, sanity-check messy data in the CSV Viewer, or skip a step entirely with Excel to JSON.