How to Save a Webpage as a PDF
Updated
Press Ctrl+P (Cmd+P on a Mac), set the destination to “Save as PDF”, and click Save — that works in Chrome, Edge and Firefox; Safari also has File → Export as PDF. The catch is that the browser prints the page exactly as built, so menus, ads and cookie banners often end up in the PDF. To get just the article, clean the page up before you print, or extract the article and print only that.
Save a webpage as a PDF in any browser
- 1
Open the print dialog
On the page you want to keep, press Ctrl+P (Windows, Linux, ChromeOS) or Cmd+P (Mac).
- 2
Choose a PDF destination
In Chrome and Edge set Destination to “Save as PDF”. In Firefox choose “Save to PDF”. In Safari, use File → Export as PDF instead, or Print and then the PDF menu at the bottom of the dialog.
- 3
Fix the layout before saving
Open “More settings”. Turn off Headers and footers to drop the URL and date strip, turn on Background graphics if colours or code blocks come out blank, and set Margins and Scale if text is cut off at the edge.
- 4
Check the preview, then save
Scroll the whole preview. Cookie banners, sticky headers and chat widgets print on every page; if they're there, use one of the cleanup methods below before you save.
Why printed pages come out messy
When you print, the browser switches the page to its print styles — a separate set of CSS rules a site can use to hide navigation, ads and other screen-only parts. Most sites never write print styles, so you get everything: the sticky header repeated on every page, the sidebar squeezing the text, the newsletter popup stamped over paragraph three.
None of the print dialog's settings can remove those parts, because to the browser they're just more content. What fixes it is removing them before the print step. You can do that by hand, with reader view, or by extracting the article and printing only that.
Three ways to get a clean PDF
- 1. Reader view, then print
- Firefox and Safari both have a reader view button in the address bar. Open it, then print from there — what you save is just the article. Reader view only appears on pages the browser recognizes as articles.
- 2. Remove the clutter by hand
- Close cookie banners and popups first, and scroll to the bottom so lazy-loaded images arrive. For anything still in the way, right-click → Inspect, select the element, and press Delete — it's gone until you reload. Tedious, but it works on any page.
- 3. Extract the article, then print it
- This is what reader view does under the hood: find the main text, drop everything else, and lay it out for reading. Do it with an extension and you get the same clean result in Chrome, from any article page, in one click — plus a Markdown copy if you want the text rather than a document.
Save Page as Markdown or PDF — the one-click version
If you save pages often, the steps above get old. Save Page as Markdown or PDF is a Chrome extension built by Lamill, the team behind Markpdf, that does the extraction for you. It answers one question: “how do I keep just the article from this page?”
- Click the extension's toolbar button on the page you want.
- Choose Save as PDF. It pulls out the article with Mozilla Readability (the library behind Firefox's Reader View) and opens it in a clean, print-ready view with the title and source link at the top. Chrome's print dialog opens — pick “Save as PDF”.
- Or choose Save as Markdown to download a
.mdfile: the article as Markdown, with the title, the source URL and the date you saved it at the top.
Privacy: it runs locally — page content never
leaves your browser. It only reads the page you're on, and only when you click Save
(activeTab); it has no access to any other site. The full permission list is on the
privacy page.
What to expect on different pages
- A news article or blog post
- The best case. Plain print gives you the article plus the site's header, share buttons, “read next” links and any banner still on screen. Reader view or extraction gives you the headline, byline, body text and in-article images — the version you'd want to keep.
- Documentation with code blocks
- Docs sites often have a left-hand table of contents that eats a third of the printed page width. Extraction drops the sidebar. If code blocks print as white boxes with plain text, turn on Background graphics. Here Markdown is often the better format: the code arrives as fenced code blocks you can copy out cleanly.
- A homepage, dashboard or web app — where extraction fails
-
Pages that aren't one article have nothing for reader view or an extractor to find.
Reader view just won't offer itself; the extension falls back to the whole page body
(the Markdown save tells you when it did). For these pages, plain Ctrl+P (or a screenshot) is the right tool.
Browser pages like
chrome://and the Chrome Web Store can't be read by any extension at all.
Going the other way: Markdown to a designed PDF
Saving a page gives you someone else's document. If you're writing your own — a proposal, a statement of work, a report — in Markdown, Markpdf turns it into a branded, client-ready PDF with your logo and colours. Start from a free Markdown template.
FAQ
- Why does my saved PDF include ads, menus and cookie banners?
- Because the print dialog prints the page as it's built, and most sites don't ship a print stylesheet that hides their navigation, ads and overlays. Reader view, removing the clutter by hand, or an extension that extracts just the article will fix it; the browser's own print settings won't.
- Why is my PDF missing background colours or images?
- Browsers skip background graphics when printing to save ink. In Chrome and Edge, tick “Background graphics” under More settings; in Firefox, tick “Print backgrounds”. Images that load lazily may also be missing if you print before scrolling past them — scroll to the bottom first.
- Can I save a webpage as a PDF on my phone?
- Yes. In Chrome on Android, open the ⋮ menu, choose Share → Print, and set the printer to “Save as PDF”. On iPhone and iPad, tap Share → Print in Safari, then use the share button in the print preview to save the PDF to Files.
- Will links still work in the saved PDF?
- Usually, yes. Chrome, Edge and Firefox keep hyperlinks clickable when they save to PDF. Links that only work through JavaScript (buttons that look like links) won't.
- Can I save a page I'm logged in to, or a paywalled article I subscribe to?
- Yes — printing works on whatever your browser is showing you, so pages behind a login save fine. Online converters that ask for a URL can't do this: they fetch the page themselves, without your session.
- Should I save as PDF or as Markdown?
- PDF if you need a fixed copy to read, print, annotate or send. Markdown if you want the text itself — to edit, search, paste into notes like Obsidian, or feed into another tool. Markdown keeps headings, links, lists and code blocks but not the page's visual design.