The Code Codex
Theme

Invoice Generator

Create English invoices for international clients, in USD, EUR and other currencies, and save them as PDF.

The link keeps what is on screen.

Invoice data goes into the share link (after the #, never sent to servers). Only share it with people who may see it.

Parameters
Document
Currency
Your details (issuer)
💾 Your issuer and payment details are saved in this browser only.
Client
Items
Payment and notes
Opens the browser print dialog: choose “Save as PDF”.
InvoiceINV-001
Your details (issuer)
Bill to—
Issue date
—
Due date
—
DescriptionQtyUnit priceAmount
Software development services1$0.00$0.00
Subtotal
$0.00
Total due
$0.00
NotesPayment due within 15 days. Thank you for your business!
How is it calculated?
The document is generated in English, the standard for international clients. Total = sum of items − discount + tax (applied after the discount). “Next invoice” increments the number keeping its prefix (INV-2026-009 → INV-2026-010) and refreshes the dates. An invoice does not replace Brazil's service-export tax invoice (nota fiscal): check with your accountant.
See the code ↗

Processed in your browser; nothing is sent.

⌨️ Use from the terminal (PDF)

This tool also runs outside the site: the cli.js script renders the invoice PDF in the terminal, from the same JSON as this page's share link. Use format=json to get just the data and totals.

Deno
deno run -q "https://thecodecodex.com/cli.js?tool=invoice" > invoice.pdf
Node.js / Bun
curl -s https://thecodecodex.com/cli.js | node --input-type=module - invoice > invoice.pdf invoice=…
ParameterDescriptionDefault
invoiceinvoice em JSON (copie do link do site)exemplo
formatpdf | jsonpdf

Requires Deno, Node.js or Bun. With Deno the script runs with no permissions: it cannot read files or access the network. Central Bank indicators are from the day the site was published.

More in Finance