User Agents

Web browsers and everyday web tech, explained

Print Webpage Without Images: CSS & Browser Settings

· 5 min read · Settings and Privacy

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Printing a webpage without images saves ink, paper, and makes the text more readable. You can do this entirely in your browser’s print dialog or with a small CSS snippet. This guide covers both methods, including how to create a print-specific stylesheet that hides images only when printing.

What You'll Need

  • A modern web browser (Chrome, Firefox, Edge, Safari, or similar).
  • Access to the webpage you want to print.
  • Basic familiarity with browser developer tools (for the CSS method).
  • Optional: a text editor to save a custom CSS file.

Step-by-Step

Method 1: Using Browser Print Settings (No CSS)

  1. Open the webpage you want to print in your browser.
  2. Open the print dialog: press Ctrl+P (Windows/Linux) or Cmd+P (Mac). Alternatively, click the browser menu (three dots or lines) and select Print.
  3. In the print preview, look for a section called More settings (Chrome/Edge) or Options (Firefox).
  4. Find the option labeled Graphics, Background graphics, or Print images. In Chrome and Edge, uncheck Background graphics – this removes background images but may not remove inline images. In Firefox, look for Print Background Colors and Images and uncheck it. Safari has a similar checkbox called Print backgrounds.
  5. If the browser’s option does not remove all images (like photos embedded in the content), you’ll need the CSS method below.
  6. Adjust other print settings like paper size, margins, and scale as needed.
  7. Click Print or Save as PDF to preview the output. If images still appear, proceed to Method 2.

Method 2: Using CSS to Hide Images for Print

  1. Open the webpage in your browser.
  2. Right-click on any image and select Inspect (or Inspect Element). This opens the developer tools with the image element highlighted.
  3. In the developer tools, find the Styles or CSS panel. Look for the element’s tag, usually <img> or a container like <div> or <figure>.
  4. Add a new CSS rule in the developer tools’ console or by editing the stylesheet. The simplest rule is:
  5. @media print { img { display: none !important; } }
  6. This rule hides all images when printing. To test it, click the Print button in the developer tools (or press Ctrl+P) and see the preview.
  7. If you want a more permanent solution for your own use, you can create a custom print stylesheet. Save the following CSS as print-no-images.css:
  8. @media print { img, picture, video, canvas, svg { display: none !important; } }
  9. Apply this stylesheet to any webpage by using a browser extension like “Stylus” or by pasting it into the developer tools console before printing (the console method works only for that session).

Method 3: Using Browser Extensions (Alternative)

  1. Install a browser extension that allows custom CSS, such as “Stylus” (for Chrome, Firefox, Edge) or “User CSS” for Safari.
  2. Open the extension’s options and create a new style.
  3. Set the style to apply to all websites or specific ones. Enter the CSS rule from Step 5 of Method 2.
  4. Save the style, then print the webpage as usual – the extension will apply the CSS automatically.

Common Mistakes

  • Only unchecking “Background graphics” – this removes background images but not inline images like photos or logos.
  • Using display: none without @media print – this hides images on screen too, which is not desired.
  • Forgetting !important – some websites have specific CSS that may override your rule, so !important ensures it takes precedence.
  • Not testing the print preview – always preview before printing to confirm images are gone.
  • Applying the CSS globally when you only need it for one page – use browser extensions to restrict the rule to specific domains if needed.

Tips

  • Use the browser’s print preview to check the result before printing – it saves paper and ink.
  • If you need to keep some images (like charts), you can refine the CSS to only hide certain images, e.g., img:not(.chart).
  • In Chrome, you can also use “Save as PDF” to create a digital copy without images, which is useful for archiving.
  • For a one-off print, the developer tools method is fastest – no need to install extensions.
  • If the webpage uses lazy loading, images may not have loaded before you print – make sure to scroll through the entire page first.

Troubleshooting

  • Images still appear after using browser settings: Use the CSS method – browser print settings often only affect background images, not content images.
  • CSS rule not working: Check that you have the correct selector. Some images are inside <picture> or <figure> elements – your rule should target those too. Also ensure you’re using @media print and !important.
  • Print preview shows images but they disappear in the actual print: This can happen if the printer driver handles images differently. Try saving as PDF first to see if the issue is with the printer.
  • Images are hidden but layout breaks: Some images are used for layout (e.g., spacers). If the layout becomes unusable, you may need to hide only specific images or use a more targeted selector.
  • Browser extension not applying the CSS: Make sure the extension is enabled and that the style is set to “All sites” or the specific site you’re on. Also check that the extension is not being blocked by the site’s CSP (Content Security Policy).

Frequently Asked Questions

Will this remove all images, including logos and icons?

Yes, the CSS rule img { display: none !important; } hides all <img> elements, including logos and icons. If you want to keep some, use a more specific selector.

Can I print a webpage without images on my phone?

Yes, mobile browsers also have print options. In Chrome for Android, open the menu and select “Print” – you may need to expand “More settings” to find the background graphics toggle. For iOS Safari, tap the share button and select “Print” – look for the “Background” toggle.

Does this work for PDF export too?

Yes, the same CSS and browser settings apply when you choose “Save as PDF” in the print dialog.

Can I permanently hide images on a specific website?

Yes, use a browser extension like Stylus to create a site-specific style with the print CSS rule. That way, it will apply every time you print that site.

What if the webpage uses CSS background images instead of <img> tags?

Uncheck “Background graphics” in the browser print settings to remove those. If that doesn’t work, you can add a CSS rule like * { background-image: none !important; } inside the @media print block.

Is there a way to print only the text of an article without any images?

Some browsers have a “Reader Mode” that strips images and formatting. Use that mode before printing – it often gives a clean text-only printout.