HTML to PDF
Paste HTML or write content and generate a PDF using your browser print engine. Input is sanitized.
Examples
See what this tool can do.
Turn a snippet into a PDF
Paste a styled HTML block and export a formatted PDF.
Save a receipt or invoice
Render invoice HTML into a clean PDF to keep or send.
Tips & tricks
Get the most out of it.
- 1Inline your CSS for the most reliable result.
- 2Embed images as data URLs so they always appear.
- 3For plain text, Create PDF is simpler.
About HTML to PDF
What this tool does
HTML to PDF renders HTML you paste — with basic styling — into a downloadable PDF using your browser's own print engine.
How to use it
- Paste or write your HTML.
- Preview how it looks.
- Generate and download the PDF.
How it works
The HTML is sanitised and rendered, then your browser's print-to-PDF engine produces the file, so fonts and layout match what the browser shows.
Important considerations
- External resources may not load; inline your styles and images for reliable output.
- Scripts are stripped for safety — this renders static content.
Privacy
Your PDF is processed entirely in your browser. The file is never uploaded to a server, which makes this safe for confidential contracts, statements and personal documents.
Related PDF tools
Frequently asked questions
Yes. Input is sanitised and scripts are removed before rendering, so only static content is produced.
