How to Create an Invoice in Markdown (Free Template)
Sending a polished invoice does not require accounting software or a word processor. With Markdown, you can write a clean, professional invoice as plain text, preview it instantly, and export a print ready PDF. For freelancers and small studios who already work in Markdown, it keeps billing in the same simple format as everything else.
Quick Answer: To create an invoice in Markdown, list your business and client details at the top, put line items in a table with quantity, rate, and amount columns, add a totals section below the table, and export the result to PDF. A live preview editor like edtr.md renders the invoice cleanly and exports it without any billing software.
This guide gives you a ready to use template, explains every field, and shows how to turn it into a shareable PDF.
What Fields Does an Invoice Need?
A professional invoice answers a few simple questions: who is billing whom, for what, how much, and how to pay. The essential fields are:
- Your details: name or business name, address, email, and any tax or registration number
- Client details: their name or company and contact
- Invoice number: a unique identifier for your records
- Issue date and due date: when it was sent and when payment is expected
- Line items: a description, quantity, rate, and amount for each
- Totals: subtotal, any tax, and the final amount due
- Payment instructions: bank details, a payment link, or accepted methods
Missing any of these creates back and forth with the client. Including all of them gets you paid faster.
What Is a Good Markdown Invoice Template?
Here is a complete template you can copy and adapt:
# Invoice
**From:** Your Name
[email protected]
**To:** Client Company
[email protected]
**Invoice #:** 2026-014
**Issued:** June 4, 2026
**Due:** June 18, 2026
| Description | Qty | Rate | Amount |
|--------------------------|----:|-------:|--------:|
| Landing page design | 1 | 1,200 | 1,200 |
| Responsive development | 20 | 80 | 1,600 |
| Revisions (2 rounds) | 1 | 300 | 300 |
**Subtotal:** 3,100
**Tax (0%):** 0
**Total due:** 3,100
---
**Payment:** Bank transfer to IBAN XX00 0000 0000
Please reference invoice 2026-014.
The table holds the line items, and the right aligned columns keep the numbers tidy. If tables are new to you, the Markdown tables guide explains the alignment syntax used above.
How Do You Total Line Items Correctly?
Markdown does not calculate sums for you, so the totals are values you enter. A reliable habit is to keep the math simple and visible:
- Right align the amount column so figures line up
- Show the subtotal, then tax, then the final total on separate lines
- Use a consistent currency format throughout
- Double check the arithmetic before sending, since a plain text invoice will not catch errors
Because the file is plain text, it is easy to duplicate last month’s invoice and update only the numbers, which removes most of the chance for formatting mistakes.
How Do You Export a Markdown Invoice to PDF?
Clients expect a PDF, not a raw text file. The cleanest path is to render the invoice in a browser editor and print to PDF, which preserves the table alignment and spacing exactly as previewed. Open the invoice in edtr.md, check the layout, and export. For the full walkthrough on print fidelity, see our guide on exporting Markdown to PDF.
When Should You Use a Dedicated Invoicing Tool?
A Markdown template is perfect for occasional invoices. Once you send them regularly, track which are paid, and want payment links built in, manual files start to cost you time. A freelance workspace automates the parts a text file cannot: numbering, reminders, payment collection, and a record of what is outstanding.
That said, for one off bills and full control over formatting, the Markdown template above is hard to beat.Bill Your Next Client in Minutes
A clean invoice signals that you take your work seriously. Open edtr.md, paste the template above, swap in your line items, and export a professional PDF in a couple of minutes. No software to install, no subscription, just plain text that turns into a polished bill.