Save pages as self-contained HTML. Two engines: DIY (with image compression) and SingleFile CDN. Credits: https://github.com/gildas-lormeau
☕ If you find this tool helpful & would like to support its maintenance, please consider leaving a tip on:
Thank you! :-)
🖼 For a quick impression of this script, refer to the screenshots at the bottom.
Save any webpage as a single, self-contained HTML file with all images, styles, and fonts embedded. Choose between two engines: a built-in DIY archiver with image compression and optimization, or the powerful SingleFile engine loaded from CDN.
Saving webpages is harder than it should be:
This script produces a single .html file that looks like the original page and works forever — offline, portable, searchable.
| Engine | Description |
|---|---|
| DIY | Built-in archiver with image compression, unused CSS/font removal, parallel fetching. Zero external dependencies, works offline. |
| SingleFile CDN | Official SingleFile engine loaded from CDN. Maximum fidelity, advanced CSS processing. Requires network access. |
@font-face for unused fonts are removed<img> sources, srcset variants, CSS background-image@import resolved, url() embedded<image> and xlink:href references| Action | How |
|---|---|
| Save page | Left-click the 💾 button (bottom-right corner) |
| Change engine | Right-click the button → select DIY / SingleFile CDN / Auto |
| Mode | Behavior |
|---|---|
| DIY (default) | Use built-in archiver |
| SingleFile CDN | Use SingleFile engine from CDN |
| Auto | Try DIY first, fall back to CDN if it fails |
Your selection persists across sessions and pages.
Processing page (DIY)... — DIY engine workingEmbedding resources... 42/78 — resource processing progressProcessing page (SingleFile CDN)... — CDN engine working✅ Saved in 3.2s · 1842KB (diy) — success with engine and file sizeThe save button lives inside a closed Shadow DOM:
Resources on different domains (CDN images, Google Fonts) are fetched via GM_xmlhttpRequest, bypassing CORS restrictions.
Sites with strict Content Security Policy may block the CDN engine. The DIY engine works everywhere since it requires no script injection. In Auto mode, CDN failures automatically fall back to DIY.
Q: Which engine should I use? A: DIY works great for most sites. Try SingleFile CDN if you need maximum fidelity on complex pages.
Q: Why is my saved file large? A: All images/fonts/styles are embedded. DIY compresses images and removes unused CSS to minimize size.
Q: Does this work offline? A: DIY works fully offline. SingleFile CDN requires internet to load the library.
Q: Is my data sent anywhere? A: No. Everything runs locally. Network requests are only for fetching page resources and (for CDN mode) loading the SingleFile library.