HTML to PDF
Create a PDF from HTML content or a local HTML file.
Choose a file to get started
Select a file from your device or drag and drop it here.
data: images always render.Supported CSS and asset handling
Your HTML is sanitized locally with DOMParser, rendered inside an isolated <iframe>, and converted to a paginated PDF using html2canvas and jspdf—no markup or files are ever sent to a server.
- Supported HTML & CSS: Standard semantic HTML5 elements, inline
<style>blocks, inlinestyle=""attributes, Flexbox, CSS Grid, tables, borders, padding, system fonts, and base64data:image/*embedded images. - Remote assets blocked by default: External
http(s)://stylesheets,@importrules, and remote image URLs are stripped by default so your browser makes zero unexpected network requests. You can opt in to remotehttp(s)images using the checkbox above. - Active scripts stripped:
<script>,<iframe>,<object>,<embed>, and inline event handlers (onclick,onerror, etc.) are always removed before previewing or rendering. - File size & memory limits: Local HTML files up to 10 MB (or up to 1,500,000 characters pasted directly) are supported to keep offscreen canvas rendering fast and within browser RAM limits.
Frequently asked questions
Why are external images or web fonts not shown by default?
To prevent tracking pixels and unauthorized network requests when opening untrusted HTML files, remote URLs are disabled by default. Embed images as data: URIs or enable Allow remote http(s) images if you trust the source.
Is any HTML content uploaded to a backend?
No. Sanitization, sandboxed previewing, canvas rasterization, and PDF assembly happen entirely inside your browser tab, and temporary download URLs are revoked automatically.
Implementation status: Scaffold only — no output is generated by this placeholder.