HTML to PDF
Turn HTML into a formatted PDF with real, selectable text.
Turn HTML Into a Real PDF Document
Most browser-based HTML-to-PDF tools take a picture of the page and wrap it in a PDF. The result looks right and behaves terribly: you cannot select a sentence, search does not find anything, screen readers see nothing, and a two-page document weighs a megabyte.
This converter lays the content out as a document instead, emitting real PDF text operators. The output is selectable, searchable, accessible and usually under 60 KB — at the cost of not reproducing CSS positioning, which a printed document does not have anyway.
Key features
- Real, selectable text — searchable in any reader, copyable, and readable by assistive technology.
- Structure that carries over — headings, paragraphs, bold and italic, bullet and numbered lists, quotes, code blocks, rules and simple tables.
- Clickable links — an
<a href>becomes a working link annotation in the PDF. - Four page sizes — A4, Letter, Legal and A5, with adjustable margins and body size.
- A preview of the layout — showing the blocks the engine will actually produce, not the raw HTML.
This tool runs entirely inside your browser using native Web APIs. Your files and text are never uploaded to a server, never logged and never shared with third parties.
How to use: HTML to PDF
- Paste your HTML
A fragment or a whole document. The preview lists the blocks the engine has recognised. - Check the preview
Anything missing from the list will be missing from the PDF, so it is worth a glance. - Set the page
Size, typeface, body size and margin. Page numbers are on by default. - Create the PDF
Download it. The text inside is real text.
Technical specifications
| Processing location | Entirely in your browser — no server round trip |
|---|---|
| Data uploaded | None. Files and text never leave your device |
| Price | Free — no account, no trial, no usage cap |
| Category | |
| Works offline | Yes, once the page has loaded |
| Browser support | Chrome 90+, Edge 90+, Firefox 90+, Safari 15+ |
| Interface languages | English, 中文, हिन्दी, Español, العربية |
Frequently asked questions
Why does my CSS layout not come through?
Because this lays content out as a document, not as a web page. Grid, flexbox, floats and absolute positioning have no equivalent in a single-column printed flow. Structure, emphasis and tables carry over; visual positioning does not. If you need a pixel-faithful capture, print the page from your browser instead.
Are images included?
No. Fetching a remote image would mean leaving your device, which is the one thing this site does not do. Images are noted in place so you can see where they were.
Which fonts are used?
The standard fourteen fonts every PDF reader has built in — Helvetica, Times and Courier. Nothing is embedded, which is why the files are so small. Your own webfonts cannot be reproduced.
Is it better than printing to PDF from my browser?
Different. Printing captures the page exactly as styled, including your CSS, but goes through your operating system. This produces a cleanly structured document with real text and no dependency on the print dialogue — and it never leaves the page.