← Back to Everything PDF & Documents
HTML to PDF
Convert HTML files or pasted HTML into a downloadable PDF.
Checking tool availability…
HTML to PDF processes files locally in your browser.
Convert HTML files or pasted HTML into a downloadable PDF
Paste HTML or upload an .html/.htm file and get back a downloadable, paginated PDF. Rendering happens locally in your browser, inside an isolated frame, so the page you paste in can never affect the Looty Tools site itself.
How to convert HTML to PDF
- Paste HTML, or upload an .html/.htm file.
- The tool sanitizes the markup and renders it inside an isolated frame in your browser.
- Convert to PDF.
- Download the resulting, paginated .pdf file.
What to expect in the output
- Each PDF page is a rendered image of your HTML, split automatically to fit standard A4 pages.
- Output text is not selectable or searchable, and links are not clickable — this is an image-based rendering, not a text-reflow conversion.
- Rendering happens inside an isolated, sandboxed frame specifically so pasted CSS cannot affect the tool page itself.
- This is not a URL-fetch tool: browsers block cross-origin page fetches (CORS), so a client-side tool cannot reliably or safely retrieve another site’s HTML for you. Paste the HTML or upload the file instead.
Browser privacy
- Your HTML is processed locally in the browser and is never uploaded to Looty Tools.
- Externally referenced images, fonts, or stylesheets in your HTML may still cause the browser to make network requests to fetch them — this tool can work entirely locally only when your HTML is self-contained (inline or data-URI images and fonts).
- Conversion results remain on your device.
Limits
- Pasted HTML is limited to 500,000 characters; uploaded .html/.htm files must be 5 MB or smaller.
- Output is capped at 50 pages.
- Images must be same-origin or served from a host that permits cross-origin (CORS) access to render — otherwise that area of the page is left blank.
- Complex CSS (heavy flexbox/grid layouts, animations), remote web fonts, and any
<script>content may not render, or may be stripped entirely.
Related PDF tools
- PDF EditorAdd text, signatures, drawings, and shapes to a PDF in your browser.
- Text to PDFTurn plain text into a clean PDF document.
- Markdown to PDFConvert Markdown content into a formatted PDF.
Guides
- How to Convert HTML to PDFTurn pasted or uploaded HTML into a downloadable PDF in your browser, and why this is a paste-or-upload tool rather than a website-fetching tool.
- HTML to PDF Rasterized OutputThe actual rendering pipeline behind HTML to PDF — sanitized HTML rendered in a sandboxed frame, then screenshotted into page images — and what that means for text selection, links, and network activity.
- HTML to PDF Supported ElementsA practical reference for what reliably renders in HTML to PDF's output, what gets stripped for safety, how CORS-blocked images behave, and the exact file-size, character, and page limits.
HTML to PDF FAQ
- Is my HTML uploaded anywhere?
- The HTML itself is processed locally in your browser and is never uploaded to Looty Tools. However, if your HTML references external images, fonts, or stylesheets, the browser may still make network requests to fetch them. This tool can work entirely locally only when your HTML is self-contained — inline or data-URI images and fonts, with no external references.
- Is the resulting PDF text selectable or searchable?
- No. Each page is rendered as an image, so text is not selectable or searchable and links are not clickable in the output PDF.
- Why don’t some of my images show up?
- Images must be same-origin or served from a host that permits cross-origin (CORS) access to render in the output. Images that fail this check appear as a blank area instead of erroring out the whole conversion.
- Will complex layouts and fonts render exactly?
- Complex CSS (heavy use of flexbox or grid, animations), remote web fonts, and any <script> content may not render, or may be stripped entirely. This tool aims for a reasonable visual approximation, not pixel-perfect fidelity for every possible HTML/CSS feature.
- Why does rendering happen inside an isolated frame?
- Pasted or uploaded HTML can include arbitrary CSS. Rendering it inside an isolated frame means that CSS can never leak out and affect the Looty Tools page itself, even though the underlying content is otherwise sanitized against scripts.
- Can I convert a live web page by URL instead of HTML?
- No, this tool only accepts pasted HTML or an uploaded .html/.htm file — it does not fetch a URL for you. Browsers block cross-origin page fetches (CORS), so a client-side tool cannot reliably or safely retrieve another site’s HTML on your behalf.
- What is the maximum size and page count?
- Pasted HTML is limited to 500,000 characters, and uploaded .html/.htm files must be 5 MB or smaller. The rendered output is capped at 50 pages.