To convert HTML to PDF, paste your markup into the PDFNova Text and HTML to PDF tool, or open an .html file from your device, and download a paginated PDF. It is built for simple HTML such as headings, paragraphs, lists and basic tables. For a complete live web page with its full design, your browser’s own print to PDF option is the better route, and this guide covers both.
Two different jobs that share one name
People searching for HTML to PDF usually want one of two things, and the right method is different for each.
| What you have | Best method | Result |
|---|---|---|
| A snippet or file of simple HTML you wrote or generated | Text and HTML to PDF | A clean, paginated document built from your tags |
| Plain text with no tags | Text and HTML to PDF | A simple paginated PDF of the text |
| A live web page with styles, menus and images | Your browser’s print to PDF option | A snapshot of the page as the browser shows it |
| A page that only works after you log in | Your browser’s print to PDF option | A copy of what you can see while signed in |
The difference matters. A modern web page depends on style sheets, scripts and fonts loaded from many places. A simple converter does not run all of that. Simple, self-contained markup, on the other hand, converts quickly and predictably.
How to convert HTML to PDF with PDFNova
- Open Text and HTML to PDF in a modern browser.
- Paste your HTML into the tool, or open an .html file from your device.
- Check that the content is complete and the tags are closed properly.
- Create the PDF. The tool flows the content across pages.
- Download the file. It saves straight to your device.
- Open the PDF and review each page, paying attention to where the page breaks fall.
PDFNova processes files in your browser, so your documents are not uploaded to a server. That is useful when the HTML is an invoice, a report with customer details or an internal document.
Write HTML that converts cleanly
You do not need to be a developer. A handful of basic tags is enough to produce a well structured document.
- Headings: use <h1>, <h2> and <h3> for titles and section names.
- Paragraphs: wrap each paragraph in <p> and </p>.
- Emphasis: use <strong> for bold and <em> for italics.
- Lists: use <ul> for bullets or <ol> for numbers, with each item inside <li>.
- Tables: use <table>, with <tr> for rows, <th> for header cells and <td> for data cells.
Keep it plain. The simpler the markup, the more faithfully it converts. These habits help:
- Close every tag you open. An unclosed tag can change everything after it.
- Keep tables narrow. A table with many columns may not fit across a page.
- Do not rely on scripts, embedded video, forms or interactive menus. A PDF is a static document.
- Do not depend on external style sheets or web fonts. Treat complex styling as something that may not carry over.
- Test with a short sample first, then convert the full document.
Saving a full web page as PDF
When you want a copy of a page you are viewing, such as a receipt, a booking confirmation or an article, use the print function built into your browser and choose to save as PDF instead of sending to a printer. This is available in modern browsers on computers and phones, though the exact menu differs between them.
A few tips for a cleaner result:
- Wait for the page to finish loading, and scroll to the bottom first so that images lower down have loaded.
- Look for a print or “printer friendly” button on the page itself. Receipts and tickets often have one, and it removes menus and adverts.
- Check the preview. If the page is cut off at the side, try landscape orientation or a smaller scale.
- If your browser offers a reader view, switching to it before printing gives a clean article without sidebars.
Once you have the PDF, you can remove unwanted pages with Delete Pages, or reduce a heavy, image-filled file with Compress PDF.
Troubleshooting HTML to PDF problems
Tags appear as text in the PDF
The markup was probably pasted with its angle brackets already converted to entities, which happens when you copy code from a web page that displays it. Copy from the original source file instead.
The layout looks different from the web page
The tool handles simple HTML. Layouts built with style sheets and scripts will not look the same. Simplify the markup, or use the browser’s print to PDF route for that page.
Images are missing
Do not count on images referenced from other websites appearing. If a picture is essential, add it to the finished PDF with the PDF Editor, which can insert images onto a page.
A table is cut off at the edge
Reduce the number of columns, shorten the headings, or split one wide table into two. The same problem affects spreadsheets, and our guide on how to save Excel as PDF without cutting off columns explains the thinking behind fitting wide data on a page.
Urdu or Arabic text runs the wrong way
The tool supports right-to-left text such as Urdu and Arabic. Check lines that mix scripts, for example Urdu with English words or numbers. For a full walkthrough, see how to make a PDF with Urdu text.
HTML or a word processor?
HTML is a good choice when the content is generated automatically, comes from a web system, or needs only basic structure. If you are writing a document by hand with images, headers and precise spacing, a word processor is easier. You then export with its Save as PDF option, as described in how to convert Word to PDF for free.
Frequently asked questions
Can I convert an HTML file to PDF without installing software?
Yes. Open the .html file in the Text and HTML to PDF tool in your browser and download the PDF. Nothing needs to be installed.
Does HTML to PDF keep the CSS styling?
Do not expect complex styling to carry over. The tool is designed for simple HTML structure. For a page that depends on its design, save it from your browser using print to PDF.
How do I save a web page as a PDF on my phone?
Use the share or print option in your phone’s browser and choose to save as PDF. The wording varies between browsers and versions, so look for print in the browser menu.
Can I convert HTML with a table to PDF?
Yes, basic tables are fine. Keep them simple and not too wide, then check in the PDF that every column is visible.
Use simple, well-formed markup for documents and your browser’s print option for full web pages. To convert your markup now, open the free Text and HTML to PDF tool and paste it in.