Fill IRS tax forms and generate invoices with an API
Fill W-9s, W-8BENs, 1099s, and other IRS forms with data from your accounting or payments system, and generate invoices and statements from page designs or your own HTML templates.
- No credit card needed
- Free test PDFs
- 9.8ยข per PDF on Starter
Trusted by teams in lending, insurance, property, and healthcare
Tax and accounting paperwork you can automate
Accounting firms and payment platforms use DocSpring to fill tax forms and produce client documents without retyping figures. Every value is checked against the template's schema before the PDF is generated.
W-9 and W-8BEN collection
Collect a signed W-9 from every vendor and contractor, or a W-8BEN or W-8BEN-E from foreign payees, and keep the PDF on file.
1099 recipient copies
Generate 1099-NEC recipient copies for every contractor you paid, in batches of up to 50 per request.
IRS authorizations
Fill Form 8821 and Form 2848 so clients can authorize you to see their tax information or represent them before the IRS.
Invoices and statements
Generate invoices, statements, and receipts from page designs or HTML templates, with line items, totals, and your own branding.
Tax returns and schedules
Fill forms like Schedule C and Form 941 from the figures in your accounting system.
Payment reminders and past-due notices
Generate payment reminders and past-due notices from your accounting data, with each customer's balance and unpaid invoices.
How it works
Send your data as JSON from your app. DocSpring checks each value against your template, fills the PDF, and returns it.
POST /api/v2/templates/{template_id}/submissions
{
"data": {
"taxpayer": {
"name": "Maya Chen"
},
"tax_year": "2026",
"filing_status": "Single",
"employer": "Northwind Health",
"wages": 74400,
"tax_withheld": 9800,
"e_file": true
}
}
Accounting and tax form templates
Ready-made templates for common forms, set up and ready to fill.
IRS Form W-9
Use Form W-9 to provide your correct Taxpayer Identification Number (TIN) to the person who is required to file an information ...
IRS Form W-4: Employee's Withholding Certificate
Employees fill in Form W-4 so their employer withholds the right amount of federal income tax from their pay. This template cov...
IRS Form W-8BEN
Fill out Form W-8 BEN and give this form to the withholding agent or payer if you are a foreign person and you are the benefici...
AI sets up your fields
Upload a PDF form and DocSpring sets up the template for you. You review every field in the editor before you publish.
- Finds the fields on flat PDFs, not just fillable forms
- Gives each field a clear name and data type
- Adds conditional logic, required fields, and totals
Works with your code and your tools
API and SDKs
A REST API with official SDKs in ten languages, from Ruby and Python to Go and Rust.
Hosted web forms
Share a template's web form as a link or embed it on your site. Each submission fills the PDF.
E-signatures
Send documents for signature by email, or embed signing in your app. Several people can sign each document, and every signed PDF includes an audit trail.
Webhooks and integrations
Webhooks tell your app when a PDF is ready. Zapier, Make, and n8n connect DocSpring to your other apps, and every PDF can be saved to your own S3 bucket.
Security and compliance
SOC 2 Type II
Independently audited controls for security and availability.
HIPAA
HIPAA compliant, and we sign a BAA on every paid plan.
GDPR
A data processing agreement, and a full list of our subprocessors.
US or EU hosting
Choose the region your account and its documents are stored in.
Accounting FAQ
Read the documentationCan I fill W-9 and W-8BEN forms automatically?
Yes. Our template library includes the W-9 and W-8BEN, or you can upload your own copy. Send the payee's details as JSON and DocSpring returns the completed form as a PDF.
Can I collect a signed W-9 from a vendor online?
Yes, with signature requests. The vendor opens a hosted or embedded form, enters their taxpayer details, and signs. DocSpring fills the W-9 and adds an audit trail to the signed PDF.
Can I generate 1099-NEC forms in bulk?
Yes, for the copies you send to recipients. A batch request generates up to 50 forms, each with its own payee and amounts. The IRS doesn't accept printouts of Copy A from a downloaded PDF, so file that copy electronically or on the official red-ink form.
What happens when the IRS publishes a new revision of a form?
Upload the new revision to the same template and adjust any fields that moved. If the field names stay the same, your code keeps working.
Can I generate invoices from my own HTML template?
Yes. Write the invoice in HTML and CSS, and use Liquid to loop over line items and show totals. DocSpring renders it to PDF with its Standard engine, or with headless Chrome for templates that need JavaScript.
Can I fill Form 8821 or Form 2848 for clients?
Yes. Both are fillable IRS PDFs. Map them once, fill them with each client's details, and send the form to the client to sign with a signature request. The IRS only accepts electronically signed 8821s and 2848s through its online submission tool, so upload the signed PDF there instead of faxing or mailing it.
How are Social Security and taxpayer ID numbers protected?
Submission data is encrypted at rest with AES-256, and DocSpring has completed a SOC 2 Type II audit. You can also set a template to delete submission data and generated PDFs automatically after a set time.
Upload your own tax and accounting forms
Test PDFs are free and unlimited. No credit card needed.

