Skip to content
NGPDFs

HTML to PDF

Paste HTML or import an HTML file. NGPDFs parses it as inert structure, strips scripts, frames, forms, event handlers, and other active content, blocks external resources, and converts supported typography, lists, tables, links, page breaks, and embedded data images into a paginated PDF.

  • Processed locally in your browser
  • No watermark
  • No sign-up
  • Works offline

Choose a local HTML file or drop it here

HTML/HTM · scripts and external resources are blocked

Safe structural preview · first 80 blocks

Safe HTML to PDF

This source is parsed structurally. Scripts never execute, frames are removed, and external images are blocked.

Inline typography, lists, tables, and embedded data images are supported.

Compatibility report

NGPDFs reports what this browser-local renderer can reproduce; it does not claim pixel-perfect source pagination.

Preserved

  • headings
  • paragraphs
  • emphasis
  • lists
  • tables
  • links
  • inline colors
  • page breaks
  • embedded data images

Approximated

  • CSS layout
  • link annotations
PDF layout

Conversion runs in NGPDFs’ PDF worker. Scripts, macros, frames, and external resource loading are never executed.

How it works

  1. 1Paste HTML or open a local HTML file.
  2. 2The inert parser removes active content and refuses network resource loading.
  3. 3Review the safe preview plus preserved, approximated, and omitted features.
  4. 4Export through the shared local pagination worker.

Your privacy

This tool runs entirely inside your browser using JavaScript and Web Workers. Your document is never uploaded to any server — you can even disconnect from the internet and keep working once the page has loaded.

Frequently asked questions

Can uploaded JavaScript run?

No. Source HTML is parsed as data and script-capable elements are discarded without execution.

Does it reproduce every CSS layout?

No. This first local renderer supports document structure and a safe inline typography/page-break subset, not browser screenshots, flex/grid, or pixel-perfect print CSS.

Will it fetch web fonts or remote images?

No. Network resources are blocked by design. Embedded PNG/JPEG data images are supported.