HTML to PDF

Render HTML code into a PDF using your browser's own print engine. Instant, local, free.

How to use this tool

  • Paste your HTML into the editor.
  • Click Preview to check the render.
  • Click 'Save as PDF' and choose a destination printer.
  • Done — a PDF is saved.

How it works

An iframe renders your HTML and triggers the browser print dialog, targeting the 'Save as PDF' printer.

Tips

  • Keep linked styles inline or same-origin — external resources may not load.
  • Set @page margins in a style tag for control.

Limitations

Rendering fidelity depends on the browser's print engine and available fonts.

Frequently asked questions

How does my HTML become PDF?

The HTML is rendered in a hidden frame and printed via the browser's built-in Save-to-PDF printer.

Does it need a server?

No. Everything is done client-side.

Will my CSS apply?

Most inline and basic CSS applies; specialized print CSS may behave differently per browser.