CSV sang JSON
Chuyển đổi file CSV sang JSON và mảng JSON sang định dạng CSV ngay lập tức
Runs entirely in your browser. Quoted CSV fields and commas inside quotes are supported. For JSON → CSV, use a JSON array of objects; values are stringified.
CSV ↔ JSON Converter
Convert CSV to JSON and JSON arrays back to CSV. The converter uses the first row as column headers and creates one JSON object per row. Handles quoted fields, commas inside values, and multiple separator styles.
FAQ
How do I convert a CSV file to JSON?
Paste or upload your CSV. The first row becomes the JSON keys. Each subsequent row becomes an object in the output array.
What if my CSV has semicolons instead of commas?
Select the semicolon separator option before converting. European CSV exports often use semicolons because commas appear in number formatting (1.234,56).
What is the difference between CSV and JSON?
CSV (Comma-Separated Values) is a flat table format — rows and columns, like a spreadsheet. JSON (JavaScript Object Notation) supports nested structures, arrays within objects, and mixed types.
Tiếp tục khám phá
Công cụ Công cụ Developer khác bạn có thể thích…
Định dạng JSON
Định dạng, kiểm tra và nén JSON với tô sáng cú pháp và phát hiện lỗi
Mã hóa/Giải mã Base64
Mã hóa văn bản hoặc file sang Base64 và giải mã chuỗi Base64 thành văn bản
Mã hóa/Giải mã URL
Mã hóa và giải mã thành phần URL và tham số query string
Tạo UUID
Tạo UUID ngẫu nhiên (v1, v4) hoặc tạo hàng loạt nhiều UUID cùng lúc
Tạo Hash
Tạo hash MD5, SHA-1, SHA-256, SHA-512 từ văn bản hoặc file
Kiểm tra Regex
Kiểm tra biểu thức chính quy với tô sáng khớp thời gian thực và trích xuất nhóm
Giải mã JWT
Giải mã và kiểm tra JSON Web Token — xem header, payload và xác minh chữ ký
Định dạng HTML
Định dạng và làm đẹp mã HTML với thụt lề đúng và tô sáng cú pháp