← Về trang chủ

JSON ↔ CSV Converter — Free Online + Custom Delimiter

Chuyển đổi 2 chiều JSON ↔ CSV với 4 delimiter (comma, semicolon, tab, pipe). Hỗ trợ nested object, array, dynamic typing (số tự động cast). Dùng papaparse — npm package chuẩn cho CSV.

JSON→CSVCSV→JSON4 delimitersDynamic typing

Vì sao dùng tool này

🔄
2 chiều realtime

JSON array → CSV table cho Excel/Sheets, hoặc CSV export → JSON cho API/DB import.

🎯
4 delimiter support

Comma (CSV chuẩn), Semicolon (Excel EU), Tab (TSV), Pipe (legacy log). Auto-detect khi parse.

🔒
Privacy-first

CSV / JSON data có thể chứa thông tin khách hàng nhạy cảm. 100% xử lý trong browser, không upload.

Cách sử dụng

  1. 1Chọn chiều: JSON → CSV hoặc CSV → JSON.
  2. 2Chọn delimiter (mặc định comma).
  3. 3Paste data → bấm Convert.
  4. 4Copy output 1-click.

JSON ↔ CSV — Khi nào dùng?

CSV (comma-separated values) vẫn là format trao đổi data phổ biến nhất giữa hệ thống business: Excel/Sheets export, database COPY, BI tool import, accounting software, payroll. JSON là format chuẩn cho web API / NoSQL / log structured. Convert giữa 2 là task thường xuyên cho data engineer / backend.

Tool dùng papaparse — npm package 12K+ stars, được dùng làm nền tảng cho countless data tools. Hỗ trợ: header row, dynamic type detection (số tự cast Number, true/false thành Boolean), quoted strings với embedded delimiter, escape character. Streaming mode để file lớn — nhưng tool web giới hạn 1 paste = 1 convert (in-memory).

  • JSON ↔ CSV bidirectional
  • Comma / Semicolon / Tab / Pipe delimiter
  • Header row auto-detect
  • Dynamic type cast
  • Quoted strings + escape
  • 100% client-side

Câu hỏi thường gặp

Nested object trong JSON convert sang CSV thế nào?

Nested object/array sẽ stringify thành JSON string trong cell. Flat structure (array of objects với primitive values) là best fit.

CSV có quoted field chứa comma được không?

Có. Tool parse đúng quoted strings: '"Smith, John"' giữ nguyên trong 1 field.

Export sang Excel direct được không?

Phase 1 chỉ output CSV text. Excel .xlsx cần lib xlsx (~1MB), defer Phase 2. Hiện copy CSV vào Excel paste bình thường được.