HTML to PDF Converter
Convert HTML files or any public web page URL to PDF with a real Chromium engine. Also available as a REST API.
Drop your file here, or click to browse
Supported: .html .htm · up to 20MB
How to use / Why use this tool / FAQ
How to use
Upload an html file (up to 20MB) and click Convert — the page is rendered by a real headless Chromium browser, so CSS, web fonts, and layout come out exactly as they look in Chrome. The finished PDF shows in the embedded preview and downloads with one click. Need to convert a live web page instead of a file? Use the API's url mode: POST a public URL to /api/v1/convert/html-to-pdf and get the PDF back.
Why use this tool
Browser print dialogs add headers, break layouts, and differ between browsers. This tool renders your HTML with headless Chromium — the same engine that displays the page — so gradients, flexbox, grid, and custom fonts survive intact. It is the quickest way to turn an HTML invoice or report template into a shareable document, archive a designed page, or produce print-ready output from web content. Developers can automate the same conversion through the REST API, turning any HTML template into PDFs from scripts, cron jobs, or backend services without maintaining their own Chromium fleet.
FAQ
- Does it support CSS and JavaScript?
- Yes. The page is loaded in headless Chromium, which executes CSS and JavaScript before printing to PDF — what renders in Chrome is what you get.
- Can I convert a URL instead of uploading a file?
- Yes, via the API: send url=https://example.com to /api/v1/convert/html-to-pdf. Only public URLs are accepted — internal and private network addresses are rejected for security.
- What about images referenced in my HTML file?
- Images with absolute https URLs are fetched and included. Relative paths pointing to local files will not resolve — inline them as data URIs or use absolute URLs.
- Is this available as an API?
- Yes — both file mode and url mode via /api/v1/convert/html-to-pdf with a free API key. See the API docs for examples.