Skip to the content

Contact usFree tools · No signup · Files stay on your device

HTML to PDF Converter

Turn HTML code or a saved web page into a clean PDF without installing anything. Everything is done in your browser, so your HTML is never uploaded. It makes a tidy document version, not a screenshot of the page.

  • PrivateYour PDF never leaves this device
  • No uploadsProcessed in your browser, not on a server
  • 100% freeNo signup, no watermark, no trial
  • UnlimitedUse it as often as you like, no daily caps

How we protect your privacy →

HTML

PDF options

Headings, paragraphs, bold, italic, underline, colours, links, lists, tables (header row in bold), quotes, code and embedded (data:) PNG/JPG pictures are kept. Inline styles and simple <style> rules (by tag, class or id) are used for text formatting. CSS layouts, web fonts, backgrounds and pictures loaded from the web aren't reproduced, so you get a clean document version of the page. Converted in your browser — nothing is uploaded.
Was this tool helpful?

More than one job for these files? merge, arrange, number, watermark, compress and protect in one go, without downloading in between.Continue in PDF Studio

How it works

How to use the HTML to PDF.

3 short steps. Nothing to install, nothing uploaded.

  1. 1

    Paste your HTML into the box, or click “Open file” and choose a .html or .htm file.

  2. 2

    Pick the page size, margins, font, text size and whether to add page numbers.

  3. 3

    Click “Convert to PDF & download”; the PDF is saved and shown with its page count.

Guides

Guides for HTML to PDF

All

Text to PDF: the complete guide to converting TXT files to PDF

How to convert plain text or a TXT file to PDF in your browser: Paragraphs or Exactly as typed layout, title, page size, margins, page numbers and…

RTF to PDF: the complete guide to converting WordPad and TextEdit files

How to convert an RTF file to PDF in your browser: save a WordPad or TextEdit file as .rtf, what formatting is kept, what is left out, and how to fix…

PDF to HTML: the complete guide to turning a PDF into a web page

How to convert a PDF with real text into clean HTML: headings, lists and tables, full page or body only, page marks, preview and download, and what is…

Markdown to PDF: the complete guide to converting MD files

How to convert Markdown to PDF in your browser: what syntax is kept, page size, margins and font options, how tables, code and links behave, and fixes…

HTML to Word: the complete guide to saving HTML as DOCX

How to turn HTML code or a saved web page into an editable Word .docx: choose the font, size, page and margins, see what is kept, and fix missing…

HTML to PDF: the complete guide to saving HTML as a PDF document

How to turn pasted HTML or a .html file into a PDF in your browser: what is kept, which inline styles are read, how tables, links and pictures behave.

Page 1 of 20
Questions

Frequently asked questions.

Quick answers about the HTML to PDF.

Can I convert a web page by its URL?
Not here. A browser page can't read other websites because of security rules, and we don't fetch pages for you. Open the page, use Save As (Ctrl+S) to get a .html file, or copy its source, then paste it here. For a pixel-exact copy of a live page, use your browser's Print and choose Save as PDF.
Will the PDF look like the web page?
It looks like a clean document, not the web page. Headings, paragraphs, bold, italic, underline, colours, lists, tables, quotes and code blocks are kept. CSS layouts (columns, grids, floats), web fonts and background colours or images are not reproduced.
What happens to pictures?
Pictures embedded in the HTML as data: URLs (PNG and JPG) are placed in the PDF. Pictures that load from a web address or a relative file path can't be fetched, so their alt text is used instead and a note tells you how many were left out. GIF, WebP and SVG pictures are also skipped.
Are the links clickable in the PDF?
Yes. Links that start with http://, https:// or mailto: stay clickable in the PDF. In-page links (to #section) jump to that element in the PDF. Relative links to other files keep their text but have no destination.
Are scripts and styles run?
No. The HTML is only read, never run: scripts, iframes and form controls are ignored, and hidden elements stay hidden. Inline styles and simple <style> rules (by tag, class or id) are read for text formatting only.
Is my HTML uploaded anywhere?
No. The HTML is read and the PDF is made inside your browser, so the code and the PDF stay on your device.