Illustration of HTML code brackets transforming into a printed PDF page with an arrow between them

PDF guides

How to Convert HTML to PDF Online

The Looty Tools HTML to PDF converter takes HTML you provide — pasted directly or uploaded as a file — and turns it into a downloadable PDF, entirely in your browser. This guide covers both input paths, what actually renders, and addresses the most common point of confusion up front: this tool does not go fetch a live webpage for you.

Ready to try the tool this guide describes?

Two ways to provide HTML

  • Paste HTML directly into the tool’s editor.
  • Upload an .html or .htm file.

How to convert HTML to PDF on Looty Tools

  1. Open the HTML to PDF tool at /tools/html-to-pdf.
  2. Paste your HTML into the editor, or upload an .html or .htm file.
  3. Select Convert to PDF.
  4. Download the resulting PDF.

What renders

  • Headings, paragraphs, and lists.
  • Tables.
  • Basic inline styling and colors.
  • Links, rendered as styled text (not clickable — see html-to-pdf-rasterized-output-explained).
  • Images hosted on the same origin or on a CORS-permitting host.

This is not a URL-fetch tool

HTML to PDF does not go and download a live webpage for you when you type in a URL, and that is a deliberate limitation rather than a missing feature. Browser CORS security means a client-side, browser-only tool has no safe, reliable way to reach out and fetch an arbitrary external website’s HTML directly — the same cross-origin protections that stop a malicious webpage from silently reading another site’s content also stop a legitimate client-side tool from fetching one on your behalf.

Instead of asking for a URL, the tool asks for the actual HTML: view a page’s source, or use your browser’s "Save Page As" to save a .html file, then paste or upload that source here.

How to Convert HTML to PDF FAQ

Can I just paste in a URL to convert a live webpage?
No. Browser security (CORS) prevents a client-side tool from fetching an arbitrary external webpage. Instead, view the page’s source or save it as an .html file in your browser, then paste or upload that here.
What HTML elements are supported?
Headings, paragraphs, lists, tables, basic inline styling and colors, links (rendered as styled but non-clickable text), and same-origin or CORS-permitting images.
Is my HTML uploaded anywhere?
Your HTML is processed locally in your browser and is not uploaded to Looty Tools. See html-to-pdf-rasterized-output-explained for the precise network-activity details when your HTML references external resources.
What is the maximum size or length I can convert?
Uploaded files are limited to 5 MB, pasted or file HTML input is limited to 500,000 characters, and the resulting PDF is limited to 50 pages.
Will links be clickable in the resulting PDF?
No. Every page of the output is an image, so links render as styled text but are not clickable. See html-to-pdf-rasterized-output-explained.
How do I get the HTML source of a webpage to paste in?
Use your browser’s View Page Source option, or Save Page As and choose the HTML file format, then paste or upload that source into the tool.

Related guides

Open the tool

Jump into HTML to PDF when you are ready to process your files.

← Back to all guides