This script will convert all images and CSS to data URLs. Installation pip install git+https://github.com/iffy/inliner.git Usage cat some.html | inliner.py > standalone.html See inliner.py --help for more information.