Convert Markdown Table to PDF Online
Print a Markdown table as a PDF document. The table is read in your browser and never uploaded.
Drop a CSV or Excel file here
CSV · XLSX · XLS · XLSM · XLSB
Ready to download as a binary file.
How to convert a Markdown table to PDF
Three steps from checklist.md to a PDF.
1. Paste the table
Paste a Markdown pipe table or drop a .md file.
2. Check it in the grid
Clean up Markdown syntax in the cells: the PDF prints cell text literally, asterisks included.
3. Download PDF
Pick Portrait or Landscape and click Download PDF. data.pdf is generated in your browser.
Example: Markdown in, PDF out
A release checklist with bold text in one cell.
| Step | Task | Done |
| ---: | -------------------- | :-----: |
| 1 | Back up the database | **yes** |
| 2 | Run migrations | no || Step | Task | Done |
|---|---|---|
| 1 | Back up the database | **yes** |
| 2 | Run migrations | no |
The bold marker in **yes** is printed literally, with its asterisks. Only the table is printed, not the rest of the Markdown file; for a whole document, use a tool such as Pandoc.
What changes between Markdown and PDF
Page layout
The table is drawn on A4 pages, portrait or landscape. The header row (Step, Task, Done) is printed as a coloured table head and repeated at the top of every page; body rows are striped.
Fonts
The PDF uses the standard Helvetica font, which covers Western European characters. Text in other scripts (Cyrillic, Greek, Chinese, emoji) does not print correctly.
Inline Markdown stays literal
Cells are read as text, not rendered: **yes** keeps its markers in the PDF. An escaped \| inside a cell becomes a plain |.
When to convert Markdown to PDF
- Sharing a table from the docs with someone outside the repository.
- Printing a checklist or comparison table written in Markdown.
Markdown to PDF in JavaScript
A pipe table is easy to split by hand. Then jsPDF and jspdf-autotable, the libraries this page uses, draw the table.
import { writeFile } from 'node:fs/promises';
import { readFile } from 'node:fs/promises';
import { jsPDF } from 'jspdf';
import { applyPlugin } from 'jspdf-autotable';
const lines = (await readFile('checklist.md', 'utf8')).split('\n').filter((l) => l.includes('|'));
const cells = (line) => line.trim().replace(/^\||\|$/g, '')
.split(/(?<!\\)\|/).map((c) => c.trim().replace(/\\\|/g, '|'));
const header = cells(lines[0]);
const rows = lines.slice(2).map(cells); // lines[1] is the separator
applyPlugin(jsPDF); // adds doc.autoTable()
const doc = new jsPDF({ orientation: 'landscape' });
doc.autoTable({ head: [header], body: rows.map((row) => header.map((_, i) => String(row[i] ?? ''))) });
await writeFile('checklist.pdf', Buffer.from(doc.output('arraybuffer')));Like this page, the split skips the separator line and honours escaped pipes.
Frequently asked questions
Will the PDF look like the table on GitHub?
No. The PDF has its own table style: a coloured header row and striped body rows. Formatting markers inside cells are printed as text.
Can I make the PDF landscape?
Yes. Pick Landscape in the Orientation menu before downloading; it suits tables with many columns.
What if a row has fewer cells than the header?
It is read as it is, and the missing cells at the end of the row are left empty in the output.
Can I choose the page size?
The page uses A4. For US Letter or another size, build the PDF in code: new jsPDF({ format: 'letter' }) works with the snippet above.
Does checklist.md get uploaded when I convert it to PDF?
No. The table is read in your browser and never uploaded.