How to convert pasted HTML to a PDF in your browser

Turn headings, lists, and tables into a printable PDF, and check what happens to images, styles, and links before saving.

Open the tool

HTML is a convenient way to organize a set of notes, a short report, or a checklist. It describes the difference between a title, a paragraph, and a row in a table. A PDF is easier to send to someone who wants a fixed page they can read or print without opening a source file. A simple conversion works well when the structure of the HTML matters more than the appearance of a particular website.

TinyToolbox HTML to PDF takes pasted HTML and prepares a print document with built-in styling. You save the PDF through your browser’s print dialog. Start with the markup for the content you want readers to see, and check the print preview to catch layout problems before the export.

Choose the content to bring into the PDF

Start with a small block of HTML containing the intended heading and body. If the source is a webpage, you may be able to copy the relevant article or table from its source. Include the markup for the content rather than pasting the address of the page. TinyToolbox reads the text you provide and does not visit the URL to fetch and render the site.

Heading tags, paragraphs, ordered and unordered lists, and ordinary tables are good candidates. For a short handout, use one main heading followed by headings for the main sections. Give a table clearly labeled column headings. A row that makes sense on a wide website may become difficult to read on a portrait page, so omit columns that are irrelevant to the handout before converting.

If the source relies on a theme, images, or interactive elements, decide which of those pieces carry information. Replace an important image with a written description or a small table when the content can be represented that way. If exact images, chart graphics, typefaces, or interactive states are essential, use the original page’s print workflow or a document editor that supports those assets. Printing the original page can be especially useful when the site already provides its own print layout.

Prepare a short example

The following markup creates a one-page workshop checklist with a heading, three list items, and a simple table. A pasted fragment is enough. You can put the title readers should see on the PDF page in the heading and use a related name in the tool’s title field.

<h1>Workshop setup checklist</h1>
<p>Prepare the room before doors open at 9:00.</p>
<ol>
  <li>Set out a sign-in sheet and pens.</li>
  <li>Check that the projector displays the opening slide.</li>
  <li>Leave the entrance and aisles clear.</li>
</ol>
<h2>Setup assignments</h2>
<table>
  <thead>
    <tr><th>Station</th><th>Ready by</th></tr>
  </thead>
  <tbody>
    <tr><td>Registration</td><td>8:30</td></tr>
    <tr><td>Projector</td><td>8:45</td></tr>
  </tbody>
</table>

In this example, the visible title comes from the first heading. The Document title field names the print document separately and may influence the suggested filename. If you put a title only in the field and omit a heading from the markup, the print body will not gain a heading on its own. Add one explicitly if readers need it on the page.

Run the converter and save the PDF

  1. Open HTML to PDF Converter.
  2. Paste the markup into HTML input.
  3. Enter a recognizable Document title.
  4. Select Run tool to prepare the print document.
  5. Select Print / Save PDF.
  6. Choose Save as PDF, or the equivalent in your print dialog, check the preview, and save the file.

The exact location of the PDF destination depends on the browser and operating system. It might appear in a list next to connected printers or in a separate PDF menu. The tool prepares the print document in your browser. The print dialog creates the file, so look for the save action there rather than a separate export after closing it.

If the dialog does not appear, run the tool again after checking the markup and then select the print button once. If the browser reports that it could not open the print dialog, try in a full desktop browser with PDF saving available. After any change to the markup or title, select Run tool again so the next print preview uses the current input.

Understand which HTML features carry through

The converter retains a set of structural elements, including headings, lists, paragraphs, emphasis, block quotes, code blocks, and tables. It keeps link destinations with supported schemes such as HTTP, HTTPS, and mailto. A relative path such as /agenda/ has no website context in a pasted fragment and will lose its destination. Use a complete web address if the PDF reader needs the link, then test it in the final file because PDF viewers and print systems can handle links differently.

The print layout uses TinyToolbox’s built-in font, table borders, and page margins. Original class names, inline styles, and external stylesheets are removed. Content inside script, style, and other dropped elements is omitted. Images, SVG, embedded media, and iframes are also dropped. If a page uses a chart image as the only record of the data, include the underlying data in a small table before converting.

