Conversor de Excel para JSON (XLSX para JSON)
Converta uma planilha do Excel em um array JSON de objetos usando a primeira linha como chaves, ou em um array de linhas, pronto para uma API ou um site.
Entrada
Dica: pressione Ctrl + Enter para executar
Configurações salvas
Por enquanto, a ajuda detalhada abaixo está disponível apenas em inglês.
Sobre esta ferramenta
Developers often receive data as a spreadsheet and need it as JSON for an API, a configuration file, a static website or a test fixture. This converter reads an .xlsx sheet in your browser and gives you either an array of objects, using the first row as property names, or a plain array of rows.
Numbers stay numbers, empty cells become empty strings, rows that are completely empty are skipped, and date-formatted cells are written as readable dates.
Como usar
- Choose the .xlsx file and enter the sheet number.
- Choose “objects” to use the header row as keys, or “arrays” for raw rows.
- Run it and copy or download the JSON.
Como o cálculo funciona
The sheet is read from the workbook XML; with “objects” each subsequent row becomes {header: value}. Values keep their stored types and date-formatted numbers are converted to dates. Blank headers become column1, column2…; repeated headers get a _2, _3 suffix.
row n → { header₁: cell₁, header₂: cell₂, … }Exemplo prático
A web developer receives a sheet of 40 store locations with columns name, city, lat and lng. Converting with “objects” gives [{"name": "Downtown", "city": "Calgary", "lat": 51.045, "lng": -114.06}, …], ready to load into a map script.
Exemplo de entrada e resultado
Escolha um arquivo e clique em Executar. O arquivo convertido é baixado direto pelo seu navegador.
Limitações
- One sheet at a time; .xls is not supported.
- Merged cells and formatting are ignored.
- Large sheets produce large JSON that may be slow to display.
Última atualização:
Perguntas frequentes
What if two headers are the same?
The second one gets a suffix, such as price_2, so no data is overwritten.
Are empty cells included?
Yes, as empty strings, so every object has the same keys; completely empty rows are skipped.
Can I get nested objects?
Not directly; use dotted headers and restructure in code, or use JSON to Excel for the reverse.
Solução de problemas
Keys are column1, column2….
The first row must contain headers when using objects.
Dates look like numbers.
The cell may be formatted as a number in Excel; apply a date format and save.
Leading zeros were lost.
They were stored as numbers in Excel; format the column as text before saving.
Privacidade & Uso gratuito
Meus dados são armazenados?
Seus dados ficam nesta aba. Não recebemos seus arquivos, textos colados nem valores de cálculo.
Esta ferramenta é gratuita?
Sim. Não é preciso cadastro nem pagamento.
Veja também
Próximos passos úteis
Conversor de JPG para PNG
Converta imagens JPG para PNG no seu navegador, até 30 de cada vez. O PNG mantém cada pixel e suporta transparência, ideal para capturas de tela, logotipos e gráficos.
Conversores de arquivosConversor de PNG para JPG
Converta imagens PNG para JPG no seu navegador, até 30 de cada vez. Arquivos JPG são leves e abrem em qualquer lugar, ideais para fotos e envio em formulários; áreas transparentes ficam brancas.
Conversores de arquivosConversor de WebP para JPG
Converta imagens WebP para JPG no seu navegador, até 30 de cada vez. Arquivos JPG são leves e abrem em qualquer lugar, ideais para fotos e envio em formulários; áreas transparentes ficam brancas.
Conversores de arquivos