Skip to content
T
Tools.Town
Free Online Tools for Everyone
[ { "a": 1 } ]

CSV to JSON Converter

100% Free

Parse CSV (RFC 4180) into structured JSON — quoted fields, embedded newlines, auto-typing for numbers/booleans, instant download.

Real-time
Client-Side
RFC 4180
Delimiter
JSON output 0 rows · 0 cols
[]

Embed This Tool

Easy to Embed

Add CSV to JSON Converter to your website or blog in seconds.

  • Responsive design
  • Lightweight & fast
  • No backend required
  • Always up-to-date
<iframe
  src="https://tools.town/embed/csv-to-json/"
  width="100%"
  height="600"
  style="border:none; border-radius:12px;"
  loading="lazy"
  title="CSV to JSON Converter">
</iframe>

Share This Tool

Share Instantly

Share CSV to JSON Converter with anyone — no login required.

  • Shareable link
  • No login required
  • Works on any device
  • No account needed

Share via

Advertisement

How to Use

  1. 1 Paste any CSV (or click 'Load sample')
  2. 2 Pick a delimiter — comma, semicolon, tab, or pipe
  3. 3 Toggle 'First row = header' to control column naming
  4. 4 Toggle 'Auto-type' to coerce numbers / booleans / null
  5. 5 Copy or download the JSON with one click

Features

  • RFC 4180-compliant parser handles quoted fields, embedded newlines
  • Doubled quotes inside fields ('he said "hi"') are decoded correctly
  • Four delimiter options
  • Auto-typing: numeric strings → numbers, 'true'/'false' → booleans
  • Optional trim of cell whitespace
  • CRLF + LF line endings both work

Why it Matters

CSV looks simple but the spec has surprises — embedded newlines, doubled quotes, locale-specific delimiters. A handwritten `split(',')` parser breaks on the first comma in a name. This tool implements full RFC 4180 in the browser so you can paste real-world CSV (Excel exports, sales reports, customer lists) and get clean JSON.

★★★★★

Use Cases

Excel → API Payload

Convert a spreadsheet export into JSON for API ingestion

Test Data Generation

Spreadsheet of test cases → JSON fixtures

Schema-less Import

Quickly inspect a CSV's shape before designing a schema

Frequently Asked Questions

What's RFC 4180?
The de facto CSV spec — defines how quoted fields, embedded commas/quotes/newlines, and CRLF line endings should be handled. We implement it strictly so Excel/Sheets exports parse correctly.
Will it handle a CSV with multi-line cells?
Yes — fields wrapped in double quotes can contain literal newlines. The parser tracks quote state and only treats unquoted newlines as row separators.
What does 'Auto-type' actually do?
When enabled: '42' becomes the number 42, 'true' becomes the boolean true, 'null' becomes JS null. Strings that don't match any pattern stay strings. Disable it to keep all cells as strings.
Why is my row's first cell missing?
Likely a UTF-8 BOM (byte-order mark) at the start of the file — Excel adds it. Trim the first 3 bytes from your input before pasting.

Related Tools You Might Like

Browse more free tools