Convert an HTML file to PDF

An HTML file — an exported invoice, a saved page, a report generated by a script — converts to an A4 PDF, ready to print, send or archive. The rendering honours the file's HTML and CSS.

Offline rendering, for safety

The file is rendered with no network access: no remote image, external stylesheet or local file is loaded. This stops a malicious HTML file from probing the server. For a good result the file must be self-contained: styles in a <style> tag, images embedded as data: URIs.

What isn't supported

JavaScript is not run: the page is rendered as a static document. A page that builds its content with JavaScript on load will therefore appear empty or incomplete.

Privacy

The file is deleted automatically 30 minutes after processing.

Frequently asked questions

Why don't my external images or stylesheet appear?
Rendering is deliberately offline: no external resource is fetched, so that an uploaded HTML file cannot make the server probe its network. Embed your images as data: URIs (base64) and your styles in a <style> tag inside the file.
Is my page's JavaScript run?
No. The file is rendered as a static document: scripts do not run. Only HTML and CSS are taken into account.
What is the maximum size?
5 MB. For a complex page, first save it as “web page, single file” from your browser.