A modern, browser-based invoice generator with live preview, UPI QR payments, invoice history, themes, and print-ready PDF export.
Smart Invoice Generator is a lightweight, browser-based invoice creation application built to make professional invoice generation simple and fast.
The application provides a complete invoice workflow inside a single web page. Users can enter company and customer information, add multiple billing items, apply tax and discounts, generate a UPI payment QR code, preview the invoice in real time, save invoices locally, search invoice history, and print or save invoices as PDF.
The project is intentionally built without a backend or build system, making it easy to run locally and deploy as a static website.
๐ฏ Goal: Provide a simple, professional, and privacy-friendly invoice generation tool that works directly in the browser.
No installation or backend setup is required.
Create an invoice while seeing the final result update instantly.
- Real-time field updates
- Professional invoice layout
- Company information
- Customer information
- Invoice details
- Multi-item billing
- Automatic totals
- Tax calculation
- Discount support
Add important billing information including:
- Company name
- Company address
- Contact details
- GSTIN
- Customer name
- Customer address
- Customer contact information
- Invoice number
- Invoice date
Add multiple products or services to the invoice.
- Item description
- Quantity
- Price
- Automatic line totals
- Multiple invoice items
- Dynamic item management
Customize invoice totals according to your billing requirements.
- Tax percentage
- Discount amount/percentage support
- Automatic calculations
- Updated totals in real time
Generate a scannable UPI payment QR code directly inside the invoice.
The QR payment section supports:
- UPI ID
- Full invoice amount
- Customer-entered amount
- Fixed custom amount
- Scan-to-pay workflow
Add notes or a thank-you message to the invoice.
The layout keeps the notes section aligned correctly whether the UPI QR code is visible or hidden.
Save invoices directly in the browser and manage them later.
- Save invoices
- Search invoices
- Edit saved invoices
- Print saved invoices
- Delete invoices
- Local browser storage
Generate a clean print-ready version of your invoice.
- Print-friendly layout
- Optimized print stylesheet
- Save as PDF through the browser print dialog
- Clean invoice output
Choose the visual style that fits your preference.
- โ๏ธ Light Theme
- ๐ Dark Theme
- ๐ Gradient Theme
The application adapts to different screen sizes.
On smaller screens, the editor and invoice preview automatically switch to a clean single-column layout.
Complete application view with the invoice editor and live preview.
Generated invoice showing billing information, totals, and UPI payment QR.
Notes and UPI QR payment section displayed together.
4. ๐ Notes + QR Row โ QR Hidden
The notes section remains correctly aligned when the QR code is hidden.
Theme and application controls available through the menu.
Complete application view using the dark theme.
Saved invoices can be searched and managed from the history panel.
Responsive single-column layout for smaller screens.
Print-optimized invoice layout for printing or saving as PDF.
| Technology | Purpose |
|---|---|
| HTML5 | Application structure |
| CSS3 | Styling, themes, layout, and responsiveness |
| JavaScript | Invoice logic, calculations, history, QR generation, and interactions |
| CSS Grid / Flexbox | Responsive application layout |
| localStorage | Local invoice history and settings |
| QRCode.js | UPI QR code generation |
| GitHub Pages | Static hosting and deployment |
smart-invoice-generator/
โ
โโโ index.html
โโโ README.md
โ
โโโ 01-full-app-gradient.png
โโโ 02-invoice-preview-with-qr.png
โโโ 03-notes-qr-row-filled.png
โโโ 04-notes-qr-row-empty.png
โโโ 05-theme-menu.png
โโโ 06-full-app-dark.png
โโโ 07-history-panel.png
โโโ 08-mobile-view.png
โโโ 09-print-preview.png
The project is intentionally kept simple: the main HTML file contains the application's structure, styling, and JavaScript logic.
- Download or clone the repository.
- Open the project folder.
- Double-click
index.html. - The application will open in your browser.
- Start creating invoices.
- Open the project folder in Visual Studio Code.
- Open
index.html. - Run it in your browser.
- Start entering invoice details.
No npm install, build command, or backend server is required.
git clone https://github.com/tech-ankit-kumar/smart-invoice-generator.git
cd smart-invoice-generatorThen open index.html in your browser.
Add your business/company information and GSTIN if required.
Add the customer's billing information.
Enter products or services with quantity and price.
Apply the required tax and discount values.
Enter a UPI ID if you want to display a Scan-to-Pay QR code.
Add payment instructions, terms, or a thank-you message.
Check the invoice as it updates in real time.
Save the invoice locally so it can be accessed later.
Use the print option to print the invoice or save it as a PDF.
Smart Invoice Generator is designed as a client-side application.
- No backend server is required.
- Invoice history is stored locally in the browser.
- Theme/settings data is stored locally.
- Invoice information is not uploaded to a project backend.
- Clearing browser storage can remove locally saved invoice history.
โ ๏ธ Important: Do not enter sensitive information into a public/shared computer or browser profile.
The application uses QRCode.js for generating UPI QR codes.
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js" defer></script>This project demonstrates practical frontend development skills including:
- Dynamic form handling
- Real-time UI updates
- DOM manipulation
- Invoice calculations
- Tax and discount calculations
- Multi-item billing
- QR code generation
- Browser localStorage
- Search and history management
- Edit/delete workflows
- Theme switching
- Responsive web design
- Print-specific CSS
- PDF-friendly layouts
- Single-page application behavior
Possible future improvements include:
- โ๏ธ Cloud invoice synchronization
- ๐ User authentication
- ๐๏ธ Online database
- ๐ง Email invoice delivery
- ๐ Multiple invoice templates
- ๐งพ Recurring invoices
- ๐ณ More payment methods
- ๐ Sales and invoice analytics
- ๐ค Invoice sharing
- ๐ Multi-currency support
- ๐ Multi-language support
- ๐ข Business profile management
Suggestions, improvements, and contributions are welcome.
To contribute:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Commit your changes.
- Open a pull request.
If you find Smart Invoice Generator useful:
- โญ Star the repository
- ๐ด Fork the project
- ๐ก Suggest improvements
- ๐ Report bugs
- ๐ข Share the project
This project is created for educational and portfolio purposes.
You are welcome to explore the source code and use it for learning.
Smart Invoice Generator โ A browser-based invoice creation and management application.
- ๐ป GitHub: @tech-ankit-kumar
- ๐ Live Demo: Smart Invoice Generator
- ๐ฆ Repository: smart-invoice-generator
Smart Invoice Generator combines:
Live Invoice Creation + Real-Time Preview + Tax & Discount + UPI QR Payments + Invoice History + Themes + Print/PDF Export
into one lightweight browser-based invoicing solution.
๐งพ Create. Preview. Save. Print.








