HTML to PDF converter
To convert HTML to PDF, choose an HTML file or paste the code below and click “Convert to PDF”. Headings, paragraphs, lists, tables and links become a PDF – in your browser, with no upload and no watermark.
Source: WHATWG – HTML Living Standard. Updated: .
How it is calculated
Converting HTML to PDF means setting the text of a web page or HTML document into a fixed file that opens and prints the same everywhere. This tool reads HTML code or an .html file in your browser, recognises headings, paragraphs, lists, tables and links and lays them out on pages itself. There is no upload, no sign-up and no watermark.
How it works
- Drop an HTML file here or choose one – or paste the code into the text box.
- Pick the page size (A4 or US Letter), orientation and margin.
- Click “Convert to PDF”, check the preview of the first page and download the PDF.
What is kept – and what is not
- Kept: headings h1 to h6, paragraphs, bold and italic, bulleted and numbered lists (also nested), tables, preformatted text, quotes, rules, links.
- Not kept: CSS (colours, fonts, positions, grids), JavaScript, images (only the alternative text appears), embedded frames and content loaded later. Everything is set in one standard font (Helvetica, or Noto Sans for special characters).
Limits
This suits texts, documentation, invoice and report HTML, e-mail text and exports. For a fully designed web page with images and layout, use “Print → Save as PDF” (Ctrl + P) in your browser.
- No web address is fetched – the code has to be a file or text. That keeps everything on your device.
- Up to 200 MB (file) or 30 MB of text. Characters the embedded font lacks (Chinese, for example) are replaced and listed.
Privacy
The file and the code never leave your device. Only the PDF library (pdf-lib, MIT licence) is loaded from this server. Next steps: format HTML, Word to PDF or merge PDF files.
Frequently asked questions
How can I convert HTML to PDF for free?
Drop the HTML file here or paste the code, choose the page size and click “Convert to PDF”. You download the PDF straight away – no account and no watermark.
Can I convert HTML to PDF without uploading anything?
Yes. Everything runs in your browser; neither the file nor the code is sent to a server.
Are colours, fonts and images kept?
No. The tool takes over the structure (headings, paragraphs, lists, tables, links) but no CSS and no images. For fully designed pages, “Print → Save as PDF” in the browser is better.
Can I enter a web address?
No. The tool does not fetch web pages. Save the page as an HTML file or copy the source code.
Do links stay clickable in the PDF?
Yes, links with http, https and mailto stay clickable and are underlined in blue.
Does it work with HTML invoice text?
Yes, as long as it consists of text, tables and lists. Logos and background colours are missing because images and CSS are not taken over.
Sources and legal basis
- WHATWG – HTML Living Standard
- Adobe – ISO 32000-1:2008 Document management – Portable document format (PDF 1.7)
- pdf-lib – Andrew Dillon (MIT)
- Noto Sans – SIL Open Font License 1.1 (Google Fonts, ofl/notosans)
- Open-source licenses of the libraries used (MIT, LGPL-3.0)
As of: · Editorial policy
Related tools
- HTML formatterHTML formatter: indent source code to make it readable, or minify it to a single line, with warnings about unclosed tags. Runs locally in your browser.
- Word to PDF converterWord to PDF: drop a DOCX and get a clean PDF of its text, headings, lists and tables – A4 or Letter, margins, font size, page numbers. No upload, no sign-up.
- Markdown to HTML converter: preview, HTML code, downloadMarkdown to HTML converter with live preview: headings, lists, tables and code following CommonMark. Clean HTML code to copy, safe with no scripts. Free.
- Merge PDF filesMerge PDF files into one: drop PDFs, JPG and PNG, drag them into order, pick pages like 1-3, 5, rotate and download. No upload, no sign-up, no watermark.
- TXT to PDF ConverterConvert TXT to PDF or paste text: choose page size, font, size, margins, line numbers and page numbers, with a preview. Free, in your browser, no upload.
- QR Code Generator – free and permanentQR code generator for links, Wi-Fi, contacts (vCard), email, SMS or phone – add colors and a logo, download PNG or SVG. Never expires, no tracking, no sign-up.
- Fill out a PDF formFill out a PDF form in your browser: type into fields or place text and an image anywhere on the page, then save as a new PDF. No upload, no sign-up, free.
- Dummy File GeneratorDummy file generator: create a test file with an exact size in bytes, KB, MB or GB as PDF, PNG, ZIP, text or random data, made and saved right in your browser.
- Change audio speedChange audio speed: make MP3, WAV or video sound faster or slower, with or without changing the pitch, plus volume. In your browser, no upload, free.