PandaigdiganLibreng gamitin

Converter ng Excel papuntang JSON (XLSX papuntang JSON)

I-convert ang isang Excel sheet sa JSON array ng mga object gamit ang unang hilera bilang mga key, o sa array ng mga hilera, handa para sa isang API o website.

Nananatili sa tab na ito ang iyong input. Hindi namin natatanggap ang iyong mga file, na-paste na teksto o value ng kalkulasyon.

Input

Tip: pindutin ang Ctrl + Enter para patakbuhin

Ang iyong resulta

Lalabas dito ang iyong resulta.

Sa ngayon, nasa Ingles lamang ang detalyadong tulong sa ibaba.

Tungkol sa tool na ito

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.

Paano ito gamitin

  1. Choose the .xlsx file and enter the sheet number.
  2. Choose “objects” to use the header row as keys, or “arrays” for raw rows.
  3. Run it and copy or download the JSON.

Paano gumagana ang kalkulasyon

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₂, … }

Halimbawa

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.

Halimbawang input at resulta

Pumili ng file at pindutin ang Patakbuhin. Direktang mada-download mula sa iyong browser ang na-convert na file.

Mga limitasyon

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

Huling na-update:

Mga madalas itanong

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.

Pag-aayos ng problema

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.

Privacy & Libreng gamitin

Sine-save ba ang aking input?

Nananatili sa tab na ito ang iyong input. Hindi namin natatanggap ang iyong mga file, na-paste na teksto o value ng kalkulasyon.

Libre ba ang tool na ito?

Oo. Walang kailangang signup o bayad.

Pinoproseso sa iyong browser

Mga susunod na hakbang