Skip to content

About

Create a print-ready invoice with auto-calculated line items, tax and totals, plus localStorage drafts. Vanilla JS, no backend/frameworks.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

Invoice Generator Pro

CI License: MIT Vanilla JS

Build a clean, print-ready invoice with auto-calculated totals — fast, private, and fully offline.

A zero-dependency invoice builder. Fill in your business and client details, add line items, and watch a live, print-ready invoice document update instantly on the right. Print it or save it as a PDF straight from your browser — no backend, no account, no template limits.

Overview

Invoice Generator Pro runs entirely in the browser with no build step, no frameworks, and no network calls — open index.html from disk and it works. The form on the left drives a styled invoice document on the right that mirrors what actually gets printed: a print stylesheet hides the form, toolbar, and chrome, leaving only the invoice document on the page when you print or "Save as PDF".

Features

  • Seller & buyer sections — business name, email, phone, address, and tax/VAT ID for the seller; name, email and address for the buyer.
  • Invoice metadata — invoice number, invoice date, and due date.
  • Repeatable line items — description, quantity, unit price, and an optional per-line tax %; add or remove rows freely.
  • Auto-calculated totals — subtotal (sum of qty × price), tax (sum of each line's own tax %), and grand total, recomputed live as you type.
  • 5 currency symbols ($, €, £, ₺, ¥) applied consistently across the line items and totals.
  • Print-friendly layout — a dedicated @media print stylesheet hides the form, toolbar, and header/footer chrome and prints only the invoice document, full width, on a plain white page.
  • Print / Save as PDF button triggers the browser's native window.print() — no PDF library, no server round-trip.
  • Save / load a draft to and from localStorage, plus autosave as you type so a refresh never loses your work; New invoice starts a fresh draft (with a confirmation prompt) with a random invoice number and a due date 14 days out.
  • Notes / payment terms field, shown on the invoice only when filled in.
  • Dark & light themes for the builder UI (the invoice document itself always renders on white paper for print fidelity), fully responsive down to 360px, accessible, and keyboard-driven.

Installation

No dependencies, no build step.

git clone https://github.com/kasapdev/invoice-generator-pro.git
cd invoice-generator-pro

Then simply open index.html in any modern browser (double-click it, or file:// it). That's it.

Usage

  1. Fill in your business (seller) details and the client (buyer) details.
  2. Set the invoice number, invoice date, and due date.
  3. Add line items — description, quantity, unit price, and an optional tax % per line. Totals update live in the preview.
  4. Add any notes or payment terms.
  5. Click Print / Save as PDF (or press Ctrl/⌘+P) to print or export a PDF via your browser's print dialog.
  6. Use Save draft / Load draft to persist and restore a specific version, or rely on autosave.

Keyboard Shortcuts

Action Shortcut
Print / Save as PDF Ctrl/⌘ + P
Save draft Ctrl/⌘ + S
Show shortcuts help ?
Close dialog Esc

Screenshots

Screenshots coming soon.

Roadmap

  • Multiple saved drafts / invoice history
  • Logo upload embedded into the printed invoice
  • Additional currency and locale formatting options
  • Discount line (flat or percentage) in addition to tax
  • Export invoice data as JSON for accounting imports

License

MIT Licensed.


Part of the kasapdev Tools Suite

One of 45+ zero-dependency vanilla JS tools, all free and open source — see the full list.

About

Create a print-ready invoice with auto-calculated line items, tax and totals, plus localStorage drafts. Vanilla JS, no backend/frameworks.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages