Skip to content

HTML to PDF

Turn an HTML file or pasted HTML into a clean PDF, safely — scripts never run.

AvailableRuns in your browserFree · No sign-up

HTML to PDF

Your HTML is read as data and never run: scripts, forms and embedded frames are ignored, and pictures or files from other websites are never loaded. Embed pictures as data: URLs to include them.

Orientation
Font

ReadyAdd some HTML first.

Your files are processed locally in your browser and are not uploaded to OZVILO servers.

How to use the HTML to PDF

  1. 1Upload an .html file, paste HTML into the editor, or try the sample.
  2. 2Choose the page size, orientation, margins and font style.
  3. 3Press Convert to PDF and check the preview.
  4. 4Download the PDF.

Examples

  • Email or newsletter

    Input
    Saved newsletter.html · A4 · Normal margins
    Result
    PDF with headings, paragraphs, tables and working links
  • Generated report

    Input
    Pasted HTML table · Landscape
    Result
    Landscape PDF with the table split across pages and its header repeated

Frequently asked questions

Is it safe to convert HTML I don't trust?

Yes. The HTML is read as data and never run. Scripts, event handlers, forms, frames and embedded objects are ignored, and nothing is loaded from other websites, so converting can't track you or run code.

Why are some pictures missing?

Pictures linked from other websites are never downloaded, for your privacy and safety. Pictures embedded in the HTML as data: URLs are included. The tool tells you how many pictures were skipped.

Does the PDF look exactly like the web page in my browser?

Not exactly. The tool lays out headings, paragraphs, lists, tables, pictures, links, colors and alignment from the HTML and simple inline styles. External style sheets, CSS layouts such as grids and flexbox, and web fonts are not applied.

Can I convert a web page from its URL?

No. Fetching pages from other websites would mean loading untrusted content and contacting third parties. Save the page as an .html file and upload it instead.

Is my HTML uploaded?

No. The PDF is created in your browser and your HTML never leaves your device.