Convert PDF · runs in your browser

HTML to PDF Converter

Paste HTML (an invoice template, an email, a report) and see it rendered at the exact page width. Pick paper size and margins, then download a PDF. Useful for developers testing print layouts and for anyone with an .html file to share.

Preview (178 mm content width)

Paper
Orientation
Margins

“Download PDF” captures the page exactly as previewed, with page breaks placed in gaps between content. “Print” uses your browser's PDF printer: choose “Save as PDF” as the destination to get searchable text.

Tips for print-friendly HTML

  • Use relative widths (100%, flex, grid) so content fits the page width shown above the preview.
  • Avoid fixed heights on long sections. Let content flow, and page breaks will land between blocks.
  • Inline your CSS in a <style> tag for predictable results.
  • Need several pages combined? Convert each, then join them with the PDF Merger.

Frequently Asked Questions

Can I convert a web page by its URL?

Not from here. Browsers don't let one website download another site's page (for security), so a URL converter has to run on a server. To save a live page, open it and press Ctrl+P (Cmd+P on Mac) → Save as PDF. To convert your own page, paste its HTML here or open the saved .html file.

Does it support CSS?

Yes. Styles in <style> tags and inline style attributes are applied, including flexbox, grid, web-safe fonts and backgrounds. External stylesheets and images load only if their server allows it. If something's missing, paste the CSS into a <style> block.

Does JavaScript in my HTML run?

No. The preview is sandboxed so pasted code can't run scripts. If your page builds its content with JavaScript, open it in the browser and use Print → Save as PDF instead.

What's the difference between 'Download PDF' and 'Print'?

'Download PDF' captures exactly what the preview shows and places page breaks in the gaps between content, but the text becomes part of an image. 'Print' hands the page to your browser's PDF printer, which keeps text selectable and searchable but follows the browser's own page-break rules.

Is my HTML sent to a server?

No. Rendering and PDF creation both happen in your browser.

Related Tools