🌐 HTML to PDF

HTML to PDF

Paste HTML markup or plain text and convert it into a downloadable PDF document.

HTML to PDF

Convert pasted HTML or plain text to PDF online for free, with no watermark, no signup, and works in any browser.

Stays in your browser

Processing runs on your own device. Your files are not uploaded to a server, so private documents stay private.

Paste HTML markup or plain text and turn it into a downloadable PDF. The page is rendered as a picture and cut into A4 pages, so the text in the PDF cannot be selected or searched; run OCR PDF on the result if you need that.

Good to know

  • Paste the HTML of a print-friendly version of the page if the site has one. It usually converts more cleanly than the full interactive layout.
  • Check for cut-off content on the right edge if the source page is wider than a standard page size.
  • Convert then compress if the page had many embedded images and the resulting PDF feels large.
  • Interactive elements (videos, embedded apps, JavaScript-driven content) won't function in the static PDF output.
  • Pages behind a login wall can't be converted directly since the tool can't authenticate on your behalf.
  • Complex responsive layouts may render differently than they appear in a live browser window.

Troubleshooting

  • "Could not fetch that URL from the browser (CORS restriction)": Most websites block being fetched directly from another site's browser tab for security reasons. Switch to the "Paste HTML" tab, copy the page's HTML (View Source or right-click → Inspect → copy the outer HTML), and paste it in instead.
  • The text in my PDF isn't selectable: This is expected — the page is rendered as a flattened image and placed into the PDF, so there's no live text layer. If you need searchable text, run OCR PDF on the result afterward.
  • The PDF is cut off or breaks mid-element: Long pages are sliced into fixed-height chunks per page, so a section can be split awkwardly across a page break — this is a limitation of the flattened-image approach.
  • Fonts or icons look different from the live page: External stylesheets, fonts, or scripts that require the original domain may not load correctly in the sandboxed preview used to generate the PDF.
  • "Conversion failed": Very large or deeply nested pages can occasionally exceed what the browser can render as a single canvas — try converting a shorter section of the HTML instead.

Frequently asked questions

PDFly preserves the page layout as closely as possible. Complex CSS, custom fonts, or dynamic content may appear slightly different.
Yes, if the HTML file and its required resources are available locally. External assets that aren't accessible may not appear correctly.
Static content converts best. Pages that rely heavily on JavaScript or live data may not render exactly as expected.
Standard HTML documents are supported. Unsupported or malformed HTML may produce incomplete results.