CSV to JSON
Paste CSV or upload a file to convert it into formatted JSON โ and back again. Handles custom delimiters, headers, and data types.
Jump to section โพ
How to Use the CSV to JSON
Paste your CSV data into the left panel or upload a .csv file. The JSON output appears instantly on the right, formatted with 2-space indentation by default. Use the options row to set your delimiter, toggle headers, choose the output structure (array of objects, array of arrays, or keyed by column), and control type detection. The table preview below shows your parsed data with inferred types so you can verify the conversion before downloading. To convert JSON back to CSV, click the โ toggle at the top.
About This Toolโพ
A bidirectional converter between CSV and JSON formats. CSV (Comma-Separated Values) is the most widely supported data interchange format for spreadsheets, databases, and analytics tools. JSON (JavaScript Object Notation) is the standard format for web APIs, configuration files, and NoSQL databases. This toolโs parser is RFC 4180-compliant โ it correctly handles quoted fields containing commas, embedded newlines, and escaped double-quotes. Auto-detect mode identifies the delimiter from the first line, supporting comma, tab, semicolon, and pipe-delimited files. Type inference detects numbers and booleans column-by-column for clean, structured JSON output. Zero external libraries โ everything runs in your browser. Related: pretty-print JSON to tidy up the JSON you produced here, test regular expressions live for validating column values, and encode special characters for URLs when piping output into query strings.
Quick Reference Table
| Output Structure | Best For |
|---|---|
| Array of objects | Most common โ each row becomes a named object |
| Array of arrays | Compact โ no headers, just nested arrays |
| Keyed by column | Data analysis โ one array per column |
Frequently Asked Questions
Why are my numbers being converted to strings?
Type detection checks whether ALL values in a column can be parsed as the same type. If any value in a column is not a valid number โ an empty cell, โN/Aโ, or a text value โ the entire column stays as strings to prevent data loss. Enable โTreat empty as nullโ in the options to allow columns with empty cells to still be detected as numbers.
My CSV uses semicolons โ how do I handle that?
Set the delimiter to Semicolon (;) in the options. The Auto-detect option will usually detect semicolons automatically if they are more frequent than commas in the first line. Semicolon-delimited CSV is common in European locales where the comma is used as a decimal separator.
Can I convert a multi-sheet Excel file?
This tool converts CSV and JSON text formats. For Excel files (.xlsx), export each sheet from Excel as a separate CSV first (File โ Save As โ CSV). Excel can only export one sheet at a time as CSV.
What happens with special characters and Unicode?
This tool reads CSV files as UTF-8 text, which supports all Unicode characters including emoji, Chinese, Arabic, and Icelandic. If your CSV was saved in a different encoding, characters outside ASCII may display incorrectly. Re-save your file as UTF-8 before uploading.
How big a CSV file can the CSV to JSON converter handle?
The converter processes CSV entirely in your browser with streaming-friendly parsing, so file size is limited mainly by your browserโs memory. CSVs under 50MB (roughly a million rows of typical business data) convert smoothly on modern devices. Much larger files are possible but may cause the browser tab to stall briefly during parsing.
Created by The Toobits Team ยท Engineering & Editorial
Toobits is built, tested, and maintained by a small independent engineering team. Every tool is written in TypeScript, runs entirely in the browser, and is reviewed against its source formulas before publication.
Editorial policy ยท Updated April 2026
Related tools
Hand-picked companions that pair well with this tool.
JSON Formatter
Format, validate, minify, and explore JSON with a tree view.
developerWord Counter
Count words, characters, sentences, and reading time as you type.
text๐ปBase64 Image Encoder
Encode images to Base64 strings or decode Base64 to images.
imageRegex Tester
Test regular expressions with real-time matching and capture groups.
developerURL Encoder / Decoder
Encode or decode special characters for URLs instantly.
developerMarkdown to HTML
Convert Markdown to clean HTML with live preview.
developerMore from Developer Tools
Other tools in the same category.
Internet Speed Test
Test your internet download, upload speed, and latency.
developerIP Address Lookup
Look up geolocation, ISP, and network details for any IP.
developer#Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from text.
developerโฐCron Generator
Build and explain Unix cron schedule expressions visually.
developer๐จColor Palette Generator
Generate harmonious color palettes from any base color.
developerNumber Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal.
developer