Web Extension for saving a faithful copy of a complete web page in a single HTML file
Last updated Jul 9, 2026
21.8k
Stars
1.4k
Forks
151
Issues
+24
Stars/day
Attention Score
99
Topics
Language breakdown
No language data available.
โธ Files
click to expand
README
SingleFile
SingleFile helps you to save a complete web page into a single HTML file. SingleFile is a Web Extension (and a CLI tool) compatible with Chrome, Firefox (Desktop and Mobile), Microsoft Edge, Safari, Vivaldi, Brave, Waterfox, Yandex browser, and Opera.Table of Contents
- Table of Contents - Demo - Install - Getting started - Additional notes - FAQ - Release notes - Known Issues and Troubleshooting - Command Line Interface (SingleFile CLI) - Integration with user scripts - File format comparison - Projects using/compatible with SingleFile - Privacy Policy - Contributors - Code derived from third party projects - Icons - LicenseDemo
https://user-images.githubusercontent.com/396787/156664907-cc458e35-f41b-45ca-91eb-372213812b44.mp4Install
SingleFile can be installed from the store of:- Firefox: https://addons.mozilla.org/firefox/addon/single-file
- Firefox for Android:
- Chrome:
- Safari (macOS and iOS): https://apps.apple.com/us/app/singlefile-for-safari/id6444322545
- Microsoft Edge:
- Firefox: https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox
- Chrome and Microsoft Edge: https://github.com/gildas-lormeau/SingleFile-MV3
- Safari: https://github.com/gildas-lormeau/SingleFile-Safari-Extension
Getting started
- Click on the SingleFile button in the extension toolbar to save the page.
- You can click again on the button to cancel the action when processing a page.
Additional notes
- Open the context menu by right-clicking the SingleFile button in the extension
- You can also process multiple tabs in one click and save:
- Select "Annotate and save the page..." in the context menu to:
- The context menu also allows you to activate the auto-save of:
- With auto-save active, pages are automatically saved every time after being
- Right-click on the SingleFile button and select "Manage extension" (Firefox) /
- Enable the option "Destination > save to Google Drive" or "Destination >
- Enable the option "Misc. > add proof of existence" to prove the existence of
- You can use the customizable shortkey Ctrl+Shift+Y to save the current tab or
- The default save folder is the download folder configured in your browser, cf.
- See the extension help in the options page for more detailed information about
FAQ
See https://github.com/gildas-lormeau/SingleFile/blob/master/faq.mdRelease notes
See https://addons.mozilla.org/firefox/addon/single-file/versions/Known Issues and Troubleshooting
See https://github.com/gildas-lormeau/SingleFile/blob/master/known-issues.mdCommand Line Interface (SingleFile CLI)
You can save web pages to HTML from the command line interface. See here for more info: https://github.com/gildas-lormeau/single-file-cli.Integration with user scripts
You can execute a user script just before (and after) SingleFile saves a page. For more info, see https://github.com/gildas-lormeau/SingleFile/wiki/How-to-execute-a-user-script-before-a-page-is-saved.File format comparison
| | HTML | Self-extracting ZIP | MHTML | Webarchive (Safari) | HTML+folder | | --- | :---: | :---: | :---: | :---: | :---: | | Pages are saved as a single file | โ | โ | โ | โ | | | HTML and styles are minified | โ | โ | | | | | Unused HTML and styles are removed from files | โ | โ | | | | | Binary resources are not encoded in base 64 | | โ | | โ | โ | | Files are compressed | | โ | | | | | Files can be viewed without installing any extension | โ | โยน | โยฒ | โยณ | โ | | Files can be viewed without running JavaScript | โ | | โ | โ | โ | | Files can be unzipped to extract page resources | | โ | | | n/a | | Files contains the text of the page (plain or formatted) which can be indexed | โ | โโด | โ | โ | โ | Footnotes: ยน When using the "universal" self-extracting file format ยฒ Only in Chromium-based browsers, and Internet Explorer ยณ Only in Safari โด An option must be enabled in the extensionProjects using/compatible with SingleFile
- ArchiveBox - Open-source self-hosted web archiving:
- htmls-to-datasette - Tool to index HTML files into a Sqlite database:
- Karakeep - Self-hostable bookmark-everything app with a touch of AI:
- KOReader - Document viewer primarily aimed at e-ink readers:
- linkding - Bookmark manager that you can host yourself. It's designed be to
- Linkwarden - Self-hosted collaborative bookmark manager to collect, read,
- obsidian-html-plugin - Plugin for reading HTML pages in Obsidian:
- Org-Dex.el - Emacs package designed to enhance Org-mode by integrating
- Petal Cite Web Importer - Browser extension to save PDFs and capture web pages
- Pocket Search Engine - Semantic search app for Android that works entirely
- Readeck - Bookmark manager and a read later tool: https://codeberg.org/readeck/readeck
- singlefile2trilium - Tool to save faithful copy of a web page as a Trilium
- SingleFile MV3 CDP Patched - fork of SingleFile patched to allow programmatic
- SingleFile MCP - Model Context Protocol (MCP) server that provides intelligent web
- Trilium-SingleFile - An addon for Trilium Notes to easily import SingleFile
- Trilium Simple SingleFile Renderer - A plugin to add a new Template note to
- web document - Browser extension for saving web documents locally, allowing
- Zotero Connector - Browser extension for Zotero, a tool to help you collect,
Privacy Policy
See https://github.com/gildas-lormeau/SingleFile/blob/master/privacy.mdContributors
See https://github.com/gildas-lormeau/SingleFile/blob/master/contributors.mdCode derived from third party projects
- csstree: https://github.com/csstree/csstree
- postcss-media-query-parser:
- postcss-selector-parser: https://github.com/postcss/postcss-selector-parser
- UglifyCSS: https://github.com/fmarcia/UglifyCSS
- parse-srcset: https://github.com/albell/parse-srcset
- parse-css-font: https://github.com/jedmao/parse-css-font
- Readability: https://github.com/mozilla/readability
- whatwg-mimetype: https://github.com/jsdom/whatwg-mimetype
Icons
- Icon made by Kiranshastry
License
SingleFile is licensed under AGPL. Code derived from third-party projects is licensed under MIT. Please contact me at gildas.lormeau <at> gmail.com if you are interested in licensing the SingleFile code for a commercial service or product. Suggestions are welcome :)๐ More in this category