RevealTheme logo

Convertisseur JSON en CSV

Convertissez un tableau JSON d'objets au format CSV. Parfait pour exporter des données d'API vers des feuilles de calcul.

Comment utiliser cet outil

  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.

Qu'est-ce que le convertisseur JSON en CSV ?

Le JSON est le format universel des API ; le CSV est le format universel des feuilles de calcul. Convertir de l'un à l'autre est une tâche courante : exporter des analyses vers Excel, importer des données CSV dans des applications JavaScript, etc. Cet outil gère bien les tableaux d'objets plats ; les structures profondément imbriquées peuvent nécessiter un prétraitement.

Cas d'usage courants

  • 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.

Questions fréquentes

Que se passe-t-il si mon JSON contient des objets imbriqués ?
Cet outil convertit les valeurs imbriquées en chaînes au sein de la cellule CSV. Pour les structures complexes, aplatissez-les d'abord avec un outil comme jq.
Gère-t-il les caractères spéciaux ?
Oui : les virgules et les guillemets présents dans les valeurs sont échappés correctement conformément à la RFC 4180.

Outils connexes