Invoice Generator

Build a clean, printable invoice in your browser. Fill in your business info, the customer's info, and the line items on the left; the right pane shows a live preview with subtotals, an optional overall discount, per-line tax, and the grand total in your chosen currency. Export as plain text or as a self-contained HTML document ready for print → Save as PDF. All math and formatting run locally — nothing leaves the browser.

Your business
Bill to
Invoice details
Line items
Description Qty Unit price Tax %

    How the math works

    Per-line net
    Each line's net is quantity × unit price, rounded to two decimals. Credit lines (negative unit prices) are allowed and reduce the subtotal.
    Subtotal
    The sum of every line's net amount. This is the pre-tax, pre-discount total.
    Discount
    An optional overall discount percent, applied to the subtotal before tax. The discount amount is allocated pro-rata across the lines so per-line tax reflects the buyer's effective price.
    Tax
    Each line carries its own tax rate (e.g. 19 for 19% VAT). Tax is computed per line on (line_net × (1 − discount_percent)) and rounded to two decimals before being summed.
    Grand total
    (subtotal − discount) + total_tax, rounded to two decimals. This is what the buyer pays.
    Currency
    We use Intl.NumberFormat for the locale + currency formatting. The amount stored internally is always in major units (e.g. dollars, not cents); the formatter handles symbol, thousands separator, and fraction digits (yen has none, dinar has three).
    Export
    Copy plain text emits a monospace-aligned invoice suitable for pasting into an email. Download HTML gives you a self-contained .html file with inline CSS — open it in a browser, hit Print, choose "Save as PDF", and you have a real PDF without ever uploading anything.