How to Create a PDF from a Webpage for Free
There are many reasons to convert a webpage to PDF: saving an article for offline reading without ads, archiving a web receipt or confirmation page, capturing research from a website that might change or disappear, creating a printable reference document from online content, or packaging web-based reports for sharing with people who don't have internet access to the original. Browser printing is the most common method and works adequately for simple pages, but it often produces results with broken layouts, missing content, or awkward page breaks. Purpose-built HTML to PDF tools handle complex page layouts much better, preserving structure and formatting in a way that browser print rarely achieves for content-heavy sites. This guide covers multiple methods for converting webpages to PDF — from the built-in browser approach to dedicated conversion tools — along with tips for getting clean output that actually looks good on paper or screen.
Method 1: Browser Print to PDF
Every modern browser can print to PDF. In Chrome or Edge, press Ctrl+P (Cmd+P on Mac), select 'Save as PDF' as the destination printer, and click Save. In Firefox, the same shortcut opens a print dialog with a PDF option. Safari on Mac has a dedicated Export as PDF option in the File menu. Browser print-to-PDF works well for simple, text-focused pages with minimal complex layouts. The output quality is highest on pages designed with print stylesheets — many news sites, Wikipedia, and documentation sites have print-optimized CSS that hides ads, navigation menus, and sidebars when printing. For complex sites with multi-column layouts, fixed position elements, or heavy CSS frameworks, browser print often produces broken output with content cut off at page edges or elements appearing in the wrong position.
- 1Open the webpage you want to save as PDF in Chrome, Firefox, Edge, or Safari.
- 2Press Ctrl+P (Windows/Linux) or Cmd+P (Mac) to open the print dialog.
- 3Select 'Save as PDF' or 'Microsoft Print to PDF' as the destination.
- 4Adjust settings (margins, scale, background graphics) and click Save.
Method 2: HTML to PDF Conversion Tools
For complex pages where browser printing produces poor results, dedicated HTML-to-PDF converters typically do much better. LazyPDF's HTML to PDF tool accepts a URL or raw HTML and converts it using LibreOffice's rendering engine, which handles many complex layouts more cleanly than simple browser print. The output tends to have more consistent page sizing and better handling of multi-column layouts. Other options include web-based converters that load the page in a headless browser (Chrome or Firefox without the visible interface) and render it to PDF — this produces the highest fidelity output because the page renders exactly as a real browser would see it. Services like Puppeteer (for developers) and various web-based tools take this approach. The trade-off is that JavaScript-heavy pages with dynamic content may render in a loading state rather than a fully loaded state, missing content that loads asynchronously.
Cleaning Up Webpage PDFs
Even with good conversion tools, webpage PDFs often have elements you don't want: navigation menus, footers, cookie consent banners, social sharing buttons, and advertisements. For important archived pages, cleaning up the output improves readability significantly. Before converting, use your browser's Reader Mode if available (Firefox and Safari both offer it) to strip down the page to just the article content before printing. Alternatively, a browser extension like Readability converts complex article pages to clean, print-friendly text. For pages where you only need specific sections, selecting just the relevant text and using 'Print Selection' can produce cleaner output than printing the entire page.
Compressing and Archiving Web Pages as PDF
Webpage PDFs can be surprisingly large, especially pages with many images, complex graphics, or heavy CSS that gets baked into the PDF during conversion. If you're archiving many pages for offline reference or sending the PDF to others, compressing the output makes a significant difference. After converting your webpage to PDF, run it through LazyPDF's compress tool. Web images are typically already optimized for screen, so compression may not reduce file size as dramatically as it does for high-resolution print images, but you'll typically still see 20–40% size reduction from removing redundant metadata and optimizing the PDF structure. For a large archive of saved web pages, this adds up to meaningful storage savings over time. Name your archived page PDFs with the source URL and date for easy reference: 'techcrunch_article-title_2026-03-15.pdf'.
Frequently Asked Questions
Why does my webpage PDF look different from the website?
Webpages use CSS (Cascading Style Sheets) that are designed for screen display, not print media. Fixed-width elements, viewport-relative sizing, absolutely positioned overlays, and multi-column layouts all behave differently when rendered to a fixed page size. Background colors and images may also not appear unless you enable 'Background graphics' in print settings. For the best results, try multiple methods (browser print, HTML-to-PDF tool) and compare which produces cleaner output for your specific page.
Can I convert a webpage that requires login to PDF?
You can convert login-protected pages by using your browser's built-in print-to-PDF feature while logged in — the browser sends your authenticated session when rendering the page. Web-based HTML-to-PDF tools generally cannot access pages that require login because they don't have your session credentials. For authenticated pages like email confirmations, account statements, or subscription content, browser print-to-PDF is the most reliable approach.
How do I save a webpage to PDF on my iPhone?
In Safari on iPhone, tap the Share button (box with arrow), then select 'Print'. Pinch and expand on the print preview to turn it into a full PDF you can share or save. Alternatively, tap Share and look for 'Create PDF' in the share sheet. In Chrome on iPhone, tap the three-dot menu, select 'Share', then choose 'Print'. The resulting PDF can be saved to Files. For cleaner output, use Safari's Reader View (tap the book icon in the address bar) before printing to remove clutter.