Gratis å bruke, uten konto

JSON til Excel

Gjør om et JSON-array, eller et array inne i et objekt, til en Excel-arbeidsbok. Forhåndsvis utflatede nestede felt, behold tekst-ID-er som 001, og last ned XLSX-filen lokalt. Ingenting lastes opp.

Lim inn en matrise, et objekt eller et objekt med matriser på øverste nivå. Maksimum 2 MB.

Felter i nestede objekter bruker kolonnenavn med punktum. Matriser i en post beholdes som JSON-tekst.

Alt kjører her i nettleseren. Ingen opplasting. Strenger som ligner formler, lagres som ren tekst.

Hvordan gjør jeg JSON om til Excel?

Lim inn gyldig JSON og velg «Forhåndsvis». Velg en navngitt matrise på øverste nivå hvis JSON-en inneholder flere, kontroller kolonnene og last ned XLSX-filen. Nestede objekter blir kolonnenavn med punktum.

Veiledning

Slik bruker du JSON til Excel

JSON to Excel turns pasted JSON text into a one-sheet XLSX file. It works best with a list of records, such as customers or orders. You can also pick one named list inside a larger object. Nested fields become extra columns with dotted names. Text such as 001 stays text. Everything happens in your browser, so the data is not uploaded. It is a converter, not a spreadsheet editor, and it makes one worksheet only.

Slik gjør du

  1. Paste your JSON into the box, or press Load example to see a small sample. The text can be up to 2 MB.
  2. Press Preview JSON. If the JSON is not valid, a message tells you to check commas, quotes and brackets.
  3. Open the Rows to export list and choose a top-level list, or keep the root object as one row.
  4. Look at the preview table. It shows up to 25 rows and 12 columns, but the download keeps all accepted rows and columns.
  5. Press Download Excel file. The file is named json-data.xlsx and the sheet is called JSON data.

Eksempler

The built-in example

Du skriver inn
JSON
{"records":[{"id":"001","name":"Ada","profile":{"city":"Oslo"},"amount":12.5},{"id":"002","name":"Lin","profile":{"city":"Lima"},"amount":9},{"id":"=1+1","name":"Text stays text","profile":{"city":"Tokyo"},"amount":0}]}
Rader
records
Du får
Kolonner
id; name; profile.city; amount
Rader
001; Ada; Oslo; 12.5; 002; Lin; Lima; 9; =1+1; Text stays text; Tokyo; 0

The nested city field becomes the column profile.city. The ids 001 and 002 stay as text, and the text =1+1 is saved as plain text, not as a formula.

Kjørt med verktøyets egen kode.

Records with different fields

Du skriver inn
JSON
[{"a":1,"b":{"c":2,"d":{"e":3}}},{"a":4,"x":[1,2]}]
Du får
Kolonner
a; b.c; b.d.e; x
Rader
1; 2; 3; ; 4; ; ; [1,2]

Columns are the union of all keys, in the order first seen. A record that lacks a key gets an empty cell. A list inside a record is kept as the text [1,2] and is not split into rows.

Kjørt med verktøyets egen kode.

Choosing one list from an object

Du skriver inn
JSON
{"users":[{"id":1}],"orders":[{"total":9},{"total":4}],"version":1}
Rader
orders
Du får
Kolonner
total
Rader
9; 4
Valg
Root object (one row); users (1); orders (2)

Each top-level list is offered as a choice. Picking orders gives two rows. Picking the root object instead gives one row where users and orders appear as JSON text.

Kjørt med verktøyets egen kode.

Booleans, null and very large numbers

Du skriver inn
JSON
[{"count":3,"ok":true,"note":null,"big":1e21}]
Du får
Celler
Antall: number 3; OK: text true; Merknad: text null; Stor: text 1e+21

In the file, 3 is a real number, but true, null and 1e+21 are written as text cells. If you need real Boolean or very large number cells, fix them in your spreadsheet app.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Turn an API response into a table that a teammate can open in Excel.
  • Check the shape of a JSON export by looking at it as columns and rows.
  • Hand a list of records from a web app to someone who does not use code.
  • Keep ids with leading zeros, such as 001, from being turned into plain numbers.
  • Make a quick one-sheet copy of a small config or log list for review.

