Random invoice generator
This tool fabricates complete invoice records with arithmetically correct totals so you can populate accounting dashboards, invoice tables, and PDF previews with realistic test data. Every figure adds up, which lets you verify that your own totalling and tax logic agrees.
How it works
Each invoice gets a unique-looking invoice number, an issue date within the past 90 days, and a due date 14 to 30 days later. Two to five line items are generated, each with a random description, a quantity, and a unit price. The subtotal is the sum of quantity × unitPrice across all lines. Tax is subtotal × (taxRate / 100), and the grand total is subtotal + tax. Every monetary value is rounded to two decimal places using standard half-up rounding so the displayed figures reconcile exactly.
Tips and examples
Set the tax rate to your market’s VAT or sales-tax percentage — for example 20 for UK VAT — and generate a batch to confirm your invoice view sums and rounds the same way. Use the JSON export to seed an accounting system and check that imported subtotals, tax, and totals match. Replace the placeholder parties with real data before issuing anything.