HTML to PDF
Turn HTML into a text-based A4 PDF
Free forever — no sign-up, nothing uploaded. Files never leave your device.
HTML to PDF
Turn HTML into a text-based A4 PDF
Drop your file here
or browse from your device
Browse filesdocument.pdf
1.2 MB
report.pdf
860 KB
100% private
Nothing is uploaded — everything runs in your browser.
Free forever
No account or payment required.
No sign-up
Open the tool and start using it right away.
Local processing
Processing time depends on your input and device.
About this tool
Paste HTML and download a paginated A4 PDF with real, selectable text — headings, lists, tables and all. Runs locally, nothing uploaded.
BrainCoder's HTML to PDF converter turns pasted HTML into a downloadable, paginated A4 PDF — entirely in your browser. It reads your markup directly as text: headings, paragraphs, ordered and unordered lists, tables, blockquotes, preformatted code, horizontal rules, bold, italic, code spans and line breaks all become real, selectable text in the PDF. Nothing is sent to a server.
This is a document converter, not a screenshot tool. Each run lays your content out across A4 pages with sensible margins, wraps long words, keeps headings with the text that follows them, and repeats table headers on every page a table spans. If your HTML has no <h1>, the document title you set is used as one.
It is built for invoices, reports, specs, changelogs, generated documentation and archived HTML emails. Because it works on text rather than pixels, advanced CSS and layout are simplified rather than reproduced: colours, custom fonts, borders, backgrounds, images, floats, grids, flexbox, positioning and inline styling are not carried over. Script and style blocks are removed, so the PDF never contains them. Each conversion is capped at 200 KB of input and 200 pages of output, and both limits are reported in the interface.
Key features
Everything you get with HTML to PDF — no premium upsell.
Convert HTML code to a paginated A4 PDF with real, selectable text
Understands headings, paragraphs, lists, tables, blockquotes, preformatted code and rules
Honours bold, italic and monospace spans, plus inline text-align on table cells
Keeps headings with the text below them and repeats table headers across pages
Shows the laid-out first page as text before you rely on the download
Reports dropped elements, replaced characters and the page cap instead of hiding them
Up to 200 KB of HTML and 200 pages per conversion
100% client-side — your HTML and the resulting PDF never leave your browser
How to use HTML to PDF
Follow the steps below to use the tool.
- 1
Paste or open your HTML
Type or paste markup into the source box, or open a .html file from disk. The input area shows how much of the 200 KB limit you have used.
- 2
Set the document title
Give the file a title. It becomes the PDF title metadata and, if your markup has no <h1>, the document's first heading.
- 3
Convert and check the report
Click 'Convert to PDF'. The page count, the file name and the first page as it was laid out appear underneath, along with any warnings about skipped elements, characters that had to be replaced, or hitting the 200-page cap.
- 4
Download or re-download
The PDF is generated and downloaded automatically. If you tweak the source and convert again, 'Download again' re-saves the last build.
Still free, still private — your files never leave your device.
Launch HTML to PDFFrequently asked questions
Quick answers before you launch the tool.
Related tools
Saved you searching — here are similar utilities.