Free minimal invoice template: clean and simple, HTML to PDF
Published 2 min read

Free template
Use this template for free
Create a free account, make a new template in the Code mode and paste the HTML below. Then send your own data from the API.
This is the minimal style: light type, a lot of white space, hairlines instead of boxes and no color at all. It reads quickly and leaves room for your own brand. It is a complete invoice you can use as it is or change: plain HTML and CSS with placeholders, so it works in any system that can send a request. You fill the placeholders with your data and get a PDF back. Below you can download the sample PDF, copy the code and see the data it expects.
What is in the template
- The company block with name, address and tax number.
- The document title and number.
- A billed-to block with the customer, and the issue and due dates, written in the long form of the reader’s language.
- A table of line items with quantity, unit price and amount. It grows with your data, and its header row repeats if the table runs onto another page.
- Subtotal, tax and total, with the currency formatted for the locale.
- A payment note and a thank-you line.
How to use it
In the portal. Create a free account, click New template, switch to the Code mode and paste the HTML below. You get a live preview.
From the API. Download the HTML and the sample data and send both in one request. This example uses jq to put the files in the body:
curl -X POST https://api.rustedf.com/v1/render \ -H "Authorization: Bearer $RUSTEDF_KEY" \ -H "Content-Type: application/json" \ -d "$(jq -n --rawfile html invoice-minimal.html --slurpfile data invoice-minimal-data-en.json \ '{html: $html, data: $data[0], locale: $data[0].locale}')" \ -o invoice.pdfOnce you like the result, save the HTML as a template and call it by its id from your code.
Make it yours
- Look. The only colors are grays, written as hex values in the CSS. To add a touch of your brand, change the color of the labels or of the rule above the total.
- Amounts. Send them as strings, such as
"6480.00". Work the subtotal, the tax and the total out in your own system and send the results. - Logo. Add your logo as
<img src="asset:<id>" width="120">after uploading a PNG or JPEG once. - Fonts. The template names
Lato, and any Google Fonts family works by name; there is nothing to link. - Language. Every label comes from the
tobject of the data, so the same template issues documents in any language you can write.
A note on what an invoice is
This is a commercial invoice layout. The tax and legal requirements for invoices differ by country, and an electronic tax document issued under a national scheme is a different thing. Check what applies to you before you send it to a customer.
Other styles
The same data works with the other styles of this document:
See Templates / Locales and formatting.
The template code
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<style>
@page { size: A4; margin: 22mm 20mm; }
body { font-family: Lato, sans-serif; font-size: 9.5pt; font-weight: 300; color: #222222; line-height: 1.55; }
table { width: 100%; border-collapse: collapse; }
td, th { vertical-align: top; }
p { margin: 0; }
.muted { color: #777777; }
strong, .strong { font-weight: 700; }
.kind { font-size: 30pt; font-weight: 300; letter-spacing: -0.5pt; line-height: 1; }
.ref { margin-top: 3mm; color: #777777; }
.name { text-align: right; font-weight: 700; }
.name + p { text-align: right; }
.line { border-top: 1px solid #dddddd; margin: 11mm 0 8mm 0; }
.label { font-size: 7.5pt; font-weight: 700; letter-spacing: 1.5pt; text-transform: uppercase; color: #999999; margin-bottom: 1.5mm; }
.meta td { width: 33%; padding-right: 6mm; }
.items { margin-top: 12mm; }
.items th { text-align: left; font-size: 7.5pt; font-weight: 700; letter-spacing: 1.5pt; text-transform: uppercase; color: #999999; padding: 0 0 3mm 0; border-bottom: 1px solid #222222; }
.items td { padding: 4mm 0; border-bottom: 1px solid #eeeeee; }
.items small { display: block; color: #999999; font-size: 8.5pt; }
.right { text-align: right; }
.totals { width: 45%; margin-left: 55%; margin-top: 6mm; }
.totals td { padding: 1.6mm 0; }
.grand td { padding-top: 4mm; border-top: 1px solid #222222; }
.due { font-size: 20pt; font-weight: 300; line-height: 1.1; }
.pay { margin-top: 16mm; }
.thanks { margin-top: 12mm; color: #777777; }
.items th.right { text-align: right; }
</style>
</head>
<body>
<table>
<tr>
<td>
<p class="kind">{{ t.title }}</p>
<p class="ref">{{ t.number }} {{ number }}</p>
</td>
<td style="width: 40%">
<p class="name">{{ company.name }}</p>
<p class="muted">{{ company.line1 }}<br />{{ company.line2 }}<br />{{ company.tax }}</p>
</td>
</tr>
</table>
<div class="line"></div>
<table class="meta">
<tr>
<td>
<p class="label">{{ t.billed_to }}</p>
<p><span class="strong">{{ customer.name }}</span><br />{{ customer.line1 }}<br />{{ customer.line2 }}</p>
</td>
<td>
<p class="label">{{ t.issued }}</p>
<p>{{ issued | date(style="long") }}</p>
</td>
<td>
<p class="label">{{ t.due }}</p>
<p>{{ due | date(style="long") }}</p>
</td>
</tr>
</table>
<table class="items">
<thead>
<tr>
<th style="width: 52%">{{ t.description }}</th>
<th class="right" style="width: 10%">{{ t.qty }}</th>
<th class="right" style="width: 19%">{{ t.unit }}</th>
<th class="right" style="width: 19%">{{ t.amount }}</th>
</tr>
</thead>
<tbody>
{% for item in items %}
<tr>
<td>{{ item.name }}<small>{{ item.detail }}</small></td>
<td class="right">{{ item.qty | number }}</td>
<td class="right">{{ item.unit | currency(code=currency) }}</td>
<td class="right">{{ item.amount | currency(code=currency) }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<table class="totals">
<tr>
<td class="muted">{{ t.subtotal }}</td>
<td class="right">{{ subtotal | currency(code=currency) }}</td>
</tr>
<tr>
<td class="muted">{{ t.tax }} ({{ tax_rate | number(digits=0) }}%)</td>
<td class="right">{{ tax | currency(code=currency) }}</td>
</tr>
<tr class="grand">
<td class="strong">{{ t.total }}</td>
<td class="right due">{{ total | currency(code=currency) }}</td>
</tr>
</table>
<div class="pay">
<p class="label">{{ t.payment }}</p>
<p>{{ payment.line1 }}</p>
<p class="muted">{{ payment.line2 }}</p>
</div>
<p class="thanks">{{ t.thanks }}</p>
</body>
</html>The sample data
{
"locale": "en-US",
"currency": "USD",
"number": "2025-0142",
"issued": "2025-03-14",
"due": "2025-04-13",
"tax_rate": 8,
"company": {
"name": "Aurora Studio",
"line1": "482 Acacia Street · Austin, TX",
"line2": "[email protected]",
"tax": "EIN 12-3456789"
},
"customer": {
"name": "Northwind Traders Inc.",
"line1": "1500 Congress Avenue, Suite 82",
"line2": "Austin, TX 78701"
},
"items": [
{ "name": "Brand identity", "detail": "Logo, palette and usage guide", "qty": 1, "unit": "2400.00", "amount": "2400.00" },
{ "name": "Packaging design", "detail": "Labels for 6 products", "qty": 6, "unit": "320.00", "amount": "1920.00" },
{ "name": "Product photography", "detail": "Studio day rate", "qty": 2, "unit": "600.00", "amount": "1200.00" },
{ "name": "Company website", "detail": "Hosting for the first year", "qty": 1, "unit": "480.00", "amount": "480.00" }
],
"subtotal": "6000.00",
"tax": "480.00",
"total": "6480.00",
"payment": {
"line1": "Bank transfer or card before the due date.",
"line2": "Routing 021000021 · Account 123456789"
},
"t": {
"title": "Invoice",
"number": "No.",
"billed_to": "Billed to",
"issued": "Issued",
"due": "Due",
"description": "Description",
"qty": "Qty",
"unit": "Unit price",
"amount": "Amount",
"subtotal": "Subtotal",
"tax": "Sales tax",
"total": "Total",
"payment": "Payment",
"thanks": "Thank you for your business."
}
}Keep reading
More styles
Google Fonts in a PDF: use font-family without @font-face
Use any Google Fonts family in a PDF by naming it in CSS. How the font is fetched and cached, the built-in fallbacks, bold and italic, and what does not work.
3 min read

More styles
Free classic receipt template: black and white, HTML to PDF
A free classic receipt in HTML and CSS: serif type, a double frame, the payer, the amount received and a signature line. Copy it and use your own data.
2 min read

More styles
Free classic quote template: black and white, HTML to PDF
A free classic quote in HTML and CSS: serif type, black and white, scope of work, a price table, terms and signature lines. Copy it and use your own data.
2 min read

More styles
Free modern invoice template with a colored header, HTML to PDF
A free modern invoice in HTML and CSS: a dark header band, rounded cards, striped rows and an accent color for the total. Copy it and use your data.
2 min read