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. An .html file often only references its stylesheets, images and fonts, so anything stored outside the uploaded file may be missing from the PDF. In our test it also dropped the style block and even an image embedded as a data: address, so expect a plain, readable document that differs from the browser view. It suits saved reports, invoices and generated pages made mostly of text, lists and tables.

Transfers use HTTPS, and files converted on the free tier are deleted after 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.

report.html, our own 36,815-byte test page with a table, a list, two images, two links and a script

HTMLthe original, 36,815 bytes
36.8 KB
PDFfrom indox, 71% smaller, 1 page, 6.4 s from click to Completed
10.6 KB
The top of report.html in a browser: a red heading with a rule, a blue heading band, a bordered table and a yellow note box, enlarged
The same part in the PDF made by indox: plain headings, a table without borders and a note without its background, enlarged
Measured on indox.org on 5 November 2026: the HTML file we uploaded, opened in a browser, and page 1 of the PDF we downloaded. Drag the handle to compare the same part. The style block and the images did not carry over.

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 is one document that opens the same offline and on another computer, with the fonts its text needs inside it.

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

  • Text, headings, lists and table structure, with selectable text
  • Inline style attributes, such as a heading colour
  • A link to a web address, as a live link
  • 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
  • The style block and class-based CSS are dropped, so borders, backgrounds and heading rules from a stylesheet disappear
  • Images are dropped, including one embedded as a data: address, and the alt text shows instead
  • 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 plain HTML file

    Use headings, paragraphs, lists and tables, and put any colour you need in inline style attributes, which were kept in our test. Then drop that one .html 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 added the wrong file.

  3. 3

    Check the downloaded PDF for missing parts

    Scroll through for missing colours, borders and pictures. In our test only the alt text showed where images had been. If the look matters, move the colour into an inline style, or print the page to PDF from your browser instead.

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

You get a static snapshot of the HTML as a PDF with selectable text and embedded fonts. In our test the sample came out as one A4 page. Only the markup in the uploaded file is rendered, and its style block, images and scripts are not, so a plain structure of headings, lists and tables works best. Inline style attributes are kept.

  • 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; a paid plan does not change it.

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 kept for 24 hours after the job finishes, then deleted automatically.

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.
  • Style blocks and class-based CSS were dropped in our test, so colours, borders and backgrounds set that way disappear, and @media print rules in a style block are not applied either. Inline style attributes were kept.
  • Page size and breaks are decided by the converter. In our test the output was A4 and page-break-before: always was ignored, so a second section followed on the same page. A heading can end up separated from its paragraph.
  • Images were dropped, whether they pointed to a relative path or were embedded as a data: address. Only the alt text appeared in our test.
  • A link to an #anchor in the same page had no live link in the PDF in our test, while a link to a web address did.
  • In our Persian test the letters joined correctly, but dir="rtl" was not applied, so paragraphs were left-aligned and table columns ran left to right.

When the result is not what you expected

What you seeWhyWhat to do
The PDF looks unstyledThe style block and class-based CSS are dropped, and only inline style attributes were kept in our testMove the colours you need into inline style attributes, or print the page to PDF from your browser
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 were dropped in our test, including one embedded as a data: address, and only the alt text showedPrint the page to PDF from your browser if the pictures matter
Persian text is left-alignedThe dir="rtl" setting was not applied in our testCheck the PDF before sending it. The letters themselves joined correctly

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
  • 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

HTML vs PDF: what is the difference?

Compared onHTML filePDF from indox
What it isPlain text markup that describes a pageA fixed-layout document with set page dimensions, standardised as ISO 32000
Pictures and fontsReferenced by address, not stored in the fileFonts embedded in our test, while the pictures from our sample were not carried over
LayoutReflows to the windowFixed pages, and one A4 page for our sample
ScriptsRun in a browserNot run
Best forEditing and live displayReading, printing and sending

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 as fixed pages 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 November 5, 2026

Do it all with indox

View all 94 tools

HTML to PDF FAQs

Why does my PDF look unstyled or have missing images?

In our test the converter dropped the style block and every image, both one at a relative path and one embedded as a data: address, and showed only the alt text. Only inline style attributes were kept. If the look matters, put colours in inline style attributes, or print the finished page to PDF from your browser.

Do links still work in the PDF?

Usually yes for web addresses. In our test a link to an external address became a live link and the text stayed selectable, while a link to an #anchor in the same page did not. 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?

You cannot rely on it here. In our test the CSS property page-break-before: always was ignored and the sample came out as one A4 page. If exact page breaks matter, print the page to PDF from your browser instead.

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. Choose your browser's print when the look depends on a style block, images or page breaks. This converter suits text, lists, tables and links.

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.

Does Persian or other right-to-left text convert correctly?

In our test of a Persian page, the letters joined correctly and no characters turned into empty boxes. The dir="rtl" setting was not applied, so paragraphs were left-aligned and table columns ran left to right. Check right-to-left files before you send them.