Sometimes you have content as HTML (an email template, an invoice generated by an app, a help article, a snippet from a CMS) and you need a plain document to file, print or attach. Browser printing works for full pages, but it drags along menus, ads and layout quirks. This tool takes just the content and sets it as a clean, readable PDF.
What gets converted
The converter reads the structure of your HTML and turns it into a simple document:
<h1>to<h6>become headings at matching sizes.- Paragraphs, line breaks, bold, italic and inline code keep their emphasis.
- Bulleted and numbered lists, block quotes and code blocks keep their layout.
- Links remain clickable in the PDF.
Styling such as colours, fonts, columns and backgrounds is deliberately ignored, which is what makes the result clean and consistent.
Safe with untrusted HTML
The HTML is parsed into an inert document. That means no script runs, no image loads and no stylesheet is fetched. You can safely convert HTML copied from emails, which often contain tracking pixels, or from unknown websites.
When to use something else
If you need the page to look exactly as it does in the browser, with images, tables and design, use your browser’s Print command and choose Save as PDF. This tool is for turning content into a tidy text document.
Everything runs locally in your browser.
How to use the HTML to PDF
- Paste HTML into the box, or open an .html file.
- Set the page size, font size, margins and title.
- Check the preview of the first page.
- Click Download PDF.
Features
- Converts headings, paragraphs, bold and italic text, lists, block quotes, code and links.
- Safe parsing: scripts don’t run and external images, styles and fonts aren’t loaded.
- Selectable, searchable text with working links.
- Page size, font size, margins and page numbers.
- Processed in your browser; your HTML isn’t uploaded.
Frequently asked questions
Will the PDF look exactly like the web page?
No. This tool converts the content and structure, such as headings, paragraphs and lists, into a clean document layout. CSS styling, colours, columns and images aren’t reproduced. For a pixel-perfect copy of a page, use your browser’s Print › Save as PDF.
Is it safe to paste HTML from an email or website?
Yes. The HTML is parsed as inert data: scripts never run and nothing is fetched from the internet, so tracking pixels and remote content stay blocked.
What happens to tables and images?
Each table row becomes a line of text with | between the cells, and images appear as [image: alt text]. Use browser printing for layouts that depend on tables or images.
Which characters are supported?
English and Western European characters, including accents and the euro sign. Others show as “?”, and the tool lists them before you download.
Written by Dewan Razib