How to Save a Webpage to a File

Published on 2023-06-03

Install SingleFile

Install SingleFile extension

(optional) Install uBlock Origin for smaller files.

Save a Webpage

Click on the extension while on the webpage you want to save.

Wait until it’s done.

You will find this html file in the downloads

You open it with any web browser.

If pictures are missing, scroll down the page before capture.

Bulk Saving

You can also save pages in bulk.

Hold Shift
Click on the first tab, then the last.

Click on the extension icon again

Archiving

You can shrink the html file by compressing it.

Make sure 7zip is installed.

Right-click (on a file) -> 7-Zip -> Add to archive

Full-page Screenshot

You can take a screenshot instead If

  • Saved webpage is overly large (10 MB+)
  • Page isn’t getting saved properly

Firefox

Right-click -> Take screenshot -> Save full page

Chrome

  1. Press F12
  2. Press Ctrl + P
  3. Type cap f
  4. Hit Enter

Notes

  • It’s good to have uBlock Origin installed to avoid capturing heavy ads.
  • You should scroll down the page to load all the assets before capture
  • Capture might fail If the title is extremely long (n > 255 characters).
    • Chrome – a dialog box will allow you to rename it
    • Firefox – capture fails. To fix this
      1. Press F12
      2. Type document.title = "your title"
      3. Press Ctrl + Enter
  • If capture fails in one browser, use another. I use Firefox and Brave interchangeably
  • If the website is overly long, the screenshot will be cut off at the bottom.
  • If taking a screenshot fails in Firefox
    1. Click on “Copy” instead of “Download”
    2. Paste it into GIMP
    3. Export it as PNG
  • When bulk saving on Chrome, turn off “Ask where to save each time…”