Free HTML to PDF converter

Get one PDF with fixed pages from your HTML file, with text you can still select and links that usually still work.

Converting HTML to PDF renders the markup once and freezes the result onto fixed pages, giving you a single file that prints and shares predictably. The thing to know: an .html file often only references its stylesheets, images and fonts, so anything stored outside the uploaded file may be missing from the PDF.

Transfers use HTTPS, and files converted on the free tier are deleted within 24 hours, so the result is not a long-term archive. Quality depends on the source file, so open the PDF file once before you share it.

Need more PDF options? Open the PDF Converter hub.

FromHTMLLossless

HTML (HyperText Markup Language)

The markup language of web pages. An HTML file is plain text describing structure, and it usually points to separate stylesheets, images, fonts and scripts. It has no page size, so a browser lays the content out to fit whatever window displays it.

ToPDFLossless

PDF (Portable Document Format)

A fixed-layout document format created by Adobe and standardised as ISO 32000. Each page has set dimensions, and fonts and images can be embedded in the file, so it looks the same on any device and prints predictably.

Why use indox to convert HTML to PDF?

One file in place of a page and its parts

A web page is markup that points to separate stylesheets, images and fonts. The PDF flattens whatever could be loaded into a single document that opens the same offline and on another computer.

Text stays text and links usually stay links

The PDF normally keeps real text that can be selected, searched and copied, and ordinary hyperlinks usually remain clickable. Scripts, media players and form submission belong to the browser and are not carried over.

Generated reports converted in batches

Reports produced by a script or template can be added several at a time. Each HTML file returns its own PDF, which you can download, share with a link or convert again to another format.

What happens to your page

Stays

  • The text, images and styling that the HTML file itself contains
  • Your original HTML file, which is not touched

Changes

  • Paging: a continuous page is cut into fixed pages, so long sections and tables can split at a page boundary
  • JavaScript is not run: the renderer has no JavaScript, no user interaction and no live rendering
  • Anything the file only points to, such as a stylesheet or an image at a relative path, is not in the upload
  • The result is a page-oriented document, meant for reading and printing

How do I convert HTML to PDF online?

  1. 1

    Add a self-contained HTML file

    Inline the CSS and embed images as data URIs so the .html file carries its own assets, then drop that one file on the box.

  2. 2

    Confirm the output and render the page once

    When you confirm PDF and start the conversion, the markup is rendered once and frozen. Cancel the running job if you notice an asset you forgot to embed.

  3. 3

    Check the downloaded PDF for missing parts

    Scroll through for unstyled text, empty image boxes and headings separated from their paragraphs. If something is missing, embed that asset in the HTML and convert again.

Placeholder for the HTML to PDF demo, which will show a real conversion

What do I get from indox's HTML to PDF converter?

You get a static snapshot of the HTML on pages of one fixed size. Fonts and images that could be loaded are embedded, and long sections, tables and images are split at page boundaries. Only what the uploaded file contains or can reach is rendered, so assets on relative paths and content a script builds after loading may be absent. Print stylesheets in the file can change the look on purpose.

  • A single PDF that opens the same offline
  • Text that normally stays selectable and searchable
  • Ordinary hyperlinks that usually stay clickable
  • No scripts, media players or working forms in the result
  • Rendered on indox infrastructure, with nothing installed on your device
The indox HTML to PDF converter: drop a file or choose one to convert it to PDF

What are the limits for HTML to PDF?

Size

The upload box shows the live size limit before you add a file. Signing in raises it, and paid plans raise it further.

Formats

HTML in, PDF out. Pick another output on the converter if you need a different format.

Privacy

Files are encrypted in transit over HTTPS and processed on indox infrastructure.

Deletion

Free-tier files are deleted automatically within 24 hours after the job finishes.

