Vai al contenuto principale
CuteJSON
↑↓ Naviga Enter Seleziona Esc Chiudi

JSON to CSV Converter

Turn an array of objects into a CSV file, or read a CSV export back into JSON, without either document leaving your browser.

Torna a tutti gli strumenti

Scorciatoie da tastiera

Funzionano dove l'azione corrispondente esiste in questa pagina.

Apri la tavolozza comandi
Ctrl/Cmd + K
Esegui l'azione principale
Ctrl/Cmd + Enter
Formatta
Ctrl/Cmd + Shift + F
Minifica
Ctrl/Cmd + Shift + M
Copia output
Ctrl/Cmd + Shift + C
Apri file
Ctrl/Cmd + Shift + O
Scarica output
Ctrl/Cmd + S
Chiudi questa finestra
Esc
Apri questa finestra
F1 / ?

Dati locali

Tutto qui sotto e memorizzato solo in questo browser.

Bozze non salvate
Strumenti con opzioni ricordate

File aperti di recente

    Nessun file aperto ancora.

    Condividi via link

    Il contenuto e impacchettato nella parte dopo il #.

    Condivide la prima input in questa pagina.

    Niente da condividere ancora.

    JSON

    Carica da un URL

    Recupera l'URL dal tuo browser.

    CSV

    Il risultato appare qui.

    Funziona interamente nel tuo browser.

    Su questo strumento

    CSV has no specification that everyone follows, so this one follows RFC 4180 and says where it departs from it. Records come out separated by a line feed rather than the carriage return and line feed pair the RFC asks for, because a browser text box rewrites that pair the moment the value is read back; input is read with either. A field is quoted only when it holds the delimiter, a quote or a line break, unless always-quote is turned on, which quotes every field instead. Going to CSV needs an array of objects, the only JSON shape that is a table, and a lone object is taken as a table of one row. A nested object or array has no CSV form at all, so its JSON text is written into the cell. Null becomes an empty field by default, which does mean a null and an empty string come out identical; it can instead be written as the literal text null or a custom marker you type in. Coming back from CSV, every field stays a string, because guessing types is what turns a postcode of 01234 into 1234 and a long identifier into a rounded number. The delimiter can be comma, semicolon, tab or pipe, chosen by hand or left on Auto, which guesses it from the first line and falls back to a comma if none of those show up. A UTF-8 byte order mark can be added to the CSV output for Excel, which otherwise misreads a UTF-8 file encoding; most other tools ignore it, so it stays off unless turned on. Formula injection protection is also off by default, because it changes the cell raw content: turned on, a value starting with an equals, plus, minus or at sign gets a leading quote so Excel or Google Sheets reads it as text instead of a formula.

    Come usare

    1. Choose a direction, then paste your document into the left pane or load the sample.
    2. Set the delimiter, and say whether the first row holds the column names.
    3. Press Convert, then copy the result or download it as a file.