HTML to PDF
Convert a .html file or pasted markup into a clean A4 PDF on our headless-Chromium server.
Quick answer: Convert a .html file or pasted markup into a clean A4 PDF on our headless-Chromium server.
Last updated
Frequently asked questions
- Why a server-side conversion?
- Browsers can already 'Print to PDF' from the page menu — but that doesn't help when you have an .html file you'd like to script-convert, or when the page references local CSS that doesn't exist when you print. We render in a clean Chromium with the full file accessible.
- Are images and external CSS loaded?
- Yes for inline and base64-embedded assets, and for CDN-hosted CSS/fonts that the headless browser can fetch. Local file references won't resolve, so embed the assets or use absolute URLs.
- What page size does the PDF use?
- A4 portrait by default with sensible 1cm margins. Add CSS <code>@page</code> rules in your HTML to override — for example <code>@page { size: Letter landscape; margin: 0.5in; }</code>.
- Can I convert a live URL?
- Not from this tool — only files you control. To convert a live URL, paste the rendered HTML into a file and upload that. This protects us from being used as an open URL fetcher.
- How big a file can I convert?
- Up to 10 MB of HTML and embedded assets. Render time scales with page size and is capped at 30 seconds.