Table attributes do not carry over either. A cell that spans several columns may no longer have its intended relationship to the headers. For a table that uses merged rows or columns, rewrite it as a simple grid with a header for each column. If a table has several sections, give each section its own heading and table. This gives the reader context even when the browser divides the material across pages.

Review long content in the print preview

For a longer report, check the page count before saving. Look at page breaks around headings, list items, and the first rows of each table. A heading at the foot of one page can leave its explanation on the next. You can sometimes improve flow by shortening a paragraph or splitting a long table at a sensible point in the markup. Run the tool again and compare the preview after each structural change.

Use the browser’s paper size and orientation settings if the print dialog offers them. Portrait works for most letters and lists. Landscape can create enough horizontal space for a table with wide headings. For a table that still crowds the page, abbreviate headings only when the shorter names remain clear, or move supplementary columns into a second table. Review the final version at a size the intended reader can actually use.

Look for print headers and footers provided by the browser. If they add an unwanted date or location to the page, check for an option to disable them. If you need visible and consistent footer numbers across an assembled document, review the saved PDF and consider Add Page Numbers to PDF after the order and page count are final.

Code blocks can need an extra check. The print style allows preformatted text to wrap, which can help a long command fit but can also make it difficult to tell where the original line ended. Shorten lines at meaningful boundaries in your HTML example when possible. If readers must copy commands exactly, test the exported text or provide the source separately.

Check a common source mismatch

Suppose you copied a web-based project update into the tool. The original has a green status banner, a chart drawn by a script, and a table of tasks. The print preview shows the status text and task rows, but it has no green background and no chart. The retained text and table are enough to read some of the update. To make the PDF self-contained, add a plain-text status heading and put the chart’s key values in a table. Run the tool again and review it without referring to the source page.

Avoid adding the entire page a second time when only one part is missing. A full web document can contain repeated navigation and text unrelated to the report. Keep an editable version of the smaller fragment so you can correct the data and regenerate a clean export. If your original content is already written in Markdown, Markdown to PDF offers an alternative workflow that avoids an intermediate HTML conversion.

Open the saved file before sending it

Check the PDF from disk after the print dialog closes. Confirm the filename, visible title, page count, and any table or link a reader will depend on. Compare the first and last page with the print preview and make sure no significant instruction was accidentally left behind with an image or style rule. If another person needs to edit the material, save the HTML alongside the PDF and share it through the agreed workflow.

If you need to attach the converted content to an existing packet, use Merge PDF after verifying each file. Open the combined copy and confirm that section breaks and page order still make sense. Use that final version when sending or uploading so the reader receives the copy you actually reviewed.

Prepare a wide table for a printed handout

Imagine a six-column task table was written for a desktop screen. Its final column contains long notes, and several headings wrap when you open the browser’s print preview. Compare the preview with your intended paper size. If the reader needs every column on one line, try landscape orientation in the print dialog where available. Then check the page count and the width left for margins. A wider sheet can make the table easier to read while reducing the vertical space on each page.

If the handout must stay portrait, check whether all six columns belong in one table. A status report might need the task name, owner, and date in the main table, with explanatory notes collected below under matching task names. Prepare that structure in the HTML input and run the converter again. Review page breaks between the table and its notes. Give each note a heading that makes sense even if it starts on the next page.

Compare the result at ordinary reading size before reducing the print scale. Shrinking an entire page can fit the table while making the smallest text hard to read. Try editing just the table by shortening labels you can abbreviate clearly or moving repetitive descriptions into a short paragraph. Keep any units or instructions the reader needs to interpret a cell.

Record the settings that produced the checked file

Once the print preview looks right, write down the paper size, orientation, scale, and any option for browser headers or footers. If you revise a paragraph and reprint later, use those settings as a starting point. An unexpected date, page URL, or title in the margin can come from the browser’s own print headers. Check the preview to see whether those items are present before saving the new copy.

Save the revised PDF under a distinct filename and reopen it from disk. Confirm that the first table row, its final column, and the last note are visible. If a reader needs to copy a label or address, try selecting that text in the PDF. Keep the HTML and settings alongside the checked export, so a later revision can start from the content that produced it.