Begrensninger

  • Limits: 2 MB of input, 50,000 values, 32 levels of nesting, 20,000 rows, 200 columns, 200,000 cells and 32,000 characters in one cell.
  • The finished workbook cannot be larger than 12 MiB, and it has one worksheet only.
  • Named lists must sit at the top level of the object. A list nested deeper is kept as JSON text in a cell.
  • Booleans, null and numbers written in exponent form (like 1e+21) are saved as text cells, not as typed cells.
  • The tool does not read files or URLs. You paste the text, and it has no formulas, styles or merged cells.

Tips

  • If the preview shows one wide row, you probably have an object. Pick the list you want in Rows to export.
  • Keep dotted key names in mind. A key that contains a dot is shown with a backslash, like a\.b.
  • Check the first column of the preview for ids before you download, since text and numbers look alike in the table.
  • Split very large data into several smaller JSON pieces to stay under the row and cell limits.

Kilder

Vanlige spørsmål

How do I convert JSON to Excel?

Paste valid JSON, press Preview JSON, choose which list should become the rows if there is more than one, and press Download Excel file. You get an XLSX file with one sheet. The conversion runs in your browser.

Which JSON shapes does it accept?

A top-level list of records, an object with named lists inside, a single object (one row) or a lone value such as 42 (one row with a Value column). An empty list shows an error because there is nothing to export.

How are nested objects handled?

Each nested key becomes a column named by its path, such as profile.city. Lists inside a record are not expanded. They stay as compact JSON text in one cell, so the row count never changes.

Will ids like 001 lose their leading zeros?

No. JSON strings are written as text cells, so 001 stays 001. A JSON number such as 12.5 is written as a number. A string that starts with an equals sign is stored as text and is not run as a formula.

Is my JSON uploaded anywhere?

No. The text is parsed and the workbook is built in your browser tab. Nothing is sent to a server by this tool. Close the tab to clear it.

Why did the preview show only some rows and columns?

The preview table shows at most 25 rows and 12 columns to keep the page light. The downloaded file still contains every row and column the tool accepted, up to the limits.

What does the error about limits mean?

The tool stops when the JSON is over 2 MB, nests deeper than 32 levels, has more than 20,000 rows or 200 columns, or would give more than 200,000 cells. Split the data or remove fields you do not need.

How is this different from JSON to CSV?

CSV is plain text that any program can read, while this tool makes an XLSX workbook. It also keeps text cells explicit, so ids and formula-like text are not changed when Excel opens the file.

Can I trust the spreadsheet for important work?

Check the preview and open the file before you rely on it. Booleans, null and exponent numbers are saved as text, and duplicate keys in the JSON follow the usual JSON.parse rule where the last one wins.

Hvordan gjør jeg JSON om til Excel?

Lim inn gyldig JSON og velg «Forhåndsvis». Velg en navngitt matrise på øverste nivå hvis JSON-en inneholder flere, kontroller kolonnene og last ned XLSX-filen. Nestede objekter blir kolonnenavn med punktum.

Lastes JSON-en min opp, eller kjøres formler?

Nei. JSON-en analyseres i denne nettleseren, og arbeidsboken opprettes på enheten din. Strenger som ligner formler, skrives som tekst og kjøres ikke. Størrelsen på inndata og arbeidsboken er begrenset for å beskytte nettleserminnet.

Hvordan konverterer jeg en JSON-matrise til Excel?

Lim inn JSON-matrisen, forhåndsvis den og last ned XLSX-arbeidsboken. For et objekt som inneholder matriser velger du hvilken matrise på øverste nivå som skal bli regnearkrader.

Kan felter i nestet JSON bli regnearkkolonner?

Ja. Nestede objekter flates ut til kolonnenavn med punktum, som profile.city. Matriser i en post beholdes som kompakt JSON-tekst, slik at strukturen ikke utvides til ekstra rader.

Mister ID-er som 001 de innledende nullene?

Nei. JSON-strenger skrives som regnearktekst, også ID-er som ser numeriske ut, for eksempel 001. JSON-tall forblir tall. Strenger som ligner formler, lagres som tekst og kjøres ikke.