Skip to content
FILEFORGE TOOL · DOCUMENT

HTML to PDF

Create a PDF from HTML content or a local HTML file.

Privacy by design. Files stay in your browser and are processed locally on your device—nothing is uploaded to a server.

Choose a file to get started

Select a file from your device or drag and drop it here.

Off by default so no external URLs are fetched. Inline data: images always render.
1,383 / 1,500,000 characters
Sanitized live preview (sandboxed)
Enter HTML markup or upload an .html file to preview the sanitized output.
Rendered inside a script-blocked sandboxed frame before PDF export.

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, inline style="" attributes, Flexbox, CSS Grid, tables, borders, padding, system fonts, and base64 data:image/* embedded images.
  • Remote assets blocked by default: External http(s):// stylesheets, @import rules, and remote image URLs are stripped by default so your browser makes zero unexpected network requests. You can opt in to remote http(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.