Skip to content

HTML to PDF

Convert an HTML file or pasted HTML into a PDF.

Good to know

Converts HTML files or code you provide; live URLs cannot be fetched (browser CORS rules). Style sheets and CSS layout are not applied beyond simple inline styles, scripts never run, and only images embedded as data: URLs are included.

About this tool

HTML to PDF converts an HTML file, or HTML you paste in, into a tidy PDF with selectable text. It suits exported reports, simple web pages saved to your computer and HTML emails, rather than pages that rely on elaborate styling.

How to use it

  1. Choose an .html or .htm file, or paste HTML code into the box.
  2. Pick A4 or Letter pages and Narrow, Normal or Wide margins.
  3. Select Convert to PDF and read the notes, which list anything that was left out.
  4. Download the PDF. A file keeps its own name; pasted HTML is named after the page’s title where it has one.

Good to know

  • Pagewright converts HTML that you upload or paste; it does not accept website addresses. To convert a web page, save it as a file or copy its source code first.
  • Style sheets, both <style> blocks and linked CSS files, are not applied. Simple inline styles such as bold, italic, colour, size and alignment are used, so the layout is simplified.
  • Scripts never run. Only images embedded as data: URLs are included; images linked from other addresses are left out and counted in the notes.
  • Your files are processed in this browser tab and are never uploaded to a server. How your privacy is protected

Common questions

Why does the PDF not look like the page in my browser?

A browser applies all of a page’s CSS. This converter keeps the structure (headings, paragraphs, lists, tables and inline formatting) but not the full styling, so it reads well rather than matching the screen.

Is anything fetched from the internet during conversion?

No. Pagewright does not fetch external page resources, which is also why linked images and style sheets are not included.