Archive a Webpage as a Single HTML File
In this article
Archiving a webpage as a single HTML file bundles all its text, images, and styling into one portable document. This is useful for offline reading, preserving content for research, or sharing a snapshot without broken links. You only need a web browser and, for some methods, an internet connection.
What You'll Need
- A modern web browser (Chrome, Edge, Firefox, or Safari)
- The webpage you want to archive (open in your browser)
- Optional: a folder on your computer to save the file
Step-by-Step
- Open the webpage in your browser. Make sure it loads completely, including images and any lazy-loaded content (scroll through the page).
- Open the browser menu (usually three dots or lines in the top-right corner).
- Select "Save Page As" (or "Save As" in some browsers). You can also press Ctrl+S (Windows/Linux) or Cmd+S (Mac).
- Choose a location on your computer where you want to save the file.
- In the "Save as type" dropdown, select "Webpage, Single File" (Chrome/Edge) or "Web Archive, Single File" (Firefox). Safari saves as .webarchive by default.
- Name the file (e.g., "article-about-cats.html") and click Save.
- Verify the archive: open the saved file from your hard drive. It should display the page with images and styling, even if you're offline.
Common Mistakes
- Choosing "Webpage, Complete" instead of "Single File" – this creates a folder with separate files, not a single HTML.
- Not scrolling through the page before saving – lazy-loaded images may not be captured.
- Saving from a browser that doesn't support single-file – older browsers may only offer "Complete" or "HTML Only".
- Overwriting the original file when saving a new version – use a new filename or date.
- Ignoring dynamic content – videos, animations, or JavaScript-driven elements may not be preserved.
Tips
- For a cleaner archive, use a browser extension like "SingleFile" (available for Chrome, Firefox, Edge) that captures the page more thoroughly, including iframes and some scripts.
- If the page has paywalled or login-protected content, you must be logged in and have access before saving.
- Check the file size – a large page with many images can result in a 10–50 MB HTML file.
- Name your file descriptively, including the date (e.g., "bbc-news-2025-01-15.html") for easy reference.
- For long-term archiving, consider also saving a PDF version as a backup.
Troubleshooting
Problem: The saved file doesn't show images.
Cause: Some images are hosted on a CDN and not embedded. Solution: Use the SingleFile extension, or save the page as PDF instead. Alternatively, try saving from a different browser.
Problem: The file is huge (100+ MB).
Cause: The page has many high-resolution images or embedded media. Solution: Use a tool that compresses images, or save only the text content using "Save as HTML Only" (but this loses images).
Problem: The page looks broken when opened offline.
Cause: The page relies on external CSS or JavaScript that wasn't captured. Solution: Use SingleFile, which inlines all resources. Also, make sure you selected "Single File" not "HTML Only".
Problem: The save dialog doesn't offer "Single File" option.
Cause: You might be using an outdated browser. Update your browser, or use an extension like SingleFile.
Problem: Dynamic content (e.g., comments, charts) is missing.
Cause: These elements load via JavaScript after the initial page load. Solution: Scroll through the page to trigger loading, then save. Some content may never be captured; use a dedicated archiving service like the Wayback Machine as a fallback.
Frequently Asked Questions
Can I archive a webpage without any software?
Yes, using your browser's built-in "Save Page As" feature. No additional software is needed.
Will the archived HTML file work on any device?
Yes, as long as the device has a web browser. The file is self-contained and doesn't require internet access.
Does archiving a webpage violate copyright?
It can, if you distribute or use the content beyond personal archiving. For personal use, it's generally acceptable, but check the website's terms of service.
How do I archive a webpage that requires login?
Log in to the site first, then save the page while you're logged in. The archived file will include the content you see, but may not work for others.
Can I edit the archived HTML file?
Yes, you can open it in a text editor and modify the HTML code, though it may be complex due to embedded data.
What's the difference between "Webpage, Single File" and "Webpage, Complete"?
"Single File" creates one .html file with everything embedded. "Complete" creates an .html file plus a folder of resources (images, CSS, etc.). Single File is more portable.