</>
HTML Formatter
Validate · Format · Beautify

HTML Tool

HTML to PDF

Paste your HTML, see a live preview, then open the browser print dialog to save as PDF. No server, no upload — works entirely in your browser.

html-to-pdf
HTML Input
Preview

How to save as PDF

  1. Paste your HTML into the input pane above.
  2. Click Open Print / Save as PDF — a new tab opens with your rendered HTML.
  3. In the new tab, press Ctrl+P (or ⌘+P on Mac) to open Print.
  4. Change destination to Save as PDF and click Save.

How it works

Paste your HTML and the tool opens it in a new browser tab fully rendered. Use the browser's native Print → Save as PDF to download — no server, no file upload required.

What it's good for

Invoices, reports, resumes, certificates, documentation pages, and any HTML content you want to share as a portable PDF file.

Print CSS tip

Add @media print rules to your HTML's stylesheet to control margins, hide navigation bars, and optimize layout specifically for PDF output.