Hongmu Notes

📗 Excel to JSON

Upload an xlsx or csv, and the tool will read the first worksheet, generate field names based on the first row, and convert each row into an object; you can directly copy JSON or export CSV, and the file will not leave the computer.
100% Browser local processing 0 Data upload

📗 File and output formats

0Number of data rows
0Number of columns
Waiting for uploadStatus

💡 Instructions for use

  • Supports xlsx, xls and csv; only the first worksheet is read, multiple worksheets need to be exported separately and then converted.
  • When the first line is used as a field name, duplicate names in the same column will be automatically numbered to prevent keys from being overwritten in JSON.
  • Empty cells will be output as empty strings instead of omitted, so that the order and number of fields in each row are consistent, making it easier for back-end parsing.
  • It takes several seconds to parse a large file, during which the page may become temporarily unresponsive, which is normal; it is recommended that a single table should not exceed 20,000 rows.

📗 Why convert to JSON first?

Tables are suitable for people to read, but programs are more suitable for reading structured data. After converting to JSON, the corresponding relationship between field names and values ​​is clear, and front-end rendering, interface transmission and database import can be used directly, eliminating a layer of manual organization.

JSON is for programs to read: only when the field names are clear can they be directly fed to the interface or database.

🔑 Why are field names important?

The key of JSON is the field name. Once it is repeated or contains spaces, subsequent values will be wrong. The tool will automatically add serial numbers to duplicate names and retain the original writing as much as possible so that the conversion results can be directly used in code.

Duplicate field names will cause later values to overwrite previous ones: automatic addition of serial numbers can avoid this problem.

🧮 How to judge numbers and text

The numbers in the table may be saved in text format and remain strings after conversion. If the backend expects a numeric value, it needs to be converted explicitly on import; conversely, numbers of numbered classes should remain strings to avoid leading zeros being eaten.

Please keep the number as a string: leading zeros will be lost when converted to numbers.

🔗 All keywords and tutorials

Keywords page of the tool12a

Return to tool home page

❓ FAQ

Will the file be uploaded??
No. Parsing is done locally in the browser, with no network requests.
Does it support multiple worksheets??
Only the first one is read. If you have multiple tables, please save them separately and then transfer them.
Why do numbers become strings??
The cells themselves may be in text format and require explicit conversion when importing.
How big a file can be processed?
It is recommended that the number be within 20,000 lines. If it is too large, it will occupy more memory.
Are leading zeros lost??
If you select a numeric type, it will be lost, but if you keep a string, it will not.
Can I export to other formats??
Three types of text can be output: JSON, CSV and TSV.