HTML to PDF
Render HTML + CSS into a paginated PDF (server)
data: URIs.
Paste some HTML to get started.
Rendered by dompdf: tables, floats, absolute positioning and page-break CSS are supported. Flexbox, CSS grid and JavaScript are not — flatten those to blocks and tables first.
About HTML to PDF
Paste markup, get a document
Drop in an HTML fragment or a whole page — inline <style> blocks, tables, headings, lists, inline style="" attributes all work — pick a paper size, and download the paginated PDF. Useful for invoices, reports, certificates, and email templates you want as a file.
What renders, and what doesn't
Rendering is done by dompdf, so treat it as a good print stylesheet engine rather than a browser. Solid support for tables, floats, absolute positioning, borders, backgrounds, web-safe fonts, and page-break CSS. Not supported: JavaScript, flexbox, CSS grid, and modern layout primitives — if your markup depends on those, flatten it to tables and blocks first.
Remote resources are deliberately not fetched
This tool is public and anonymous, so it never opens a URL on your behalf. Images must be embedded as data: URIs; remote stylesheets, @import, remote fonts, and <script> are stripped before rendering. That is a security property, not a missing feature — a server that fetches whatever an anonymous visitor asks it to is a server that reads its own internal network.
What we do with your input
The markup is sanitised, rendered in memory, and streamed straight back. Nothing is written to disk and nothing is logged.
Frequently asked questions
Remote images are not fetched — the renderer never makes an outbound request. Embed images as base64 `data:` URIs (`<img src=\"data:image/png;base64,…\">`) and they render normally.
dompdf implements the CSS 2.1 print box model; flexbox and grid are not part of it. Rebuild the layout with tables, floats, or absolute positioning and it will render predictably.
No. Scripts are stripped before rendering, and the PDF itself is generated without embedded JavaScript. Render your dynamic content to static HTML first.
Yes — `page-break-before`, `page-break-after`, and `page-break-inside: avoid` are honoured, as are fixed-position headers and footers.
No. It is sanitised and rendered in memory, the PDF is streamed back, and nothing touches disk.
Embed this tool on your site
Drop a one-line iframe snippet into any blog, lesson plan, or knowledge base. Powered-by-Toolenza link included.
Embed this tool
Paste this snippet into any HTML page. The tool runs entirely in your reader's browser.
HTML to PDF
No reviews yet — be the first to share your thoughts.
- No reviews yet — be the first to share your thoughts.