CSV to JSON Converter
Paste CSV (or a copy from Excel or Google Sheets) and get JSON instantly. The first row becomes the keys, and numbers and true/false are detected.
🔒 Everything you type stays in your browser. Nothing is sent to a server.
By Shah Rukh, software developer · Last updated:
How CSV is converted
With a header row, each line becomes an object whose keys come from the header: [{"name": "Ayesha", "age": 24, "city": "Lahore"}]. Without one, each line becomes an array.
The parser follows RFC 4180: fields in double quotes can contain commas, line breaks and escaped quotes (""). The separator (comma, semicolon or tab) is detected automatically, so European CSVs and pasted spreadsheet data work too.
Need the reverse? Use JSON to CSV.
Frequently asked questions
Can I paste from Excel?
Yes. Copied cells are tab-separated and are detected automatically.
Why are my numbers strings?
Tick “Detect numbers and booleans”. Leading-zero values like 007 stay as text on purpose.
Is there a row limit?
No fixed limit. Tens of thousands of rows work in a modern browser.
Related tools
QR Code Generator
Free QR codes for links, Wi-Fi, text and contacts.
Color Picker & Palette
HEX, RGB and HSL codes plus matching palettes.
Contrast Checker
Check WCAG AA/AAA colour contrast for text.
Base64 Encoder / Decoder
Encode or decode Base64 text (UTF-8 safe).
URL Encoder / Decoder
Percent-encode or decode URLs and query strings.
Binary / Hex Converter
Convert between binary, octal, decimal and hex.