Fill an Excel Template (.xlsx) with JSON Data Online

Fill an Excel .xlsx template with {placeholders} and repeated rows from JSON, keeping styles, formulas, merges and print setup; batch to a ZIP.

Free tool: 20 requests per minute.

Result

Press “Run” to see the result.

Upload your own .xlsx (the form your accountant or a government agency requires) with placeholders in cells and send the data as JSON. {so_hd} or {{so_hd}} inserts a value (dotted paths like {khach.ten} work, in any sheet); a cell that holds only a placeholder gets a real number, boolean or date (when the cell has a date format), so number formats such as #,##0 ₫ still apply. Filters: {tong|words} (amount in Vietnamese words), |money, |date (dd/mm/yyyy), |date_vi, |excel_date, |upper, |lower, |join, |default:….

A row that refers to an array ({items.ten}, {items.sl}, with {$index} for the line number) is repeated for each element. The engine edits the workbook XML directly, so cell styles, column widths, other sheets, images and print settings are untouched, and rows below move down: formulas are shifted (=SUM(E6:E6) becomes =SUM(E6:E8), =C6*D6 follows each copy), merged cells, conditional formatting, data validation, print areas and references from other sheets are updated, and Excel recalculates on open.

Send rows (an array) instead of data to produce one workbook per object in a ZIP, named with filename such as BG_{so}. action=tags lists the placeholders. Old .xls files, macros (.xlsm), pivot tables and Excel tables (ListObjects) over repeated rows are not adjusted. Files are processed in memory and not stored.

Use this in your code

curl -X POST "https://apibox.io.vn/v1/xlsx-template" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "0=@./my-file"

API documentation → Get a free API key

FAQ

Do my formulas still work after rows are inserted?

Yes. References below the repeated rows are shifted, ranges that cover the template row grow with it, and the workbook is set to recalculate when opened.

Can a placeholder be part of a longer text?

Yes: "Khách hàng: {khach.ten}" becomes a text cell. A cell containing only a placeholder keeps the value type (number, date, boolean).

What if an array is empty?

The template row is kept once with blank cells, so totals and formulas over it stay valid.