A modern, professional, client-side invoice generator that works entirely in your browser. Create, customize, and print professional invoices without sending your data to any server or requiring any backend connections.
- Professional Design: Clean, modern interface with customizable styling
- Full Invoice Management: Create and manage invoices with multiple service line items
- Time Tracking: Add and track service hours with different categories
- Financial Tools: Calculate subtotals, taxes, and discounts automatically
- Multiple Export Options: Print directly or export to PDF
- Data Security: All data stays in your browser (stored in localStorage)
- Customization: Change colors, fonts, and theme modes (light/dark)
- Validation: Smart form validation with interactive error correction
- Responsive: Works on desktop and mobile devices
- No Dependencies: Zero external libraries or frameworks required
- Download the three files:
invoice.html,invoice.css, andinvoice.js - Save all three files in the same directory
- Open
invoice.htmlin any modern web browser
git clone https://github.com/Joshspeakman/invoice-pro.git
cd invoice-pro
# Simply open invoice.html in your browser- Open
invoice.htmlin your browser - Fill in your business information at the top
- Enter client details
- Add service items using the "Add Service" button
- Confirm each service by clicking the checkmark or confirm all with the "Confirm Services" button
- Set your hourly rate, tax rate, and any discounts
- Add any notes for your client
- Save, print, or export to PDF
- Complete all required fields (marked with *)
- Confirm all services before printing or exporting
- For PDF export, use the "Save as PDF" option in your browser's print dialog
- Customize the appearance with the "Customize Style" button
All data is saved to your browser's localStorage. This means:
- Your data never leaves your computer
- No internet connection is required after initial load
- Data persists between sessions until you clear it
- Each device/browser has its own separate data store
To clear all saved data, use the "Clear Invoice" button.
- invoice.html: The main HTML structure
- invoice.css: All styling and print formatting
- invoice.js: All application logic and functionality
The styling system uses CSS variables for easy customization:
- Click the "Customize Style" button
- Adjust primary, secondary, and accent colors
- Choose from several font families
- Toggle between light and dark modes
- Apply changes to see the results immediately
For more advanced customization, you can directly edit:
- invoice.css: Modify styles, layouts, and print formatting
- invoice.html: Change structure, add fields, or modify sections
- invoice.js: Adjust functionality, validation rules, or calculations
The interface adapts to different screen sizes:
- Desktop: Full multi-column layout with side-by-side elements
- Tablet: Adjusted layouts with fewer columns
- Mobile: Single-column layout for most elements
- Clean, professional layout optimized for standard paper sizes
- Automatic reformatting for print with unnecessary elements removed
- Single-line service items for efficient space usage
- Two-column layout for invoice header preserved when printing
- Click "Export as PDF"
- Choose page size (Letter or A4)
- In the browser print dialog, select "Save as PDF" as destination
- Save the file to your preferred location
- Browser Support: Works on all modern browsers (Chrome, Firefox, Safari, Edge)
- Required APIs: localStorage, CSS Grid/Flexbox, ES6+ JavaScript
- Printing: Uses browser's built-in print functionality and CSS print media queries
- Form Validation: Custom validation with interactive error messages
- Data Persistence: localStorage with JSON serialization
This project is licensed under the MIT License - see the LICENSE file for details.
If this saved you some time, you can buy me a Continue on Ko-fi. It's $5 and it keeps me building stuff like this.