HTML to PDF
Convert HTML documents, snippets, or reports directly into styled PDF documents with full dark mode & CSS preservation
HTML Content
Upload an .html file, or paste raw HTML code below
{{ ui['summaryTitle'] }}
{{ ui['summaryBody'] }}
Frequently Asked Questions
Does HTML to PDF keep background colors?
Yes. Both client-side and server engines keep background colors, dark themes and borders. Set the colors in your HTML's CSS.
Are dark mode themes and CSS backgrounds preserved?
Yes! Both client-side and server engines preserve background colors, dark themes, borders, and CSS layouts.
Can I convert wide horizontal timelines or reports?
Yes. Switch the Orientation setting to Landscape for wide horizontal cards, timelines, or dashboard reports.
Is my HTML uploaded to a server?
Not with the Client engine. It renders your HTML in your browser and nothing is uploaded. The Chromium Server engine uploads your HTML to our server to create the PDF.
What is the difference between Client and Chromium Server engines?
Client-side runs 100% privately in your browser. Chromium Server uses headless Chromium for native vector PDF output with selectable text.
Convert HTML code, rich text, and web reports into PDF format directly in your browser. Fast, private, and high-fidelity rendering without server dependencies.
How it works
- 1 Paste HTML or upload an HTML file.
- 2 Choose the page orientation and convert it.
- 3 Download the PDF. Background colors, borders, and CSS layouts are kept.
Use this html to pdf converter to turn HTML documents, snippets, and web reports into PDF files. Use Landscape for wide dashboards or timelines. The browser version runs entirely on your device. The server version uses headless Chromium to produce vector PDFs with selectable text.
HTML to PDF with background colors
Background colors, dark themes, borders and CSS layouts are kept when you convert HTML to PDF. Set them in the CSS of your HTML, for example a background-color on a div or the body.
If you need a dark page in the PDF, keep the dark background in the HTML itself. Both the browser and server versions keep it.
Related Document Tools
Frequently paired workflows for enhanced productivity
PDF to Word
Convert PDF to Word (.docx)
Compress PDF
Reduce PDF file size
Add Page Numbers
Add page numbers to PDF
Protect PDF
Add password protection to PDF