HTML to PDF — Convert HTML Files & Snippets
Drop an HTML file or paste raw HTML. Convert to PDF, PNG, JPEG, or WebP. Useful for sharing self-contained HTML (the kind LLMs often produce) without recipients seeing a wall of code.
LLMs and code editors often produce self-contained HTML files — receipts, dashboards, generated reports — and dropping that .html into Slack or email shows the recipient a wall of code instead of the rendered page. Dropvert's HTML converter renders the HTML in a sandboxed iframe and exports it as PDF, PNG, JPEG, or WebP, no upload required.
How it works
3-step walkthrough
How it works
3-step walkthrough
- 1
Drop the file or paste the HTML
Drop a .html or .htm file (up to 10 MB), or switch to Paste mode and paste raw HTML straight in. Both modes feed into the same renderer.
- 2
Pick the output format
PDF (with A4, US Letter, or fit-to-content page sizes), PNG, JPEG, or WebP. Set quality for lossy formats and the render viewport width (800 px is usually right).
- 3
Convert and download
Dropvert renders the HTML in an off-screen sandboxed iframe, runs html2canvas, and produces the output Blob. PDF outputs auto-paginate for tall documents.
Why use Dropvert
Local-first, free, no upload required
Why use Dropvert
Local-first, free, no upload required
- Two input modes — drop a file or paste HTML inline.
- Four output formats: PDF, PNG, JPEG, WebP.
- PDF auto-pagination for tall documents — no manual slicing.
- Sandboxed rendering: pasted HTML runs in an isolated iframe with no access to your Dropvert session or DOM.
- Runs in your browser; the HTML and the rendered output never reach our servers.
Frequently asked questions
7 answered
Frequently asked questions
7 answered
- What kinds of HTML work well?
- Self-contained HTML with inline or base64 images, system fonts, and standard CSS (flex, grid, basic positioning). The kind of output Claude, ChatGPT, and code editors typically produce. Static documents, receipts, dashboards, screenshots of interfaces, generated reports.
- What doesn't work?
- Web fonts loaded from external CDNs may not render with their custom typeface (the underlying html2canvas can't always wait for them). External images load if they have CORS-friendly headers but may fail otherwise. Interactive elements (buttons, inputs, hover states) capture in their default state. Large videos or canvases inside the HTML are out of scope.
- How is the PDF paginated?
- Dropvert renders the HTML to a tall canvas, then slices it into page-sized strips and adds each strip as a separate PDF page. Content can split across page breaks (we don't look for natural break points), so for long documents the page boundaries may fall mid-paragraph. Use Fit-to-content if you want a single long page.
- Should I pick PDF or an image format?
- PDF preserves multi-page structure, looks crisp at any zoom, and is what most people expect when they receive a converted document. Image formats (PNG/JPEG/WebP) capture a single tall image of the entire content — useful for embedding in Slack, Notion, or any tool that handles images better than PDFs.
- How big a render viewport should I use?
- 800 px is the right default — matches a typical desktop document layout. Use 600 if your HTML is mobile-shaped, 1024 or 1280 for full-width dashboards. The viewport drives how the CSS lays out before capture; it does not affect the output resolution (capture is at 2× scale regardless).
- Is the pasted HTML uploaded?
- No. The HTML stays in your browser the whole time — rendering happens in an off-screen iframe in the same tab, html2canvas runs locally, and the resulting Blob is downloaded directly. We never see the source or the output.
- How does DOCX output compare to PDF?
- DOCX preserves text structure (headings, paragraphs, lists, tables, links, basic styling) and produces an editable Word document — useful when the recipient needs to mark it up or paste sections elsewhere. The trade-off is fidelity: complex CSS layouts (flex, grid, fancy positioning) flatten to plain paragraphs because Word can't represent them. PDF preserves the visual layout exactly but isn't editable. Pick DOCX when the recipient wants to edit; PDF when the visual matters.
Related tools
5 suggestions
Related tools
5 suggestions