HTML to PDF Converter
Paste HTML and get back a clean, paginated PDF that keeps the document structure.
The HTML to PDF converter parses your markup on your device. Rendered invoices and customer reports often contain personal data, and none of it is uploaded.
Go the other way, PDF to HTML
About HTML to PDF
Printing a web page to PDF gives you the page — navigation, cookie bar, three columns of chrome and all. Often what you actually want is the content: the report an application generated, the invoice a template rendered, the article without the furniture. This converter reads the markup for its structure rather than its appearance. Headings, paragraphs, lists, block quotes, preformatted code, horizontal rules and tables all survive; stylesheets, scripts and layout are deliberately ignored. The result is a document that reads like a document, laid out on the page size you choose, built entirely on your device.
Features
- Reads structure from the markup: headings, lists, tables, quotes, code, rules
- Handles imperfect HTML — unclosed tags and stray markup do not stop it
- Character entities are decoded, so & and — come out right
- Tables keep their header row and repeat it across page breaks
- Scripts, styles and page furniture are dropped rather than rendered
- Drop an .html file, or paste markup and edit it in place
- Uses the document's own <title> for the PDF's stored title
How to use the HTML to PDF
- Paste your HTML, or drop a saved .html file onto the page
- Check the block count so you can see what structure was recognised
- Pick page size, margins, text size and typeface
- Convert, read the preview, and download
Example
Input
<h1>Quarterly summary</h1>
<p>Revenue grew across all three regions.</p>
<ul><li>Renewals up 14%</li></ul>
Output
A PDF with a large heading, one paragraph and a bulleted line — no page chrome, no stylesheet.
Structure is what carries over; the visual design of the original page does not.
Common errors & troubleshooting
- The PDF looks nothing like the web page it came from. — That is the intent. CSS is not applied — the tool rebuilds the content as a plain document. If you need a pixel copy of a styled page, print it from the browser instead.
- A page saved from a site produced hundreds of blank-looking blocks. — Saved pages carry navigation, footers and inline scripts. Paste just the article or report markup and the output tightens up immediately.
- Nested tables come out flattened. — A table inside a table cell is read as text within that cell. Restructure the markup into separate tables if the inner grid matters.
- Line breaks inside a paragraph were lost. — A <br> starts a new paragraph block here. Wrap genuinely separate lines in their own <p> elements for predictable spacing.
Frequently asked questions
- Does this send my markup to a rendering service?
- No. The markup is parsed and the PDF is written in this tab, which matters when the HTML is a rendered invoice or a customer report.
- Will my CSS be applied to the PDF?
- No. Fonts, colours and layout come from the page settings on this screen, not from the stylesheet — that is what keeps the output readable rather than reproducing a screen layout on paper.
- Can I convert a live URL rather than pasting markup?
- Not from here, because fetching a URL would mean a request leaving your machine. Save the page or copy its markup and paste that in.
- Are inline images in the HTML included?
- No. Only the alt text is kept, since the images sit at addresses the tool deliberately does not fetch.
- What happens to a form or an input element?
- Form controls have no meaning on paper, so they are skipped. Any label text around them is kept as ordinary content.
Related tools
- Markdown to PDF — Render Markdown — headings, lists, tables and code — as a PDF.
- Text to PDF — Turn typed or pasted text into a paginated, downloadable PDF.
- PDF to HTML — Convert a PDF into clean, searchable, responsive HTML.
- HTML Formatter — Beautify or minify HTML, format inline CSS/JS, and preview the result.
- HTML to Markdown — Paste HTML and convert it to clean Markdown live, with GFM tables, lists and code blocks.
- CSV to PDF — Lay CSV rows out as a bordered, paginated PDF table.
- PDF Header and Footer — Stamp a running header and footer onto every page.
All ArrayKit tools