HTML to PDF
Convert html to pdf online.
Renders sanitized HTML to raster PDF pages. Scripts, embeds, links and external resources are removed. Complex CSS/page breaks may differ; selectable HTML text is not retained.
What this tool does
Render supplied HTML into a printable document. Complex layouts and external resources may differ from the source browser page.
How to use it
- If supplying content as a file, select one source file (.txt,.csv,.json,.xml,.html,application/pdf).
- Set mode to one of: text-to-pdf, pdf-to-text.
- Set text / content.
- Set font size (points) (initial value: 12).
- Choose Process, inspect the result, then use the download control. A reported error means no successful output was produced.
Limits and result checks
Renders sanitized HTML to raster PDF pages. Scripts, embeds, links and external resources are removed. Complex CSS/page breaks may differ; selectable HTML text is not retained.
Common questions
Will scripts, images and external CSS run?
No. Active content, images, SVG and external resource elements are removed before rendering. Only permitted inline styling survives, so treat the output as a simplified printable representation.
Where can I read the data-handling details for HTML to PDF?
Inputs are processed in browser memory and are not uploaded by this plugin. Generated downloads remain on your device. The site privacy policy explains memory cleanup and hosting logs.
File processing and privacy · Report a problem
What HTML to PDF is used for
HTML is how web content is written; PDF is how it gets kept. Converting is how you archive a web page as a fixed document, turn a generated report or invoice template into a file you can email, or capture exactly how a page looked at a moment in time — for a record, a submission or an offline copy. It is also a standard step in development work, where receipts, tickets and certificates are built as HTML because it is easy to style, then delivered as PDF because it is easy to store and print.
Why the PDF does not always match the screen
A browser renders a page for a screen of a particular size, with live elements — menus, animations, cookie banners, content that loads as you scroll. A PDF is a fixed page. Conversion has to choose a page width, break the flow into pages, and decide what to do with elements that only exist interactively. Background colours and images may be dropped by print-style rules, wide tables can overflow, and anything that appears only after a click will not be there. Treat the first conversion of any new page as a draft: check the output page by page before the file is sent or archived.
Will links and images be included?
Images that are part of the HTML and reachable at conversion time are normally rendered into the PDF. Links may remain clickable in the output, but that depends on the converter and the reader — always test one link in the downloaded file if the links matter.
Can I convert a whole website this way?
No — this converts a single HTML document or page, not a site with its navigation, logins and linked pages. For archiving a site you would convert the pages that matter individually, understanding that interactive features will not survive in any of them.
Which should I share, the PDF or the HTML file?
Share the PDF when the reader just needs to read, print or file the content — it opens everywhere and looks the same. Share the HTML when the recipient needs to edit, reuse or publish the content itself.
Preparing your HTML before converting
The tool renders the HTML you supply, either as a file or as text you paste in. Start with clean, simple HTML: headings, paragraphs, lists and tables. Open the file in a browser first and check that it looks right. If it looks broken there, the PDF will not fix it.
Take out anything the tool strips away in any case. Scripts, embeds, external stylesheets and linked resources are removed before rendering, so a page that depends on them will come out different from the screen version. If some styling matters, move it inline, and keep it simple — only permitted inline styling survives the conversion.
Keep the layout simple. A single column with plain structure converts far more reliably than a page built from many nested boxes. Complex CSS and page breaks may differ from what the browser shows, so a simple source file gives you a predictable PDF. Check the result page by page before you send or archive it.
Choosing the right font size
The tool sets the font size in points, and the starting value is 12. Twelve points is a comfortable size for reading on screen and on paper. It suits most documents, because the text stays clear without taking up too much space.
A larger font makes the text easier to read, but it also makes the PDF longer. Each line takes more height, so a long document spreads across more pages. Use a larger size for a short printout, or for readers who need bigger text. A smaller font fits more on each page, but it risks readability. Text below about 10 points can strain the eyes, especially in print.
Test one conversion at 12 points first, then change the size only if the result looks too large or too small. Match the size to the reader and the use, not to the file. A report that will be printed can use a larger size, while a long document read on screen can stay at 12 points, because the reader can zoom in.
Page breaks and long documents
A browser shows a page as one long scroll. A PDF is a set of fixed pages, so the conversion has to break the flow into pages. Complex CSS and page breaks may differ from the browser view, and a heading or a table can land across a break in a way the screen version never showed.
Check the output page by page, especially where tables sit. Wide tables can overflow the page width, and a table that runs across a page break may split in the middle of a row. Keep tables narrow, and keep important blocks of text short, so a break does less damage when it falls in an awkward place.
For a very long document, think about the output before you convert. A long page becomes many PDF pages, and a mistake early on repeats through the whole file. Convert once, read the result, fix the HTML, and convert again. If the document is really long, splitting the source into sections and converting each one gives you smaller files that are easier to check.
What the PDF keeps — and what it drops
The PDF keeps the words and the basic structure of your HTML as a printable page. Simple inline styling may survive, so a plain document with headings and short paragraphs usually comes out looking much as it did on screen.
It drops the active and external parts. Scripts, embeds, links and external resources are removed before rendering, and complex CSS may differ from the screen version. The pages are raster images, so selectable HTML text is not retained. You cannot select, copy or search the words in the PDF the way you could on the web page.
That sets the right use for the result. The PDF is for reading, printing and archiving a fixed snapshot. It is not for editing or for reusing the text. Keep the HTML file as the editable original, and treat the PDF as the copy you share or file away.
Checking the result before you share it
Open the downloaded PDF and read it as the recipient would. Check the first page and the last page first: headings in place, tables complete, and no text cut off at the edge. Then flip through the middle pages and look for split tables and blocks that landed in the wrong place.
If something looks wrong, fix the HTML and convert again rather than patching the PDF. The PDF is a fixed copy, while the HTML is the file you can change. A second conversion from corrected HTML is quicker than editing pages by hand, and it keeps the shared file consistent with the source.
Privacy — your file stays on your device
Your HTML is processed in browser memory and is not uploaded by this plugin. The file you supply never leaves your device, and the downloaded PDF stays on your device too. The site privacy policy explains memory cleanup and hosting logs.
That makes the tool a safe choice for private HTML, such as an invoice template, an internal report or a draft page. You can convert it without sending it anywhere. When you finish, close the tab and keep the original HTML file, because the PDF is a fixed copy and cannot be edited back into HTML.
Frequently asked questions
Can I convert a web page by pasting its URL?
No. Supply the HTML itself, either as a file or as pasted text. The tool does not fetch pages from the web, so a URL on its own will not convert.
Will the text in my PDF be selectable or searchable?
No. The pages are raster images, and selectable HTML text is not retained. You can read and print the PDF, but you cannot select or search the words in it. Keep the HTML file if you need searchable text.
Can I convert a very long HTML document?
Yes, but think about the output. A long page becomes many PDF pages, so check the result page by page before you use it. For a very long document, consider splitting the source into sections and converting each one separately.
Does the tool keep my fonts and colours?
Only permitted inline styling survives, and external CSS is removed. Complex styling may differ from the screen version, so keep the styling simple and check the result in the downloaded file.