Limits worth knowing

  • A lone .html file carries no external assets. Stylesheets, images and web fonts referenced by relative paths are not inside it, so the result can look unstyled or lack pictures.
  • Content that a script builds after loading, common in single-page apps, may be absent or incomplete, because the saved markup does not contain it.
  • Print stylesheets (CSS @media print rules) can change the look on purpose, hiding menus or backgrounds, so the PDF may differ from what you saw on screen.
  • Page breaks are decided by the renderer. Wide layouts may be scaled down or clipped, and a heading can end up separated from its paragraph.

When the result is not what you expected

What you seeWhyWhat to do
The PDF looks unstyledThe stylesheet is a separate file at a relative path and was not part of the uploadPut the CSS inside the HTML file and convert again
Content that a script builds is missingThe renderer does not run JavaScript, so only the markup in the file is drawnPrint the finished page to PDF from your browser instead
Pictures are missingImages at relative paths are separate files and were not uploadedEmbed the images in the HTML file, for example as data: URIs, and convert again

What do the free and paid plans add?

Free

  • All converters
  • Daily credit refresh
  • Email support

Basic

  • Access to all features
  • AI Extract
  • Priority conversions
  • Email support
Highest priority

Premium

  • Everything in Basic
  • Highest priority queue
  • Larger file limits
  • Priority support

Pay-As-You-Go

  • No subscription
  • Credits never expire
  • Opt-in auto-refill
  • Access to all features
See prices
Related conversionsReversePDF to HTML

Who can use a HTML to PDF converter?

  • People filing invoices and receipts

    An invoice, receipt or order confirmation exported as HTML has to become a format that accounting software and email attachments accept.

  • Developers generating reports

    Their script or template outputs HTML, but the person receiving the report expects a document, not a web file.

  • Anyone archiving a saved page

    They want a saved page to read the same after the original site changes or disappears, so they keep it as a PDF.

When to use it

  • Saving an invoice, receipt or order confirmation exported as HTML into a format that accounting software and email attachments accept.
  • Printing an article or report with predictable page breaks instead of relying on each browser's print dialog.
  • Sending a report generated by a script or template to someone who expects a document, not a web file.
  • Archiving a saved page so it still reads the same after the original site changes or disappears.

Where can I read more about converting files?

Sources

Facts checked on October 16, 2026

Do it all with indox

View all 123 tools

HTML to PDF FAQs

Why does my PDF look unstyled or have missing images?

Usually because the HTML file refers to files that were not uploaded with it. Stylesheets, pictures and fonts are normally separate files linked by path, and a single .html contains only those links. Assets addressed by full public web addresses have a better chance of loading than relative paths. Inlining the CSS and embedding images as data URIs avoids the problem.

Do links still work in the PDF?

Usually yes. Standard hyperlinks to web addresses are normally carried into the PDF as clickable link annotations, and the text stays selectable. Links that depend on JavaScript, such as buttons that open a menu or load more content, do nothing, and relative links that pointed to other local files will no longer resolve.

Will JavaScript, videos and forms work after converting HTML to PDF?

No, a PDF made from a web page is a static snapshot. Scripts do not run inside it, embedded video and audio appear as a still frame or an empty box at best, and form fields generally become plain drawn shapes, not fillable inputs. Whatever was visible at the moment of rendering is all that is kept.

How do I control where page breaks fall?

Page breaks are governed by CSS in the HTML itself. Properties such as break-before, break-after and break-inside (or the older page-break equivalents), plus an @page rule for size and margins, tell a renderer where pages may split. Support varies between rendering engines, so test with your own file before depending on an exact layout.

Is converting HTML to PDF the same as printing to PDF from a browser?

It is the same idea, and results are often close but not identical. Both render the markup and paginate it. A browser printing a live page has every asset already loaded and your login session, while a converted file only has what the HTML contains or can reach, and different engines space text slightly differently.

Can I turn the PDF back into HTML later?

You can, but you do not get the original markup back. A PDF records where each glyph and image sits on a page, not headings, paragraphs or the responsive layout, so a converter has to guess the structure. Keep the source HTML if you expect to edit the content again, and treat the PDF as the output copy.