Skip to main content

A simple commandline tool to remove the EXIF data from image files.

Project description


All the photos you share online contain metadata. This metadata can include:

  • the location the photo was taken
  • the time the photo was taken
  • detailed information about your camera / phone

Facebook (and most other online advertisers) make money by tracking and selling your personal information. But you should be in control of what information you share with the world.

Enter the exif_delete tool.

This is a simple Python script that I use to strip all of the metadata from my photos before I share them online. It is lightweight and easy-to-use. If you are like me, you take a lot of photos, and this tool will help protect your privacy.


This script will work with Python v3.4 to v3.7 and only requires one third-party library: PIL.

You can install this tool using PyPI to grab the code and install it online by doing:

pip install exif_delete

Or you can install from this repo locally:

python install


This is a simple commandline tool. Just pass the name of the image file(s) you want to strip to the script, and it will do the rest:

python /path/to/my/image.jpg

python image1.jpg image2.png image3.gif

python /path/to/*/my/images/*.jpg

By default, the script will create a new image file with "_safe" appended to the file name. For instance, this:


will become:


However, if you want to just over-write the original image file by stripping all the EXIF data from it, you can add the --replace flag:

python --replace /path/to/my/image.jpg

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exif_delete-0.9.8.tar.gz (4.6 kB view hashes)

Uploaded source

Built Distribution

exif_delete-0.9.8-py3.6.egg (5.4 kB view hashes)

Uploaded 3 6

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page