Skip to content
UBIS Tool

HTML to PDF

Preview an HTML file or code and save it as PDF from your browser’s print dialog.

  1. 1Input
  2. 2Adjust
  3. 3Save

One HTML file · Up to 2 MB · Or paste code below

Files and contents are processed in your browser without uploading.

HTML and print settings

Print preview

Choose Save as PDF in the print dialog. Check backgrounds and margins there too. JavaScript, external images, fonts, stylesheets, and URL input are not supported. Only embedded PNG, JPG, GIF, and WebP image data is displayed.

How to use

  1. 01

    Prepare your input

    Choose an HTML file or paste code.

  2. 02

    Settings and preview

    Set paper, orientation, and margins, then review the preview.

  3. 03

    Check and save

    Click Print / Save as PDF and save from the print dialog.

Try a small example

Input

Enter simple HTML such as <h1>Title</h1><p>Text to check</p>.

Try this

Choose paper, orientation, and margins, then update the preview.

What to check

Click Print / Save as PDF and choose Save as PDF in the print dialog. Check page count, text, and clipped tables.

Troubleshooting

The preview differs from the original webpage.

External stylesheets, fonts, images, and JavaScript are not supported. Include styles in the HTML and check the preview.

The print button is disabled.

After changing content or settings, click Update preview. Printing becomes available when the preview is ready.

Related tools

Frequently asked questions

Does it download a PDF directly?

This uses your browser’s print dialog. Choose Save as PDF as the destination and select where to save it.

Can I convert a webpage URL?

Only HTML files or pasted code are supported. URLs, login pages, and external resources are not supported.

Important information

Files and contents are processed in your browser without uploading. Save the results you need before closing the page.

Input must be at most 2 MB in UTF-8. Scripts, forms, frames, and external resources are removed, which can change the rendering.