How XLSX to JSON Conversion Works
AnyTool parses the uploaded workbook in the browser with ExcelJS, reads the chosen worksheet cell by cell, and serializes the result with JSON.stringify. In records mode the header row becomes object keys (duplicate or empty headers are de-duplicated). Type preservation maps Excel numbers, booleans, and dates to native JSON values — dates as ISO 8601 — while blank cells become null.
- Parsing runs client-side via ExcelJS — the file is never uploaded
- Three output shapes: records (array of objects), 2-D array, column arrays
- Preserves numbers, booleans, and dates as typed JSON; blanks become null
- Output can be pretty-printed (2 or 4 spaces) or minified
- Large sheets convert in chunks to keep the UI responsive
