Paste the HTML
Paste the markup you want as a PDF, or open an .html file with the file button.
PDF and document tools
Convert HTML to PDF in your browser
The preview is sandboxed: scripts do not run and external requests are blocked.
Press Ctrl or Command and Enter to run the tool.
About this tool
HTML to PDF renders pasted HTML in a sandboxed preview iframe and opens the browser print dialog so you can save the result as a PDF. Output quality depends on the browser print engine, and no content is uploaded.
Need a printable copy of an HTML report, invoice, or recipe? This tool renders your HTML in a sandboxed preview and opens the browser print dialog, where you choose "Save as PDF". Everything stays on your device.
Built for daily work
How to use this tool
Paste the markup you want as a PDF, or open an .html file with the file button.
The preview updates live in a sandboxed frame, so scripts and remote requests cannot run.
Click "Print / Save as PDF". The browser shows the standard print dialog.
Select "Save as PDF" as the destination and save the file wherever you need it.
Key features
Uses the same rendering engine that prints any webpage, so output matches what the browser shows.
HTML is rendered in a sandboxed iframe, so scripts and external requests are blocked.
Everything happens locally; your HTML never leaves the device.
Margins, orientation, and scale are set in the familiar browser print dialog.
Practical use cases
For local tools, input is processed in your browser and is not sent to application analytics.
Data processing noticeTechnical details
Limitations and important notes
Frequently asked questions
No. The preview is sandboxed, so JavaScript and external requests are blocked. Static HTML and inline CSS render normally.
The print dialog applies print styles and page settings such as margins and scale. Tweak those settings in the dialog if the output differs.
Yes. The tool uses only your browser, so no connection is needed after the page loads.
No. Rendering and printing happen entirely on your device.
Related guides and solutions
Reports, invoices, and recipes written in HTML need a PDF form for sharing. The [HTML to PDF tool](tool:html-to-pdf) renders your markup in a sandboxed preview and uses the browser print dialog to save the PDF, so no software and no upload are involved.
Learn moreA practical guide to converting HTML to PDF with the browser print engine: previewing, print settings, and what the output keeps.
Learn moreA practical guide to converting Word documents to PDF with fonts, layouts, tables, and hyperlinks intact, using a local browser workflow.
Learn moreRelated tools
PDF and document tools
Convert Word .docx documents to PDF in your browser by extracting the text and laying it out on clean pages.
Open toolMarkdown and document tools
Prepare Markdown for browser print and PDF export.
Open toolPDF and document tools
Extract selectable text from PDF pages in your browser, with page range control and copy or download output.
Open tool