Create a polished, client-ready invoice generator that handles company details, line items with quantity and rate calculations, automatic tax, subtotals, and a clean print-ready preview. All data stays in the browser via localStorage so your company info auto-fills on repeat visits.
Build Prompt
Copy this prompt into Claude Code
Build a single-page invoice generator as a static HTML/CSS/JS site. The page background should be #0f0f17 with a centered white invoice preview panel (max-width 800px) that looks like a real paper document with subtle box-shadow.
At the top left of the invoice, include editable fields for "From" company details: company name (bold, 18px), address line 1, address line 2, city/state/zip, phone, and email. Top right shows a large "INVOICE" heading in #2563eb, followed by fields for invoice number (auto-generated as INV-0001 incrementing), invoice date (defaults to today), due date (date picker), and payment terms dropdown (Net 15, Net 30, Net 60, Due on Receipt).
Below that, a "Bill To" section with fields for client name, client company, client address, client email. Use a light gray (#f8f9fa) background strip to separate this from the line items.
The line items table has columns: Description (text input, 45% width), Quantity (number input, 15%), Rate (currency input with $ prefix, 20%), and Amount (auto-calculated, 20%, right-aligned, non-editable). Below the table, an "Add Line Item" button with a blue dashed border. Each row has a red X delete button on hover. The table header should be #f1f5f9 background with #64748b text.
Below the line items, right-aligned summary box: Subtotal, Tax Rate (editable percentage input defaulting to 0%), Tax Amount (auto-calculated), and Total (bold, larger font, #2563eb color). All currency values format with commas and two decimal places.
At the bottom, an optional "Notes" textarea for payment instructions (placeholder: "Payment is due within 30 days...") and a "Terms & Conditions" textarea.
Action buttons fixed at bottom of the invoice area: "Print / Save PDF" (triggers window.print with a print stylesheet that hides the dark background and buttons), "Clear Invoice" (confirms then resets), and "Save Draft" (saves all fields to localStorage). On page load, auto-restore the last saved draft. Store the "From" company details separately in localStorage so they persist across new invoices.
The print stylesheet should render the invoice on white background with no UI chrome, proper page margins, and page-break-after on the notes section. Make the entire layout responsive — on mobile, stack the From/To sections vertically and make the line items table horizontally scrollable.
Read the guide at https://accessagent.ai/api/guide and follow it to deploy the site to AccessAgent.ai. My email is [your@email.com].
Make It Yours
Multi-Currency Support
Add a currency selector (USD, EUR, GBP, CAD, AUD) that updates the symbol and formatting throughout the invoice automatically.
Company Logo Upload
Let users upload a logo image that appears in the top-left corner of the invoice. Store it as a base64 data URL in localStorage.
Recurring Line Items
Save frequently-used line items (like "Web Design - 1 hour" at $150) as templates that can be inserted with one click.
Invoice History
Store completed invoices in localStorage with a sidebar list showing invoice number, client, total, and date for quick reference.
Discount Line
Add support for percentage or flat-rate discounts applied before tax, with a toggle between discount types.
Late Payment Terms
Include a late fee calculator that auto-fills penalty terms (e.g., "1.5% per month on overdue balances") in the terms section.
SEO Tips
Target "free invoice generator" and "online invoice maker" as primary keywords — these have 40K+ monthly searches with moderate competition.
Add a FAQ section below the tool answering "How do I create a professional invoice?" and "What should an invoice include?" to capture featured snippets.
Create separate landing pages for niches: "freelance invoice generator," "contractor invoice template," "consulting invoice maker" to capture long-tail traffic.
Include schema markup for SoftwareApplication type with "Free" pricing and 5-star aggregateRating to stand out in search results.
Write a companion blog post titled "How to Invoice Clients as a Freelancer (2026 Guide)" linking back to your tool for organic backlinks.
Monetization Ideas
Offer premium templates (modern, minimalist, bold) for $4.99 each — unlock via a simple payment gate that stores the purchase in localStorage.
Add a "Send Invoice by Email" feature as a paid upgrade ($2/month) using a serverless email API like Resend or SendGrid.
Place a non-intrusive affiliate link to accounting software (FreshBooks, QuickBooks) with "Need full accounting?" CTA below the invoice.
Offer a white-label version where users pay $19 one-time to remove the "Made with [YourTool]" watermark from printed invoices.
Create a "Client Portal" upgrade where clients can view and pay invoices online via Stripe — charge 1% per transaction.