What goes on an invoice made with this generator?
This generator produces a PDF invoice with a heading, an invoice number, a date, a "Bill to" address, a table of line items (description, quantity, unit price, line total) and a grand total. You fill in four inputs, click Generate, and download invoice.pdf. It's built in your browser with pdf-lib, so nothing you type is uploaded.
It is deliberately minimal. Read the section on legal requirements before you use it for anything a tax authority might look at.
The inputs
| Field | What to enter | If left blank |
|---|---|---|
| Bill to | Client name and address, one or more lines | Nothing is generated |
| Line items | One per line: description,quantity,unit price |
Error: enter at least one line item |
| Invoice number | Any text, such as INV-2026-014 |
1 |
| Date | Any text, such as 27 October 2026 or 2026-10-27 |
Today's date on your device, as YYYY-MM-DD |
The date isn't checked or reformatted; whatever you type is printed after "Date:". A blank date uses your computer's own calendar date, so it matches the day you see on your clock whatever your timezone.
A worked example
With Bill to set to three lines (Northwind Traders, 4 Quay St, Leeds LS1 4AB), invoice number INV-2026-014, date 27 October 2026, and these items:
Website design,1,1200
Hosting (12 months),12,15.50
Domain renewal,1,12.99
VAT 20%,1,279.80
the PDF lists:
| Description | Qty | Unit Price | Total |
|---|---|---|---|
| Website design | 1 | 1200.00 | 1200.00 |
| Hosting (12 months) | 12 | 15.50 | 186.00 |
| Domain renewal | 1 | 12.99 | 12.99 |
| VAT 20% | 1 | 279.80 | 279.80 |
followed by Total: 1678.79. The address prints on three lines under "Bill to:", above the table. The VAT line is 20% of the 1,398.99 subtotal, rounded to the cent; the GST/VAT calculator will do that arithmetic for any rate.
How line items are read
Blank lines are ignored. On every other line, the last two comma-separated values are the quantity and unit price, and everything before them is the description:
- Commas in descriptions are fine.
Consulting, March,10,95prints the description "Consulting, March" with a line total of 950.00. - Currency symbols are ignored.
Fee,1,$500andFee,1,500 €both read the price as 500. The PDF itself prints no currency symbol. - No thousands separators. A comma always separates fields, so
Design,1,1,200would be read as quantity 1 at 200. Write1200. - Discounts work as negative prices.
Loyalty discount 10%,1,-45prints as -45.00 and reduces the total. Use the discount calculator if you need the figure. - Fractional quantities work.
Half day,0.5,600gives 300.00. - Long descriptions wrap onto extra lines within the Description column instead of being cut off.
A line that can't be read, such as Widget,five,10 or a line with only two values, stops the invoice with an error naming it, for example: Line 2 ("not a line") isn't in the form description,quantity,unit price. Nothing is dropped silently.
Each line total is rounded to the cent, and the grand total is the sum of those rounded figures, so the printed numbers always add up. Unit prices with more than two decimals are printed as entered: Item,3,0.335 shows 0.335 and a line total of 1.01.
Layout limits
- US Letter pages. About 36 single-line items fit on the first page below a one-line address; further items continue on new pages, each starting with the column headings again, and the total follows the last item.
- No currency symbol. 1200 prints as 1200.00, so mention the currency in a description if it matters.
- Western European characters only. The built-in Helvetica font uses WinAnsi encoding, so €, £, $ and accented letters work in text, but a rupee sign, Cyrillic, Arabic, CJK or emoji in the address, invoice number, date or a description stops with a message naming the character, such as "₹" (U+20B9). In prices, currency symbols are simply ignored.
Is this invoice legally valid?
That depends on where you trade and whether you're registered for sales tax or VAT, and this generator only covers part of what's usually required. For example, the UK government's guidance on what an invoice must include lists items this tool has no field for:
| Commonly required item | Covered here? |
|---|---|
| Unique invoice number | Yes |
| Your business name, address and contact details | No |
| Customer's name and address | Yes, via Bill to |
| Description of goods or services | Yes |
| Invoice date | Yes |
| Supply date, if different | No |
| VAT or tax amount | Only as a manual line item |
| Total amount owed | Yes |
There's also no due date, payment terms or bank details. Use the PDF for informal bills, quotes or reimbursement requests between people who know each other, and use accounting software for formal invoicing. If you need to combine it with receipts or a timesheet, attach them with the PDF merger.
This page is general information about the tool, not tax, accounting or legal advice. Check your local rules or ask an accountant.
Last updated