RevealTheme logo

Konverter JSON ke CSV

Konversikan array JSON berisi objek ke format CSV. Sempurna untuk mengekspor data API ke spreadsheet.

Cara menggunakan alat ini

  1. 1

    Paste or type a JSON array of objects into the text box. The array must be non-empty (for example: [{"name":"A","value":1}]).

  2. 2

    Click the Convert button to generate the CSV.

  3. 3

    Read the CSV in the output panel below the button, with the header row first followed by one row per object.

  4. 4

    Select the output text and copy it into a spreadsheet, a .csv file, or wherever you need it.

Apa itu Konverter JSON ke CSV?

JSON adalah format universal API; CSV adalah format universal spreadsheet. Mengonversi keduanya adalah tugas yang umum: mengekspor analitik ke Excel, mengimpor data CSV ke aplikasi JavaScript, dll. Alat ini menangani dengan baik array berisi objek datar; struktur yang bersarang dalam mungkin memerlukan praproses.

Kasus penggunaan umum

  • Turning a small JSON response from an API into a CSV you can paste straight into Excel or Google Sheets.

  • Quickly eyeballing tabular API data as rows and columns instead of nested braces.

  • Preparing a CSV for a bulk-import feature that expects flat columns, when your source data is already a uniform JSON array.

  • Converting a JSON fixture or seed file into CSV for a quick import into a database GUI.

  • Generating a CSV snippet for documentation or a bug report without installing jq or writing a script.

  • Sanity-checking that a JSON array has consistent keys across records by spotting blank or missing cells in the output.

Pertanyaan yang sering diajukan

Bagaimana jika JSON saya memiliki objek bersarang?▼
Alat ini mengonversi nilai bersarang menjadi string di dalam sel CSV. Untuk struktur kompleks, ratakan terlebih dahulu dengan alat seperti jq.
Apakah menangani karakter khusus?▼
Ya: koma dan tanda kutip dalam nilai di-escape dengan benar sesuai RFC 4180.

Alat terkait