Rendered with Chromium

Convert HTML to PDF

Convert HTML and HTM files into PDF documents using a Chromium-based rendering engine while preserving styles, colors, images and backgrounds when resources are available.

Convert HTML to PDF

Upload an HTML or HTM file and convert it securely using SG Hub's Chromium processing engine.

Secure processing

Free account required

Sign in or create a free account to use SG Hub secure HTML to PDF processing.

Registration is free. Your files remain private and are processed temporarily.

or drag and drop it here

HTML or HTM · Maximum 250 MB

How to convert HTML to PDF

  1. 1

    Select the file

    Upload an HTML or HTM document from your device.

  2. 2

    Configure the PDF

    Choose the page size and orientation you want to use.

  3. 3

    Start rendering

    SG Hub sends the file to the Chromium engine so its content can be interpreted.

  4. 4

    Download the result

    When processing is complete, download and review the generated PDF document.

Available formats and options

HTMLHTMA4A3LetterLegal

The tool interprets the document in a similar way to a modern browser and generates a static representation prepared for printing.

You can select portrait or landscape orientation depending on the width of the content and the type of document you need to generate.

Images, CSS and external resources

CSS styles included inside the file can be applied during rendering. External stylesheets, images and fonts may also load when their addresses are public and accessible.

Relative paths depend on files that may not accompany the uploaded HTML document. For better results, use absolute URLs or embed styles and images directly inside the document.

Recommendation

Before converting, open the HTML file in your browser and verify that all images, fonts and stylesheets load correctly.

JavaScript and dynamic content

Chromium can execute some JavaScript included in the document, but the conversion is designed to create a static snapshot of the content available during processing.

  • Animations do not remain active inside the PDF.
  • Forms and interactive buttons may lose functionality.
  • Requests to external APIs may fail or take too long.
  • Content loaded after long timers may not appear.
  • Complex web applications may require specific preparation.

Processing and privacy

The HTML file is temporarily sent to SG Hub infrastructure because the conversion requires a Chromium browser running on the server. The file is used to generate the requested document.

Download the PDF when it becomes available and keep your own copy. SG Hub does not operate as permanent storage or as a backup service.

Read the Privacy Policy →

Possible differences in the PDF

  • Blocked web fonts may be replaced with other fonts.
  • Unavailable external resources may not be displayed.
  • Relative paths may remain incomplete.
  • Fixed-position elements may behave differently when printed.
  • Content that is too wide may be divided or scaled down.
  • Advanced CSS effects may vary depending on Chromium.

When converting HTML to PDF is useful

Save a printable version of an HTML page or document.

Generate reports, quotes, invoices or receipts from a template.

Archive web content in a stable and shareable format.

Transform designs created with HTML and CSS into downloadable documents.

Prepare material for email delivery or printing.

Create PDF files from content generated by an application.

Recommended HTML file preparation

  • Use absolute URLs for external images, fonts and stylesheets.
  • Embed critical resources inside the HTML whenever possible.
  • Define print styles with @media print.
  • Add page-break rules to prevent unexpected content splits.
  • Test the file in Chromium before converting it.

What to review in the generated PDF

  • Confirm that images, fonts and backgrounds loaded correctly.
  • Check that content is not split awkwardly across pages.
  • Review wide tables and blocks in the selected page format.
  • Check that headers and footers do not overlap.
  • Confirm that required dynamic content is present.
Frequently asked questions

Questions about converting HTML to PDF

How do I convert an HTML file to PDF?

Select or drag an HTML or HTM file, choose the page format and orientation, start the conversion and download the result when processing is complete.

Are CSS styles preserved?

The tool uses Chromium to interpret the document and attempts to preserve CSS styles, colors, backgrounds, images, fonts and visual layout.

Are external images loaded?

External images can be loaded when they use publicly accessible URLs. If a resource is protected, blocked or unavailable, it may not appear in the PDF.

Do relative paths work?

Relative paths may not resolve when related files are not available to the processing engine. For better results, use embedded resources or public absolute URLs.

Is JavaScript executed inside the HTML file?

The engine can interpret some JavaScript, but dynamic content, external requests, timers and complex applications may not finish loading before the PDF is generated.

Which page formats are available?

You can generate A4, A3, Letter or Legal documents in portrait or landscape orientation.

Can I convert a URL directly?

This version converts HTML or HTM files uploaded from your device. Direct conversion from a web address is not currently included.

What is the maximum file size?

The tool accepts files up to 250 MB, although the effective limit may vary according to the account type and current service configuration.

Is the file processed on a server?

Yes. The HTML file is temporarily sent to SG Hub infrastructure so Chromium can render it and generate the PDF document.