Why I Built a 100% Browser-Only W-8BEN / W-9 & Bilingual USD Invoice Generator (Zero Cloud Uploads, Pure Print CSS)
If you work as an independent software engineer, AI consultant, or remote freelancer billing U.S. or international clients, onboarding always repeats the same paperwork: A structured IRS W-8BEN (for non-U.S. contractor
If you work as an independent software engineer, AI consultant, or remote freelancer billing U.S. or international clients, onboarding always repeats the same paperwork:
- A structured IRS W-8BEN (for non-U.S. contractors) or W-9 vendor onboarding summary with your Tax ID / FTIN and treaty claim.
- A clean USD / EUR / GBP commercial invoice with wire instructions (US ACH, SWIFT, Wise, Payoneer, or PingPong).
When I looked for a quick web tool to generate both, almost every "free" online generator either:
- forced account sign-up and uploaded my passport / Tax ID / bank routing numbers to their cloud database, or
- locked clean A4 PDF export behind a $15β$29/month SaaS subscription.
There is zero technical reason a form-to-PDF generator needs a backend server. So I built W-8BEN / W-9 & Bilingual USD Invoice Studio as a 100% client-side, zero-dependency static web app hosted on GitHub Pages.
1. Zero Cloud Uploads & Zero External CDNs
Open Chrome DevTools β Network tab while filling out your Tax ID, address, and bank account details: zero network requests leave your browser.
- All state persists strictly in
window.localStorage(with JSON export/import backup so you own your data file). - Zero React/Webpack bloat, zero external Google Fonts or third-party analytics scripts β just vanilla HTML, CSS, and JS that even runs completely offline if you download the folder.
- Optional FTIN / TIN masking lets you display masked identifiers (
***-**-1234) when generating preview or draft PDFs.
2. Print-to-PDF Without Heavy PDF Libraries
Many client-side invoice apps pull in 1.5 MB+ html2canvas / jsPDF bundles that produce blurry rasterized text.
Instead, native browser @media print CSS gives you crisp, selectable vector text PDFs in 0 KB of JavaScript:
@page {
size: A4 portrait;
margin: 12mm;
}
@media print {
.no-print {
display: none !important;
}
.page-break {
break-before: page;
page-break-before: always;
}
body {
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
}
With one click, you can print either a single-page commercial invoice, a standalone W-8BEN / W-9 vendor onboarding sheet, or a 2-page combined onboarding PDF bundle.
3. Built for Cross-Border Contractors (EN / Bilingual + Multi-Rail Payouts)
Real international freelancers rarely use just one payout rail or language:
- English-only or Bilingual (EN / δΈζ) toggle: generates clean receipts acceptable to both U.S. finance teams and domestic accounting.
- Built-in payout templates: pre-structured fields for US ACH / Routing, International SWIFT, Wise, Payoneer, and PingPong.
-
Multi-currency formatting: instant
Intl.NumberFormatsupport for USD, EUR, and GBP with auto-incrementing invoice numbers, discounts, and tax lines.
Try It Free (No Sign-Up)
- Live Free Web App: https://uy2010cctv.github.io/xiatree-ai-tools/w8-invoice/
- Optional One-Time Pro Unlock ($39, unlimited clients + custom logo + 2-page PDF bundle + full offline source code): https://lichenkris.gumroad.com/l/w8ben-usd-invoice-local-webapp
- All Local-First Tools by Xiatree AI Labs: https://uy2010cctv.github.io/xiatree-ai-tools/
What other international contractor fields (EU VAT reverse-charge, UK UTR, Canadian GST/HST, or SEPA IBAN presets) would make this more useful for your invoicing workflow? Let me know in the comments!
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.