Convert

Convert HTML to PDF

Paste your HTML or choose an .html file and get a PDF of how it looks. The result is image based, and nothing is fetched from the internet or uploaded.

  • No upload
  • No signup
  • No watermark
  • Runs in your browser

Image based. The PDF is made of page pictures. Scripts, links and files from the internet are not loaded; use inline styles and data: pictures.

Up to 5 MB.

or

Select HTML fileOne .html file, up to 5 MB. Or drag and drop.

Processed in your browser. Your file never leaves your device.

Use this tool to turn HTML into a PDF. Paste your code into the box or choose an .html file, and it draws the page the way a browser would, cuts it into A4 pages and gives you a PDF to download. It suits invoices, certificates, receipts, email templates and simple pages you wrote yourself.

The result is image based: each PDF page is a picture of the rendered HTML, so the text in the PDF cannot be selected or searched, and a page break can fall through the middle of a line. For safety and privacy, nothing is fetched from the internet. Scripts, iframes, stylesheet links and pictures on other websites are removed, so use inline styles, a style block and pictures embedded as data: addresses. Everything runs in your browser and nothing is uploaded.

How it works

  1. 1

    Paste your code into Paste your HTML, or click Insert an example to see how it works. You can also click Select HTML file and choose an .html file.

  2. 2

    Read the Image based note, and check that your styles are inline or inside a style block.

  3. 3

    Click Convert to PDF and wait while the pages are drawn.

  4. 4

    Click Download PDF. Use Convert more HTML to start again.

Why use this tool

Nothing leaves your device

The HTML is drawn locally, and no scripts run and no outside files are loaded, so it is safe even for private invoices.

Looks like the page

Because it draws the rendered page, colours, tables, fonts available on your device and images embedded in the file appear as you expect.

Quick and simple

Paste, click, download. There is no account, no watermark and no page limit for ordinary documents.

Honest about the format

You are told that the result is image based, so you can pick the right tool when you need selectable text.

Good to know

  • External pictures, fonts and stylesheets are not loaded. Embed pictures as data:image addresses and put CSS in a style block.
  • Fonts come from your device. A font that is not installed is replaced by a similar one.
  • The page is drawn 714 pixels wide on A4, with margins. Use percentage widths or max-width so content fits.
  • Page breaks are placed by height, so a line of text can be cut between two pages. Add spacing or shorten sections if that happens.
  • Up to 5 MB of HTML and 40 pages are handled in one go.

Frequently asked questions

Can I enter a website address?

No. The tool never contacts other websites, which keeps it private. Save the page as HTML, or copy its code, and paste it here. Pictures and styles hosted elsewhere will not be loaded.

Why can I not select the text in the PDF?

Each page is a picture of the rendered HTML. That is how it keeps the look exact, but the text is not real text. Use Word to PDF for selectable text.

Do scripts run?

No. Scripts, iframes, objects and event handlers are removed before drawing, so the PDF shows the page as it looks without any scripting.

Why are my pictures missing?

Only pictures embedded in the HTML as data: addresses are shown. Pictures that point to files or websites are skipped, and you are told how many were left out.

Is my HTML uploaded?

No. It is processed in your browser and the PDF is made on your device.

Need something built just for your business?

Riznexia designs custom software, automation and FBR-ready invoicing for Pakistani businesses.