A laptop, a phone and a hand writing in a notebook on a wooden desk, banner image on the Invoice Generator page

Tools / Automate suite

Invoice Generator

Build an invoice with exact totals, then print or save it as a PDF, copy the text or download a CSV.

Type who it is from and to, add line items as description, qty and rate, and set a discount and one tax rate. The totals are added as exact decimals and rounded to cents by stated rules. Lines that cannot be read are listed, and nothing is printed or copied until every line is valid.

Open the toolWhat is insideWhat it cannot do
Screenshot of the Invoice Generator tool

What is inside

What is inside the tool.

Line items

One line per item as description | qty | rate. Qty and rate may have up to 6 decimals. Commas also work: the last two commas split qty and rate, so a description can hold commas.

Discount and tax

A discount as a percent of the subtotal or a fixed amount, and one tax percent for the invoice, applied after the discount.

Exact arithmetic

Amounts are whole-number math on exact decimals. 0.1 times 3 is 0.30, not 0.30000000000000004.

Stated rounding

Each line amount is rounded half up to cents. The discount and the tax are each rounded half up to cents. The total is the sum of those cents.

Line checks

A line with the wrong number of parts, a zero or negative qty, a rate with thousands commas or letters, or a fixed discount above the subtotal is listed as Fix. Nothing is silently priced at 0.

Output

Print or save as PDF with the browser, copy as plain text, or download a CSV with every line and the totals.

How to use it

Four steps.

Step 1

Fill in who the invoice is from and to, the number and the dates.

Step 2

Type one line item per row and set the discount and tax.

Step 3

Clear anything marked Fix and read the totals.

Step 4

Print or save as PDF, copy the text, or download the CSV.

What it cannot do

Limits.

Not tax advice

It does not know tax rules, rates by place, tax-inclusive pricing or invoice number rules. It applies the one percent you type.

One tax rate

No per-line tax rates, no several taxes, no withholding.

Currency is a label

The symbol or code is printed as typed. It has two decimals and no conversion. Currencies with other decimal places are not handled.

Number format

Totals print with commas for thousands and a dot for decimals.

No saved invoices

Nothing is stored. Copy or download what you need.

No logo, no payment links

The invoice is text and a table.

Comparison

No comparison made.

Common mistakes

Each of these produces a finding.

A rate written as 1,500

Commas are read as separators, so the line is marked Fix. Write 1500.

A missing qty or rate

The line is marked Fix instead of being priced at 0.

A discount above the subtotal

A fixed discount larger than the subtotal is marked Fix.

Tax before discount

Here tax is worked out after the discount. Check that this matches how you must charge it.

Floating-point totals

Totals that drift by a cent are avoided by exact decimal math.

Printing the form

Printing hides the form and prints only the invoice.

Questions

Before you ask.

Is my invoice sent anywhere?

No. It stays in the tab.

How is rounding done?

Half up to cents, line by line, then the discount, then the tax.

Can I save it?

Print or save as PDF, copy the text, or download the CSV.

What does it cost?

Nothing. No account.

Your data

What stays on your device.

The tool runs in this browser tab. The names, items and amounts stay in the page. Nothing is uploaded or sent.

Keep going

Other tools you may want next.

Sources

Where the comparison facts come from.

Try it

Check the totals, then send the invoice

Open Invoice Generator
A laptop, headphones, a camera, a phone and a plant on a white desk, seen from above, banner image on the Invoice Generator page

Try it now.

Invoice Generator runs in your browser. No account needed.

Authored Tiles

What you fill in

FromBill toInvoice numberIssue and duedatesCurrency labelLine itemsDiscountTax percentNotes
FromBill toInvoice numberIssue and due datesCurrency labelLine itemsDiscountTax percent
The form has these inputs.

Authored Tiles

Three actions

Print or save as PDFCopy as textDownload CSVWait until no errorsremain
Print or save as PDFCopy as textDownload CSVWait until no errors remain
Each one needs every line to be valid first.

Pipeline

From lines to total

Read each lineMultiply quantityby rateRound to a centAdd the subtotalApply discount,then tax
Read each lineMultiply quantity by rateRound to a centAdd the subtotalApply discount, then tax
Amounts are worked out in exact whole numbers.

Before After

Three ways to write a line

You typeRead asDesign work | 10 | 85Design work, 10, 85Design work (tab) 10 (tab)85Description, qty, rateDescription, qty, rateDescription, qty, rate
You type to Read asDesign work | 10 | 85Description, qty, rateDesign work, 10, 85Description, qty, rateDesign work (tab) 10 (tab) 85Description, qty, rate
Pipe, tab or comma all work as separators.

Pipeline

Exact decimal arithmetic

