What the Tool Does
An invoice is a request for payment that lists what was supplied, what it cost, what tax applies and what the buyer owes. This generator handles the arithmetic and the layout. You type the parties, the dates and the lines, and the preview recalculates every figure as you go.
It is a simple layout helper. It is not a legal or tax document. It does not know which invoice wording, numbering rules or tax details apply to your business or your country, and it does not check them. Its job is to make the numbers consistent and the page easy to print. Before you send anything to a customer, confirm the requirements that apply to you with your tax authority or an accountant.
Nothing is stored or uploaded. The form lives only in the open page, so keep a copy of anything you issue.
Using Each Control
The form has five groups. Work through them from top to bottom, then check the preview.
Seller. The seller name and address appear under "From" on the invoice. Put the business name on the first line of the address box if you want it to stand out, and separate address lines with a line break.
Buyer. The buyer name and address appear under "Bill to". Enter the name the customer should see on their records.
Invoice details. The invoice number is plain text, so use whatever scheme you already follow. The issue date defaults to today and the due date to 30 days later. Set the currency symbol to match your prices. It is placed in front of every amount, so "$" gives $1,078.75 and "EUR " gives EUR 1,078.75.
Line items. Each row has a description, a quantity, a unit price and a tax percent. Use the add button for a new row and the bin icon to remove one. A row whose description, quantity and price are all empty is ignored. Each line shows its own tax, so a mix of tax rates on one invoice is fine.
Discount and notes. The overall discount can be a percentage of the subtotal or a fixed amount. A fixed discount larger than the subtotal is capped at the subtotal, and a percentage above 100 is capped at 100. The notes box holds payment terms or thanks, and it prints under the totals.
Warnings. Amber messages appear above the buttons when a figure is invalid or inconsistent, such as a negative quantity, a tax percent outside 0 to 100, or a due date before the issue date. Invalid numbers count as zero until you fix them.
How Totals Work
The calculation runs in a fixed order, and each step rounds to cents. That keeps the printed figures adding up exactly, which matters more on an invoice than a tiny difference in precision.
Line amount. Quantity multiplied by unit price, rounded to cents. The subtotal is the sum of these amounts.
Discount. A percentage discount is the subtotal multiplied by the percentage. A fixed discount is the amount you enter, capped at the subtotal. Both are rounded to cents.
Line tax. The discount is shared across lines in proportion to their amounts. Each line's taxable base is its amount minus its share of the discount. The line tax is that base multiplied by the line's tax percent, rounded to cents.
Grand total. The subtotal minus the discount plus the sum of the line taxes. Because the discount lowers each line's taxable base, the tax total falls when a discount is applied.
This sharing rule is a convention, not a universal one. Some tax rules apply tax before a discount, others after it, and some treat discounts as separate items. If your rules differ, adjust the lines or the figures by hand before you issue the invoice.
Worked Example
The example uses the three sample lines that load when the page opens. The figures below come from running the tool's logic on those lines, with the currency set to "$".
| Line | Quantity x unit price | Line amount | Tax % | Line tax, no discount |
|---|---|---|---|---|
| Website design, homepage and contact page | 1 x $800.00 | $800.00 | 10% | $80.00 |
| Monthly hosting, three months | 3 x $25.00 | $75.00 | 5% | $3.75 |
| Logo file revisions | 2 x $60.00 | $120.00 | 0% | $0.00 |
With no overall discount, the subtotal is $995.00, the tax is $83.75 and the grand total is $1,078.75.
Adding a 10 percent overall discount. The discount is $99.50, which is 10 percent of the $995.00 subtotal. Because the discount is exactly 10 percent of every line, each line's taxable base falls by 10 percent too.
| Line | Share of discount | Taxable base | Line tax |
|---|---|---|---|
| Website design | $80.00 | $720.00 | $72.00 |
| Monthly hosting | $7.50 | $67.50 | $3.38 |
| Logo file revisions | $12.00 | $108.00 | $0.00 |
The hosting line's tax is $3.375 before rounding, which becomes $3.38. The line taxes add to $75.38, so the summary reads: subtotal $995.00, discount minus $99.50, tax $75.38, grand total $970.88. Note that the tax falls from $83.75 to $75.38 because of the discount.
Trying a fixed discount. Changing the discount to a fixed $50.00 gives a discount share of about 5.03 percent. The tax becomes $79.54 and the grand total $1,024.54. A fixed discount of $5,000 would be capped at $995.00, leaving a total of $0.00, and a warning would appear.
Printing and PDF
The print button opens the browser's print dialog with only the invoice sheet selected. The form, the page menus and the advertising are hidden in the print layout, and the sheet fills the page width.
To save a file, choose a PDF printer in that dialog, usually labelled save as PDF. The file is created on your own device. This page does not upload it, and it does not keep a copy.
A few habits make printed invoices easier to read. Keep descriptions short but specific, enter quantities in the unit the buyer expects, and keep the notes to payment terms and a contact line. Check the preview at a phone width too, because the table scrolls sideways there rather than squashing the figures.
A common mistake is printing a draft that still contains sample lines. Replace the sample parties, lines and dates before printing, and check that the invoice number is unique.
Frequently Asked Questions
This version has no logo upload. The seller name and address fields are plain text, so put your business name at the top of the address box. If you need a logo, add it to a saved PDF afterwards in a separate editor.
Each line amount and each line tax is rounded to cents before it is added, so the printed figures add up exactly. A total can differ by a cent from a figure worked out on a calculator that rounds only at the end, and the printed invoice should follow the rounding rules that apply to you.
No. Negative quantities and prices are flagged and counted as zero. To show a credit, issue a separate document under your own rules, because this tool is not designed to produce credit notes.