You have HTML in front of you: an email template, a report exported from a tool, a saved web page, a snippet your colleague pasted into chat. You need it as a PDF. There are two quite different ways to get there, and choosing the wrong one is why the output either looks nothing like the page or is a screenshot you cannot search. The HTML to PDF tool converts the content of the HTML. Your browser's Print dialog prints the appearance. Which one you want depends on whether you care more about the words or about the design.
Two ways, compared honestly
| HTML to PDF in TabShed | Browser Print, Save as PDF | |
|---|---|---|
| Starting point | Pasted HTML or .html files | A page already open in the browser |
| Keeps | Headings, paragraphs, lists, tables, links, pictures, code, basic inline formatting such as colour, bold, italic and alignment | Almost everything the browser shows, including page CSS |
| Drops | Page CSS, classes, scripts, frames, forms, complex layouts such as columns, floats and grids | Interactive behaviour; backgrounds depend on a print setting |
| Result | A tidy document in a style you choose, real selectable text, clickable links | The page as laid out, which may break awkwardly across pages |
| Needs a live page | No, just the markup | Yes |
If the page's design is the point, such as a landing page or a styled invoice template, use the browser's print dialog. If the content is the point, such as an article, notes, a documentation export or a block of markup that you only have as text, convert it here and let the tool give it a consistent document look.
Step by step
- Paste the HTML or drop one or more .html files. The preview shows exactly what goes into the PDF.
- Choose A4 or Letter, the margins, a style, the text size, whether to number pages, and an optional table of contents.
- Download the PDF. Several files give a ZIP, or you can combine them into one PDF.
- If you want to sign it or add text afterwards, open the result in the PDF editor.
Why scripts never run
This is a safety feature, and it is worth understanding because pasted HTML can come from anywhere. Before conversion the HTML is cleaned in your browser: scripts, styles, frames and forms are removed with DOMPurify, and the PDF is built on your device. Nothing is sent anywhere and no script is executed. You can paste markup of unknown origin without it doing anything. The flip side is that a page which builds its content with JavaScript will convert as an empty shell, because that script never ran. Save the page after it has finished loading, or copy the rendered HTML, rather than the original source.
What happens to pictures
A picture can be used when it is contained inside the HTML itself (as a data: link). A picture that lives on another website can be used only if that site allows it, and many do not. When a picture cannot be fetched it is left out and the tool tells you how many were missing. If the images matter, save the page together with its images as a complete web page, or embed them in the markup before converting.
Can I convert a page by URL?
No. Websites usually block other pages from reading them, so a URL box would fail in most cases. Open the page, save it as .html or copy the HTML, and paste or drop it here. For a login-protected page that is also the only reliable route.
Fonts and languages
The PDF is a real text PDF with embedded fonts, so you can select, copy and search it. Vietnamese, Cyrillic and Greek text work. Chinese, Japanese, Korean and emoji are drawn as small pictures, which look fine on screen but cannot be searched.
Troubleshooting
- The PDF is nearly empty. The content was created by a script. Copy the rendered HTML from the browser's inspector or save the loaded page.
- The layout is a single column. Columns, grids and floats are not reproduced. This is intentional: the tool builds a document from the structure. Use the browser's print dialog if you need the columns.
- A table is too wide. Reduce the text size or choose smaller margins. Very wide tables are better handled as spreadsheets; see Excel to PDF for fit-to-width.
- Links are not clickable. Check the original markup uses real anchor links with a full address. The tool preserves links it can read.
Several files at once
Drop several .html files to get one PDF per file in a ZIP, or switch on the combined option to join them in order. This is useful for turning an exported set of documentation pages into one reference PDF. Add page numbers and a table of contents when you combine them, since a long combined file is hard to navigate without them.
Worked example: an email template for approval
Your marketing tool exports an email as HTML and a manager wants to approve it on paper. If the design is the point, open the HTML in a browser and use Print, Save as PDF so the layout is the same. If the manager mostly needs to check the words, paste the HTML here, choose A4 with normal margins, and download: the headings, paragraphs, links and pictures are in a clean document with selectable text, and the manager can leave comments in a PDF viewer without struggling with the template's layout. Where the email uses a table for its overall frame, the result will have that table; that is a hint that the template was built for email clients, not for paper.
Another typical case is a documentation page saved as .html that you want as an attachment. Because scripts are not run, a page that loads its text later will convert as an empty page; if that happens, copy the rendered text from the browser and use Text to PDF or paste it into the document editor.
Need Word instead?
If the next step is editing, convert to a Word document with HTML to Word. If your source is Markdown rather than HTML, Markdown to PDF handles it directly.
FAQ
Is the text selectable?
Yes, it is a text PDF, not a screenshot.
Is there a watermark or page limit?
No watermark, no sign-up and no page limit.
Is my HTML uploaded?
No. It is cleaned and converted in your browser.
Why is a picture missing?
Pictures hosted on another site can only be used when that site allows it. The tool reports how many were skipped.