How to Save a Webpage as MHTML in Edge on Windows 11
🔍 WiseChecker

How to Save a Webpage as MHTML in Edge on Windows 11

Quick fix: In Edge, press Ctrl + S. In the Save dialog, change Save as type from Webpage, complete to Webpage, single file (.mhtml). The entire page including images, CSS, and JavaScript saves as one .mhtml file you can email or archive.

You want to save a webpage as one file — not the messy folder-with-many-files of HTML + images. MHTML (MIME HTML) bundles everything into a single archive. Edge supports it natively. Useful for documentation, evidence, offline reading, or email attachments.

Symptom: Want to save a webpage as a single self-contained file rather than the default folder-of-resources.
Affects: Microsoft Edge on Windows 11 (and Windows 10).
Fix time: ~2 minutes.

ADVERTISEMENT

What causes this

MHTML is a format that packages HTML, images, CSS, and JavaScript into a single MIME-encoded file. The .mhtml file can be opened by Edge, Chrome, Firefox, Word, and many email clients. Versus saving as “Webpage, complete”: that creates an .html file plus a folder of resources, which is messy to move or attach.

Method 1: Save MHTML via Edge save dialog

The standard route.

  1. Open the webpage in Edge. Wait for it to fully load.
  2. Press Ctrl + S or click three-dot menu → More tools → Save page as.
  3. Save dialog appears. Pick a filename.
  4. Change Save as type dropdown to Webpage, single file (.mhtml).
  5. Pick destination folder. Click Save.
  6. The page saves as one .mhtml file. Size is typically 100 KB–5 MB depending on page complexity.
  7. To re-open: double-click the file. Opens in Edge by default.

This is the simple path.

ADVERTISEMENT

Method 2: Save MHTML programmatically via PowerShell

For automation or bulk saves.

  1. Use Edge’s headless mode:
    & "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --headless --disable-gpu --save-page-as-mhtml --save-page-as-mhtml-output=C:\saved.mhtml https://example.com

    Replace path with actual Edge install path.

  2. For multiple URLs: script with foreach loop.
  3. Alternative: use Edge’s remote debugging protocol:
    & msedge.exe --remote-debugging-port=9222 https://example.com

    Then use Edge Inspector at edge://inspect to save MHTML programmatically.

  4. For Chrome (compatible): same flags work with Chrome.
  5. For headless save scripts: useful for archiving daily reports, monitoring page changes.

This is the right path for automation workflows.

Method 3: Alternative formats for archival

When MHTML isn’t the right tool.

  1. Save as PDF: Ctrl + P → pick Save as PDF as the printer. Preserves layout exactly. PDF is more universal than MHTML and opens everywhere.
  2. Save as HTML, complete: Ctrl + SWebpage, complete. Creates .html + folder. Editable. Useful if you want to extract images separately.
  3. Save as Reader Mode: in Edge, click the Reading Mode icon, then save. Clean text-only version with no ads or sidebars.
  4. Web Archive (.maff): Firefox-specific format, similar to MHTML. Edge can open .mhtml; opening .maff requires Firefox.
  5. Print to PDF: same as save-as-PDF but with print-mode CSS. Often cleaner output (no ads, no fixed-position elements).
  6. Web Capture screenshot: Edge has a built-in screenshot tool. Ctrl + Shift + S opens Web Capture → pick full page. Saves as PNG image.

Pick based on use case: PDF for printing/sharing, MHTML for browser re-opening, image for quick visual reference.

How to verify the fix worked

  • Saved .mhtml file is single, no accompanying folder.
  • Double-click the file. Edge opens it. Page renders as expected with images and styling.
  • File size matches typical page complexity (KB to MB range).

If none of these work

If MHTML save fails or page doesn’t render correctly: Dynamic content: pages relying heavily on JavaScript may not render correctly when reopened from MHTML. JavaScript still runs in Edge when reopening, but external API calls fail (no internet at reopen) so dynamic data is gone. Save as PDF instead. Login-required pages: MHTML saves the rendered page as you see it. If you’re logged in, the saved page includes your logged-in view. Don’t share if it includes private content. Site blocks save: some sites use scripts to prevent saving (rare). Disable JavaScript via Edge Settings → Cookies and site permissions → JavaScript, then re-save. For very large pages: extremely image-heavy pages (Pinterest boards, e-commerce listings) may produce 50+ MB .mhtml. Use Print to PDF for smaller archives. For repeatedly saving the same page over time: use a feed reader (Inoreader, Feedly) or web archive service (archive.org Wayback Machine, archive.today) for version tracking.

Bottom line: Ctrl+S in Edge → Save as type: Webpage, single file (.mhtml). One file, self-contained, opens in any modern browser.

ADVERTISEMENT