Read the digits astextScale to sixdecimalsMultiply as bigintegersRound half up tocentsShow with twodecimals
Read the digits as textScale to six decimalsMultiply as big integersRound half up to centsShow with two decimals
Numbers are kept as whole units, not floating point.

Bar Compare

Decimal places allowed

Quantity6 decimalsRate6 decimalsTax percent4 decimalsDiscount percent4 decimalsFixed discount2 decimals
Quantity6 decimalsRate6 decimalsTax percent4 decimalsDiscount percent4 decimalsFixed discount2 decimals
Each input has its own precision limit.

Authored Tiles

What a line must satisfy

Needs a descriptionQuantity above zeroRate zero or moreNo thousands commas
Needs a descriptionQuantity above zeroRate zero or moreNo thousands commas
Anything else gets a named fix with the line number.

Before After

Bad lines and their messages

ProblemMessageEmpty descriptionQuantity 0Rate 1,000Too many decimalsThe description is emptyQty must be above 0No thousands commasAt most 6 decimals
Problem to MessageEmpty descriptionThe description is emptyQuantity 0Qty must be above 0Rate 1,000No thousands commasToo many decimalsAt most 6 decimals
Each message says what to fix.

Authored Tiles

When the output waits

Print is disabledCopy is disabledCSV is disabledMessage explains why
Print is disabledCopy is disabledCSV is disabledMessage explains why
Until every line is valid the buttons stay dim and the invoice is not shown.

Pipeline

Discount then tax

SubtotalSubtract thediscountNet amountTax on the netamountTotal
SubtotalSubtract the discountNet amountTax on the net amountTotal
Tax applies to the amount after the discount.

Before After

Two kinds of discount

KindRulePercent of subtotalFixed amountRounded to the centEntered with two decimals
Kind to RulePercent of subtotalRounded to the centFixed amountEntered with two decimals
Choose a percent of the subtotal or a fixed amount.

Before After

Totals rows

RowWhenSubtotalDiscountTaxTotalAlways shownOnly when above zeroAlways shownBold and last
Row to WhenSubtotalAlways shownDiscountOnly when above zeroTaxAlways shownTotalBold and last
Rows appear only when they apply.

Input To Output

One invoice, three outputs

Valid formPrinted or PDFpagePlain textCSV fileInvoicegeneratorInOut
InValid formInvoicegeneratorPrinted or PDF pagePlain textCSV fileOut
The same numbers feed print, text and spreadsheet.

Pipeline

Text output layout

INVOICE and thenumberDates and partiesOne line per itemSubtotal,discount, tax,totalNotes at the end
INVOICE and the numberDates and partiesOne line per itemSubtotal, discount, tax, totalNotes at the end
A readable block you can paste into mail.

Pipeline

CSV output layout

Header row firstOne row per itemSubtotal rowDiscount row ifanyTax and Total rows
Header row firstOne row per itemSubtotal rowDiscount row if anyTax and Total rows
Columns are description, quantity, rate and amount.

Before After

Placeholders for missing names

You leaveShownFrom blankBill to blankNumber blankYour businessClientINV-1
You leave to ShownFrom blankYour businessBill to blankClientNumber blankINV-1
Blank sender or client falls back to stand-ins.

Pipeline

Print or save as PDF

Press PrintBrowser opens thedialogChoose a printeror Save as PDFControls are leftoff the page
Press PrintBrowser opens the dialogChoose a printer or Save as PDFControls are left off the page
The page uses your browser print dialog.

Pipeline

Copy to clipboard

Press CopyText is built fromthe same numbersClipboard receivesitPaste into anymail
Press CopyText is built from the samenumbersClipboard receives itPaste into any mail
The text version goes to your clipboard.

Pipeline

Download CSV

Press DownloadCSV text is builtFile is created inthe pageBrowser savesinvoice.csv
Press DownloadCSV text is builtFile is created in the pageBrowser saves invoice.csv
A file named invoice.csv is saved by your browser.

Before After

Commas in a description

You typeRead asSetup, install, 2, 40Setup | 2 | 40Description Setup, install;qty 2; rate 40Description Setup; qty 2;rate 40
You type to Read asSetup, install, 2, 40Description Setup, install; qty 2;rate 40Setup | 2 | 40Description Setup; qty 2; rate 40
With comma separators only the last two commas split quantity and rate.

Before After

What each output writes

InputOutputLine: Design work | 10 | 85Cell: =SUM(A1)Text: Design work | 10 x $85= $850.00CSV cell: quote mark addedin front
Input to OutputLine: Design work | 10 | 85Text: Design work | 10 x $85 =$850.00Cell: =SUM(A1)CSV cell: quote mark added in front
The text and CSV outputs for the same data.