CSV to JSON Converter
Convert CSV data to JSON format instantly. Paste text or upload a .csv file.
No data sent to serverRelated Tools
What is CSV to JSON?
CSV (Comma-Separated Values, RFC 4180) is the universal tabular format — supported by Excel, Google Sheets, every database, every BI tool. JSON (RFC 8259) is the universal hierarchical format — used by virtually every web API and modern application.
Common conversion scenarios: importing spreadsheet data into web apps, seeding databases from Excel exports, preparing API request bodies from CSV exports, mocking API responses for testing, migrating legacy data from spreadsheets to NoSQL.
Conversion example
# CSV input
name,age,email
Alice,30,alice@example.com
Bob,25,bob@example.com
# JSON output
[
{ "name": "Alice", "age": "30", "email": "alice@example.com" },
{ "name": "Bob", "age": "25", "email": "bob@example.com" }
]The first row becomes JSON keys; each subsequent row becomes an object. Numbers are kept as strings unless the tool detects pure numeric columns and converts.
CSV gotchas to know
- Embedded commas:
"Smith, John"→ quoted strings preserve commas - Embedded quotes:
"He said ""hi"""→ doubled quotes inside quoted strings - Newlines in fields: quoted strings can span multiple lines (RFC 4180)
- Excel encoding: Excel saves CSV in CP1252/UTF-8-BOM by default — paste raw or save as "CSV UTF-8" to avoid mojibake
- Empty fields:
a,,b→ middle field is empty string, not null - Delimiter variations: regional settings sometimes use semicolons (
;) instead of commas (Europe)
How to Use
- Paste CSV data or upload a
.csvfile. - Click Convert.
- Review the JSON output — verify field names and values.
- Copy or download as
.json.
Privacy: Conversion runs in your browser. No upload.
FAQ
Does it handle quoted fields?
Yes — quoted fields with embedded commas, quotes (escaped as ""), and line breaks parse correctly per RFC 4180.
What if my CSV uses semicolons instead of commas?
Excel in some European locales (Germany, France) saves with semicolons. Replace semicolons with commas before pasting, or open in Excel and re-export with comma delimiter.
Are numbers converted to numeric JSON?
By default values are strings. The tool may auto-detect pure-numeric columns and convert. For mixed columns (some rows have IDs like "001"), keeping as strings prevents leading-zero loss.
Will my Excel file work?
Excel .xlsx is binary, not CSV. First save in Excel as CSV (UTF-8) — File → Save As → CSV UTF-8 (Comma delimited). Then paste or upload.
How big can the CSV be?
Limited by browser memory — files up to ~50 MB process smoothly. For multi-GB CSV, use command-line tools like csvkit or stream parsers (papaparse in Node.js).
Is my data sent to a server?
No — all processing runs in your browser. Safe for confidential customer data, financial records, or sensitive datasets.
⚠️ Reference Only
Output is generated based on your input and is provided for reference. Results may vary depending on your specific use case, edge cases, or environment-specific behavior. We do not guarantee accuracy of conversions, validations, or computed values.
Always verify critical outputs against official documentation or production environments. We are not responsible for any decisions or losses based on these tool results.