π Runs in your browser β nothing is uploadedβ Free, no signup
CSV to JSON Converter
Paste CSV or open a file to get a clean JSON array. The delimiter is detected automatically, quoted fields are handled correctly, and numbers and booleans keep their types.
JSON output
When should you use the CSV to JSON Converter?
- Turning a spreadsheet export into JSON for an API or seed data
- Importing CSV data into a JavaScript or Node.js project
- Converting European semicolon-separated Excel exports
How to use the CSV to JSON Converter
- 1
Add your CSV
Paste CSV text or click Open file to load a .csv or .tsv file.
- 2
Check the options
The delimiter is detected for you. Untick 'First row is headers' if your file has no header row.
- 3
Choose types and nesting
Keep number and boolean detection on, and tick nesting if your headers use dots like address.city.
- 4
Copy or download
Copy the JSON or download it as data.json.
Examples
CSV with a quoted comma
CSV
id,name,active 1,Ada Lovelace,true 2,"Hopper, Grace",false
JSON
[
{ "id": 1, "name": "Ada Lovelace", "active": true },
{ "id": 2, "name": "Hopper, Grace", "active": false }
]Common errors and how to fix them
A quoted field is never closed- A value starts with a double quote but never ends with one. Find the odd quote, or double any quotes inside values ("").
Everything ends up in one column- The wrong delimiter was used. Choose Semicolon or Tab manually if auto-detect picked the wrong one.
Leading zeros or long IDs changed- They shouldn't β values like 007 and IDs too large to store exactly as a number (above 9,007,199,254,740,991) stay as text. If you need every value as text, untick 'Detect numbers & booleans'.
Explore More Developer Tools
Format, Validate, and Generate Data Instantly
TrueFormatter provides essential utilities for modern web development, including JSON formatting, YAML conversion, and more.
JSON Auto-Fixer & Formatter
Repair, validate, and beautify broken JSON (missing quotes, trailing commas).
JSON Validator & Linter
Check JSON syntax and see the exact line and column of every error.
JSON Beautifier
Pretty-print and indent JSON for easy reading and debugging.
JSON Compare & Diff Tool
Find the difference between two JSON objects visually and quickly.
JSONPath Tester
Evaluate JSONPath expressions with filters and recursive queries.
JSON Schema Generator
Generate a JSON Schema from any sample JSON document.
JSON to CSV Converter
Flatten nested JSON arrays into CSV for spreadsheets.
YAML β JSON Converter
Convert YAML to JSON or JSON to YAML instantly.
CSV to JSON Converter
Convert CSV or TSV data to a JSON array of objects, with type detection.
JSON to TypeScript
Generate TypeScript interfaces from any JSON sample.
JWT Decoder
Decode and inspect JSON Web Tokens (JWT) Header and Payload.
JWT Generator
Create and sign HS256/HS384/HS512 JSON Web Tokens for testing.
Hash Generator (MD5, SHA)
Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes.
Password Generator
Generate strong, random passwords with the length and characters you choose.
Base64 Encoder β Decoder
Encode text to Base64 and decode Base64 to text for API debugging.
URL Encoder & Decoder
Cleanly encode special characters in URLs and decode query strings.
SQL Formatter & Beautifier
Format SQL queries for MySQL, PostgreSQL, SQL Server, SQLite and more.
CSS Minifier & Compressor
Optimize CSS by removing whitespace and comments to accelerate page load time.
JS Minifier & Compressor
Compress JavaScript to improve website speed and performance.
HTML Formatter & Beautifier
Beautify or minify HTML with clean, consistent indentation.
Markdown Editor & Preview
Write Markdown with a live preview and copy the HTML.
Word & Character Counter
Count words, characters, sentences and reading time as you type.
Case Converter
Convert text to camelCase, snake_case, kebab-case, Title Case and more.
Text Diff & Compare
Compare two texts and highlight every added and removed word or line.
Lorem Ipsum Generator
Generate placeholder paragraphs, sentences or words as text or HTML.
Fancy Text & Font Generator
Turn text into ππ¨π₯π, πͺπ΅π’ππͺπ€, ππΈππΎπ π and other Unicode font styles you can paste anywhere.
Color Picker & Converter
Pick a color and convert between HEX, RGB and HSL instantly.
Color Palette Generator
Generate harmonious color palettes and export them as CSS, Tailwind or JSON.
CSS Gradient Generator
Build linear and radial CSS gradients visually and copy the code.
PX to REM Converter
Convert pixels to rem and rem to pixels for any root font size.
Regex Tester & Debugger
Test JavaScript regular expressions with live match highlighting and groups.
Cron Expression Generator
Build cron schedules, read them in plain English and preview next runs.
UUID / GUID Generator
Generate unique V4 UUIDs for database keys or testing.
Epoch converter online
Convert UNIX timestamps to human-readable dates and back instantly.
Time Zone Converter
Convert a time between time zones and compare cities side by side.
Random Number Generator
Generate random numbers in any range β unique, sorted or decimals.
Crop Image Online
Crop images exactly as selected with fixed aspect ratios. No upload, no resize, no quality loss.
Compress Image Online
Compress JPG, PNG & WebP images directly in your browser. No upload, no tracking, instant download.
Image Resizer
Resize images to exact pixels or a percentage, keeping the aspect ratio.
Image Converter (PNG, JPG, WebP)
Convert images between PNG, JPG and WebP in your browser.
Image to Base64
Convert an image to a Base64 data URI for CSS, HTML or JSON.
CSV to JSON Converter FAQ
Paste your CSV or open a .csv file. With 'First row is headers' ticked, each row becomes a JSON object using the header names as keys. Copy or download the result.
Yes. Values wrapped in double quotes can contain commas, line breaks and escaped quotes (""), following the CSV standard (RFC 4180).
Yes. The delimiter is detected automatically from the first line, which covers comma, semicolon (common in European Excel exports), tab (TSV) and pipe. You can also choose it manually.
With 'Detect numbers & booleans' on, 42 becomes a number and true becomes a boolean, and empty cells become null. Values like 007 and IDs too large to store exactly as a number stay as text so they aren't changed.
Yes. Name columns with dots β for example address.city β and tick 'Nest dotted headers'. The value is placed inside an address object.
No. Files are read and converted in your browser, so it's safe to convert customer lists or exports.
