Free tools Windows power users keep installed
One-click scans. No signup required.
For a one-time conversion, open the rendered HTML in Chrome, Edge, or Firefox, choose Print, and save it as a PDF. If you need to paste raw HTML into a website, use an online converter that explicitly accepts HTML markup; if you need a repeatable workflow, use a documented API. The right choice depends on whether your HTML is already a page, whether it relies on scripts or external assets, and how sensitive its contents are.
Choose the right way to convert HTML to PDF
“HTML code” can mean a saved web page, a local .html file, a public URL, or a fragment of markup copied from an editor. Those inputs are not interchangeable: browser printing works with a rendered page, while a paste-in converter or API must explicitly accept raw HTML.
| What you have | Practical free starting point | Best suited to |
|---|---|---|
| A page already open in a browser | Print to PDF in Chrome, Edge, or Firefox | A one-time copy of the page as rendered |
| A local .html file | Open it in a browser, then print to PDF | A one-time conversion without uploading the file |
| Raw HTML markup to paste | Use a converter that says it accepts raw HTML, such as the HTML2PDF.app browser converter or HTMLPDF.dev playground | A quick online conversion without setting up code |
| A URL or recurring conversion task | Use an online service or its documented API | Repeatable or application-driven output; check support for scripts, assets, and PDF settings |
A free-to-use browser print feature is different from an online service’s free quota or trial. Check the converter’s current terms and account requirements before relying on an allowance.
Save a rendered page or local HTML file as a PDF
Browser printing is the quickest free option for a single page. It prints what the browser has rendered; it does not ask you to paste source code into a converter.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
- Open the page. For a website, open its URL in Chrome, Edge, or Firefox. For a local file, open the .html file in one of those browsers. Check that expected text, images, and interactive content have appeared before printing.
- Open Print. Use Ctrl+P on Windows or Linux, or Command+P on Mac. Chrome also documents the menu route as File > Print. Google’s instructions: Chrome Help: Print from Chrome.
- Choose the PDF destination. In Chrome, choose Save as PDF when it is offered in the print window. Firefox offers Save to PDF in print preview; its guidance is at Mozilla Support: How to print web pages in Firefox. Edge’s print interface also provides a PDF destination; available destination wording can vary by operating system and browser version.
- Set the page layout. Choose A4 or Letter, portrait or landscape, margins, scale, and page range as appropriate. Preview the page breaks and make sure text is not clipped or reduced until unreadable.
- Check backgrounds and headers. If colored sections or background images are missing, turn on Background graphics in the print settings. Edge documents background graphics, headers and footers, and scale controls in its guide: Microsoft Support: Print in Microsoft Edge. Turn off browser headers and footers if their URL, title, or date would make the document look cluttered.
- Preview every page, then save. Confirm the first and last pages, page breaks, and any wide tables or code. Choose Save and select the destination folder.
What browser printing can and cannot convert
Printing operates on the rendered page, not on the raw source text as an editable document. If you open a file containing HTML tags in a text editor and print that editor, you will get the tags as text. Open the .html file in a browser to render it first. Likewise, a URL that requires a sign-in may print only what the current browser session can access; do not assume an online converter can access the same private page.
Paste HTML into an online converter
If you have markup in an editor and do not want to create and open a local file, choose an online tool whose interface explicitly accepts pasted HTML. HTML2PDF.app advertises a browser converter for a URL or raw HTML. Its documentation describes API conversion from raw HTML markup or a publicly reachable URL, and says conversions run in headless Chromium. See HTML2PDF.app documentation for its current interface, options, and behavior.
HTMLPDF.dev advertises an online playground where you can paste HTML, choose paper settings, and download a PDF. Its API documentation says a request accepts either url or html, not both, and lists paper and layout options such as A4, Letter, orientation, and margins. See HTMLPDF.dev API documentation for the current input format and settings.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
- Open the converter’s own playground or browser interface.
- Paste the HTML markup into its HTML field. If you have a page URL instead, use its URL field rather than pasting a URL into the markup field.
- Set page size, orientation, and margins if the interface offers them.
- Generate the PDF and inspect the result, especially external images, fonts, and script-generated content.
- Read the service’s privacy and retention terms before submitting confidential or personal information.
Online playgrounds and free access can change. Confirm that the current interface accepts your type of input and check for account requirements, limits, or paid features before uploading important work.
Automate HTML-to-PDF conversion with an API
For repeated conversions or integration into an application, use an API that documents raw HTML input, URL input, authentication, PDF options, and how to receive the resulting file. HTML2PDF.app, HTMLPDF.dev, and HTML2PDF.co.uk document API-based conversion patterns; their request formats are provider-specific. Start with the provider’s own documentation rather than copying a generic example.
For example, HTML2PDF.app documents authenticated requests and says its API key should be used from a backend, server-side scripts, or trusted jobs. Its conversion documentation also notes that CSS media mode, available fonts and resources, and JavaScript load timing can affect rendering. Use its current API reference at HTML2PDF.app documentation for the endpoint, authentication, request body, and PDF response handling. HTMLPDF.dev documents its input and options at HTMLPDF.dev API documentation. HTML2PDF.co.uk describes its API at HTML2PDF.co.uk API documentation.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Do not treat a sample request for one provider as compatible with another. In particular, do not put an API key in frontend JavaScript or a public page: clients can inspect code and requests. Keep credentials on a server or in a trusted job, follow the provider’s documented authentication method, and save the binary PDF response as a file rather than assuming the response is JSON.
Or skip the browser setup
If the input is a public web page and you want a PDF capture through a screenshot API, ScreenshotNeo is an option. It is not a raw-HTML paste converter: supply a URL to capture. The service can return a screenshot or PDF. Check the current PDF request details in the ScreenshotNeo documentation.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Clear out junk files and repair common Windows errors3Scan for outdated or missing drivers - takes under a minuteOne-call cURL example for a URL capture:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o capture.pdf
Use your own target URL and API key, and consult the documentation for the PDF-specific request settings. ScreenshotNeo can accept cookie or consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets before capture; those steps can be turned off. Bot checks and other non-clean outcomes such as blank pages, timeouts, and failed loads are not billed, and response headers identify the page verdict and billing status. It also provides an MCP server for AI agents, including Claude, Cursor, and other MCP clients. The free plan includes 1,000 shots a month with no card; paid plans start at $5 for 3,000 shots. Sign up free for 1,000 screenshots a month with no card.
Make the PDF layout hold together
Use print-specific CSS
If you control the HTML, add print rules to hide navigation and controls that make sense on screen but not on paper:
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
@media print {
nav, button, .screen-only {
display: none !important;
}
@page {
size: A4;
margin: 15mm;
}
}
This is an example to adapt, not a setting every converter applies identically. If the service offers CSS media options, check whether it renders screen or print styles. A page designed for one mode may look different in the other.
Control page breaks for tables and code
Long tables can split across pages, and wide code blocks can run past the printable area. Where the renderer supports standard print CSS, try rules such as break-inside: avoid on short rows or blocks, and allow long tables to split rather than forcing an entire table onto one page. For wide code, consider wrapping lines or using landscape orientation. Always preview a representative long page; a rule that avoids one bad break can leave a large blank area elsewhere.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Wait for fonts, images, and scripts
A browser print preview shows the page after it has loaded in that browser. A server-side converter may fetch resources separately, and external fonts, images, or JavaScript may not be ready when the PDF is rendered. HTML2PDF.app specifically identifies media mode, available fonts and resources, and JavaScript timing as factors. If an asset is missing, verify that it is reachable to the converter and that the page has finished rendering before changing margins or scale.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Protect private HTML and credentials
A local browser workflow keeps the HTML on your device during the conversion, which is preferable when the content is confidential and an online service’s handling is unclear. For online tools, read the retention terms before uploading source or sending a URL: the source HTML may contain secrets, personal data, or internal links, and a URL can reveal private page names.
Policies differ by provider. HTML2PDF.co.uk states that PDFs are served from memory and POST-submitted HTML is not stored, while URLs may be retained in conversion history. HTML2PDF.app says generated PDFs are processed temporarily and that selected metadata or a source URL may be retained in logs. Review each provider’s current policy at HTML2PDF.co.uk API documentation and HTML2PDF.app documentation before sending sensitive material; those statements should not be generalized to other services or future policy versions.
Troubleshoot common conversion problems
- The PDF shows HTML tags rather than a page. The source was probably opened as text or pasted into a field that expects a URL. Open the .html file in a browser, or use a converter’s raw-HTML field.
- Colors or background images are missing. Enable Background graphics in the browser print settings. In a converter, check whether its rendering mode supports the relevant CSS and whether the background asset is available.
- Fonts or images are absent. Confirm that external resources load in the source page and are accessible to the renderer. For an API conversion, check the service’s guidance on resources and rendering timing; private or blocked assets may not be fetched.
- JavaScript content is missing or incomplete. The PDF may have been rendered before scripts finished. Wait for the page to finish in a browser, or use a converter option or documented workflow that allows time for scripts to run. Do not assume all converters wait in the same way.
- Text is cut off or too small. Check paper size, orientation, margins, and scale in the print preview. Use landscape for genuinely wide content; reducing scale too far makes text hard to read.
- Tables or code split badly. Add or adjust print CSS, reduce unnecessary width, or change orientation. Re-export and inspect page boundaries rather than judging from the first page alone.
- An online conversion fails on a private page. A service may not share your browser’s login session. Use browser printing while signed in, or follow the provider’s documented way to supply authorized content. Never place credentials in a public URL or exposed client-side code.
- An API request returns an error or a non-PDF response. Verify the provider’s current endpoint, authentication method, accepted input field, and PDF response handling. Confirm that you sent either the documented raw HTML or URL field, not both where the API forbids it.
Frequently asked questions
Can I convert HTML to PDF without installing software?
Yes. A modern browser can print a rendered page or local HTML file to PDF, and some online converters provide a browser interface for pasted markup. Browser printing avoids uploading the file to a conversion service.
Recommended Free Tools
Can I convert a private webpage by entering its URL into an online tool?
Not necessarily. A converter may not have your authenticated browser session. Use the browser where you are already signed in, or consult the provider’s documented access method.
Will the PDF always look exactly like the web page?
No. Printed page dimensions, print CSS, unavailable assets, and script timing can change the result. Use the preview, check page breaks, and test the specific page you need.

