CSV to JSON Converter
Convert CSV data to JSON instantly in your browser, with RFC 4180 quoting and custom delimiters.
3 rows · 4 columns
About This Tool
Paste any CSV and get a clean JSON array of objects. Handles quoted fields, escaped quotes, commas and newlines inside quotes, custom delimiters (comma, semicolon, tab, pipe), and optional type coercion for numbers and booleans. Toggle between headers-as-keys and raw arrays. Runs entirely in your browser — no file upload, no server round-trip.
What you provide
CSV text with optional header row
What you get
JSON array of objects (or array of arrays)
How to Use
- Paste your CSV data into the input area.
- Choose the delimiter if it is not a comma (semicolon, tab, or pipe).
- Toggle 'First row is header' to use column names as object keys.
- Toggle type coercion to convert numbers and booleans automatically.
- Click Convert, then Copy to grab the JSON output.
Frequently Asked Questions
- Does this follow RFC 4180?
- Yes. The parser supports fields wrapped in double quotes, escaped quotes written as two consecutive double quotes (""), and commas or newlines embedded inside quoted fields. Lines can end with LF or CRLF; both are normalized automatically.
- Can I change the delimiter?
- Yes. The default is comma, but you can choose semicolon (common in European CSV exports), tab (TSV files), or pipe. If you need a custom character the delimiter selector accepts any single byte.
- What does type coercion do?
- When enabled, fields that look like numbers (including negatives and decimals) are emitted as JSON numbers, 'true' and 'false' become JSON booleans, and empty fields become null. Disable coercion if you need every value as a string — useful when leading zeros, phone numbers, or IDs would otherwise be converted.
- What happens if rows have a different number of columns than the header?
- Extra columns are kept under numeric keys (_1, _2, ...). Missing columns are set to null when type coercion is on, or to an empty string when it is off. This keeps the output shape consistent across rows so downstream code can rely on the keys.
- Is this tool free to use?
- Yes. The converter runs entirely in your browser with no account required. Your CSV data never leaves your device.
Learn More
CSV Parsing Done Right: RFC 4180, Edge Cases, and Why Split-on-Comma Fails
Learn what RFC 4180 actually specifies, the CSV edge cases that break naive parsers, delimiter and encoding pitfalls, and when to use JSON instead.
7 min read