1. Home
  2. PDF tools
  3. HTML to PDF

HTML to PDF

Turn an HTML email, export or report into a tidy PDF. Paste the code or open the file, check the preview and download a document with real text.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use HTML to PDF

  1. Paste HTML or open an .html file.
  2. Choose page size, orientation, text size and page numbers.
  3. Create and download the PDF.

Features

  • Headings, paragraphs, lists, tables, links and inline styles
  • Scripts and forms removed before converting
  • Page numbers and table of contents
  • Selectable text

Supported formats

You can open

  • HTML file
  • Pasted HTML

You get

  • PDF

Private by design

Your files are opened and processed by your browser on this device. They are never uploaded to openWorkstand or anyone else, so the HTML to PDF is safe for contracts, IDs, photos and work documents. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Stylesheets, CSS layouts (grid, flexbox, columns) and scripts are not applied: the PDF shows the content with clean default styling.
  • Images linked by a web address are left out; only PNG and JPG images embedded as data URLs are included.

Guide

Saving HTML as a clean, readable PDF

“HTML to PDF” means two different things. Sometimes you want a pixel-perfect copy of a web page, with its layout, colors and fonts. Sometimes you have HTML (an email, an export from a system, a page you wrote) and want a tidy document with the same text, headings and tables. This tool does the second, and does it without uploading anything. For the first, your browser’s own print function is the better tool, and this guide explains both.

What this converter does

It reads the structure of your HTML: headings, paragraphs, bold and italic text, lists, tables and links. It then lays out a new document on A4 or Letter pages with clean, consistent styling and real text you can select and search. Simple inline styles, such as a red text color or centred alignment, are kept where possible.

Because the layout is rebuilt, the PDF looks like a document, not like a website: no navigation bars, no cookie banners, no sidebars, and page breaks that don’t slice text in half.

What is removed, and why

Before anything is shown or converted, the HTML is cleaned:

  • scripts and inline event handlers, so pasted code cannot run,
  • stylesheets, <style> blocks and linked CSS,
  • forms, buttons and inputs,
  • frames, embeds, video, audio, SVG and MathML,
  • images that point to web addresses, including email tracking pixels.

PNG and JPEG images embedded as data URLs stay. A warning tells you how many images were left out.

When your browser’s “Save as PDF” is better

If the page relies on CSS for its look (multi-column layouts, cards, custom fonts, background colors) open it in Chrome, Edge, Firefox or Safari and choose Print → Save as PDF. That keeps the rendered design. Use this converter when you have HTML source rather than a live page, when you want the content without the website around it, or when the HTML comes from an email you would rather not open in a browser.

Typical sources of HTML

  • HTML emails: “view source” or save the message as .html, then convert it for your records.
  • System exports: reports from accounting, HR or monitoring tools that export HTML.
  • Hand-written pages and templates: documentation, letters or invoices written in HTML.
  • Rich text copied from a CMS: paste the HTML from the editor’s source view.

Options

Choose A4 or Letter, and landscape for wide tables. The text size and margins work as in a word processor. Page numbers appear at the bottom centre, and Contents page lists every h1 to h3 heading with its page number, which is useful for long exported reports.

A worked example: an exported report

  1. Open the .html file exported from a reporting tool.
  2. The preview shows the headings and tables; a warning says the company logo (a linked image) will be left out.
  3. Choose landscape, narrow margins and page numbers, and create the PDF.

Writing the content yourself? Markdown to PDF is quicker to type. For plain text with exact line breaks, use Text to PDF. To go from a PDF back to HTML for a website, see PDF to HTML.

Checked against the current version of the HTML to PDF on .

Troubleshooting

The file does not open

Check that it is one of the supported formats above and opens in another app. Damaged files and password-protected PDFs cannot be read until they are repaired or unlocked.

It is slow or stops on a very large file

Everything runs on your device, so speed depends on its memory. Close other tabs, use a computer rather than a phone, or split the file into smaller parts first.

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

Can I convert a web page address (URL) to PDF?

No. The converter works only with HTML you paste or open as a file, and it never fetches pages from the internet. To save a live web page exactly as it looks, open it in your browser and use Print → Save as PDF.

Why is my CSS ignored?

Stylesheets are removed for safety and because the PDF is laid out from the document structure, not from a browser layout. Inline styles such as color and text-align are applied where possible; layouts built with CSS grid, flexbox or floats are not.

Is it safe to paste HTML from an email?

Yes. Scripts, tracking pixels, forms and embedded frames are stripped before the preview is shown and before converting, and nothing is sent anywhere.

How do I keep tables readable?

Wide tables fit better in landscape orientation with narrow margins. Very wide tables can also be split into two before converting.

Why does my PDF not look like the web page?

The converter lays out the document structure (headings, text, lists, tables) with its own clean styling. Stylesheets, layouts built with CSS grid or flexbox, and scripts are not applied. For a pixel-exact copy, use your browser’s Print → Save as PDF on the page itself.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.