PDFNinja

HTML to PDF

Paste HTML, a URL, or drop an .html file — get a pixel-perfect PDF. 100% in your browser.

HTML source
Live previewA4 · Portrait
Higher scale → sharper text and images, larger file.

Real CSS

Renders your styles, web fonts, images and layout exactly — using the browser's own engine.

100% Private

All rendering runs in your browser via html2canvas. Nothing is sent to a server.

Multi-page

Long pages are automatically sliced onto A4 / Letter / Legal with your chosen margins.

Frequently Asked Questions

Why can't I fetch some URLs?

Browsers block cross-origin fetches unless the target site sends CORS headers. When that happens, view source in the browser and paste the HTML into this tool.

Are external images and fonts preserved?

Yes when the resources allow cross-origin loading. Otherwise inline them (data URIs) or download and embed them in the HTML.

Is the text selectable in the PDF?

This mode captures the page visually, so text is rasterised. For a text-layer PDF, use our Markdown to PDF or Create PDF tools.

Is anything uploaded?

No. Rendering happens in your browser using html2canvas and jsPDF. Your HTML never leaves your device.

Can I control page breaks?

Long content is auto-paginated. To force a break, wrap content in a block with page-break-after: always in your CSS.

Related Tools