CSV to JSON
Turn a CSV into JSON. Quotes and commas inside values are handled properly.
Giới thiệu CSV to JSON
Paste a CSV, or drop the file on the page, and get JSON back: one object per row, using the first row as the field names. The separator is worked out for you, whether the file uses commas, semicolons, tabs or pipes. Quoted values are read the way the standard says, so an address with a comma in it, or a note with a line break, stays in one field instead of breaking the row. Numbers and true/false can come out as real values rather than text, while something like an id of 007 or a phone number starting with a plus is left as text, where it belongs. It runs inside your browser, so nothing is uploaded and nothing is stored.
Công cụ này chạy ngay trong trình duyệt của bạn, nên tệp không bao giờ rời khỏi thiết bị.
Cách dùng CSV to JSON
- Paste your CSV, or drop the file on the page.
- Check the separator it found and the options.
- Copy the JSON or download it.
Câu hỏi
How do I convert CSV to JSON?
Paste the CSV above and the JSON appears beside it. The first row is treated as the field names unless you turn that off.
Does it handle commas inside a value?
Yes, as long as the value is quoted, which is how CSV files are written. "Patel, Asha" stays one value. Line breaks inside quotes work too.
Why is my phone number still text?
On purpose. Turning +919876543210 or an id like 007 into a number would lose the plus and the leading zeros, so only values that survive the trip unchanged become numbers.
It says the rows have different numbers of columns.
Usually the separator was guessed wrong, or a quote is unclosed somewhere. Set the separator by hand and look at the row where the count changes.
Is anything uploaded?
No. The tool runs inside your browser, so what you paste or add stays on your device.
Công cụ liên quan
- Compare Text – Put two texts side by side and see exactly which lines were added, removed or changed.
- Delimiter Tool – Turn a column of lines into one delimited line, with quotes and brackets if you want.
- Slugify – Turn a title into a clean URL slug. Accents, symbols and spaces are all handled.
- CSS Minifier – Make a CSS file smaller by removing comments and spaces, without breaking it.
- Image to Text Ratio Checker – See how much of a page is real text, how many pictures it has, and which have no alt text.
- Định dạng & kiểm tra JSON – Làm đẹp, rút gọn và kiểm tra JSON. Chỉ ra chính xác dòng và cột của mọi lỗi.
- Đếm từ & ký tự – Đếm từ, ký tự, câu và đoạn văn, kèm thời gian đọc và các từ khóa nổi bật.
- Đổi kiểu chữ hoa thường – Đổi văn bản sang CHỮ HOA, chữ thường, Viết Hoa Mỗi Từ, Viết hoa đầu câu, camelCase, snake_case và nhiều kiểu khác.