Loading tool…

Convert HTML to PDF

Got an exported web page, an email template or an HTML report as a file? PDFSpark reads its structure (headings, paragraphs, lists, tables, quotes, code and links) and lays it out as a clean, paginated PDF with page numbers. It doesn't load anything from the internet, run scripts or apply the page's CSS, so the result looks like a well-set document rather than a copy of the web page. For a page exactly as a browser shows it, use your browser's Print and Save as PDF.

Your file is processed by your own browser and never uploaded. Most online tools send your file to their servers and delete it later — this one never receives it at all.

Why use HTML to PDF

  • Markdown headings, emphasis, lists, quotes, code blocks, rules and tables
  • HTML files and pasted HTML, without running scripts
  • Clickable links in the PDF
  • A4 or Letter, portrait or landscape, narrow to wide margins
  • Sans-serif or serif text at 10, 11 or 12 pt, with page numbers
  • Pictures embedded in HTML as data: URLs
  • Live preview of the first page
  • Free, processed locally, never uploaded

Popular uses

  • Share a README or documentation page as a PDF
  • Print notes written in Obsidian, Joplin or another Markdown app
  • Turn an answer written in Markdown into a tidy handout
  • Save a simple HTML page you have as a file as a PDF

HTML to PDF: frequently asked questions

Can I convert a web page by its address?

No. PDFSpark never fetches anything from the web: open a saved .html file or paste the HTML. To keep a live page exactly as it looks, use your browser's Print and choose Save as PDF.

Is the page's CSS styling kept?

No. The HTML's structure is laid out with PDFSpark's own typography, in the typeface, size and margins you choose. Bold, italic, links, tables and headings are kept; colours, layouts and fonts from CSS aren't.

What happens to pictures?

Pictures embedded in the HTML as data: URLs are included. Pictures that point to a web address or another file aren't fetched, and the PDF tells you how many were left out.

Are scripts run?

No. Scripts, styles, forms and embedded media are skipped, so converting an HTML file can't run anything on your computer.

Is HTML to PDF free?

Yes. Markdown to PDF, which also converts HTML, is a free tool: you can convert 3 times a day without an account, and Pro or Lifetime removes the daily limit. Your HTML is never uploaded either way.

We use essential cookies to keep you signed in and remember your preferences. We do not use tracking or advertising cookies. How we use cookies