HTML to PDF
Turn an HTML file, pasted HTML or content copied from a webpage into a PDF.
①Select file→②Convert→③Download
Convert HTML files, pasted HTML or content copied from a webpage to PDF for free, without uploading anything. The page is drawn as a picture on A4 pages, so the text in the PDF cannot be selected.
How to convert HTML to PDF
- Upload File: takes a .html or .htm file and applies its own style block and style attributes. Images or stylesheets linked from beside it on your disk do not come through.
- Paste HTML: for code you have rather than a file. A style block in it is applied, and scripts are removed before anything is drawn.
- Paste from Web: text and tables come through, and a picture from another site only if that site allows it. Copy from your browser's reader view to leave out ads and menus.
- Convert to PDF: draws the page as a picture on A4 portrait sheets with 15 mm margins. Text cannot be selected or searched, and shadows or filters can come out simpler.
What you get
- Accurate HTML Rendering - Tables, images, lists, and styled content are faithfully rendered in the PDF
- CSS Support - The document's own style block and inline style attributes are applied, so the PDF looks like the page
Frequently asked questions
How accurate is the HTML to PDF conversion?
Your browser lays the page out with the fonts on your own device, and the tool draws that layout onto A4 pages. Everyday documents come out looking like the page: headings, tables, lists, images and colours. Two things are worth knowing. Elaborate CSS such as shadows, filters and transforms can come out simpler, and the page is drawn as a picture, so the text in the PDF cannot be selected or searched. A converter that runs on a server has the opposite trouble: it renders without your fonts.
Can I convert HTML files containing local images and stylesheets?
Only the ones the file carries itself. A page open in a browser cannot read the files sitting beside it on your disk, so an image or a stylesheet linked by a relative path does not come through; that is a limit of the browser, not of this tool. What does come through: the rules in the document's own style block and in style attributes, and images embedded as data URLs. Scripts are removed. An image with a web address in the markup is requested from its site and drawn only if that site allows other pages to use it, otherwise it is left out; one named only in the CSS is left out rather than fetched from that server.