JSON to Excel (CSV/XLSX)

JSON array of objects to CSV or XLSX file. Handy for reports and corporate workflows. Runs in the browser.

{{ jsonToExcel.message }}

Overview

Excel is one of those tools that the technical world sometimes underestimates — but that the real world uses intensely. Created by Microsoft in 1985, it became the universal language of business: finance teams model cash flows in it, HR tracks payroll, operations manage inventory and logistics, sales monitor pipelines and targets. Knowing Excel well — advanced functions, pivot tables, Power Query — still opens strong career opportunities for those who master it, especially in companies that have not yet migrated to more modern BI solutions.

The intersection of Excel and REST APIs is a very common real-world scenario: a modern system exposes data via JSON, but the business team needs that data in a spreadsheet for analysis, presentations, or reports. Bridging this manually is repetitive. There are two relevant output formats: CSV (Comma-Separated Values), a plain text format that virtually any spreadsheet tool opens directly, including Excel, Google Sheets, and LibreOffice; and XLSX, Excel's binary format that preserves formatting and is expected in many corporate workflows.

Technically, converting JSON to a spreadsheet requires the input to be an array of objects with consistent keys — all objects need the same keys so spreadsheet columns make sense. Objects with nested keys need flattening first: a field like `address.city` would need to become the flat key `address_city` for the column to appear correctly. If you receive JSON from an API with deep nesting, the flattening step can be done with a simple recursive function before feeding the tool.

This tool converts the JSON array you paste directly to CSV (immediate download) or XLSX (library loaded on demand). All processing happens in the browser — no data sent to the server. For simpler cases — reports, dashboard exports, form feedback — the result is ready to open in Excel. For deeper analysis, the exported CSV can be imported by Excel's Power Query or BigQuery, opening much more advanced transformation possibilities.

Technical deep dive

Common questions summarized

  • What is this tool for?: It runs fully in your browser: useful to validate, format, or convert data in everyday development.
  • Are my inputs sent to a server?: Processing happens locally with JavaScript. We do not store what you paste into the text areas.
  • Can I use this for real production data?: Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.

Sample payload to try

  • See also the larger "Code Snippets" sample; paste this excerpt to try locally: Input — [{"produto":"A","qtd":10},{"produto":"B","qtd":3}]

Code Snippets

Code example
[{"produto":"A","qtd":10},{"produto":"B","qtd":3}]

Input

[{"produto":"A","qtd":10},{"produto":"B","qtd":3}]

FAQ

What is this tool for?

It runs fully in your browser: useful to validate, format, or convert data in everyday development.

Are my inputs sent to a server?

Processing happens locally with JavaScript. We do not store what you paste into the text areas.

Can I use this for real production data?

Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.