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

  • AngelList
  • Lemon Squeezy
  • Jones
  • Harvust
  • Northwoods
  • iENROLL by EMREACH
  • BloomerHealth
  • NOCD

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.

Your JSON data
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
  }
}
From your app, a script, or an AI agent
Your PDF template
Taxpayer Information
Form TI-1
Taxpayer
taxpayer.name
Tax year
tax_year
Filing status
filing_status
Employer
employer
Wages ($)
wages
Tax withheld ($)
tax_withheld
e_file
signature
Taxpayer signature
Fields you set up once
Your filled-out PDF
Taxpayer Information
Form TI-1
Taxpayer
Maya Chen
Tax year
2026
Filing status
Single
Employer
Northwind Health
Wages ($)
74400.00
Tax withheld ($)
9800.00
File my return electronically
Sign here
Taxpayer signature
taxpayer-information.pdf

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...

Browse all accounting and tax forms

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
How automatic field detection works

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.

See all integrations

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.

Security at DocSpring

Accounting FAQ

Read the documentation

Can 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.

Product news by email

New features and changes, once a month.