Skip to content

Remove Image Metadata (EXIF/GPS) in Bulk on Windows

Remove image metadata and GPS location in bulk on Windows free using WSL and ExifTool. View, strip, and verify EXIF on a whole folder — all offline, nothing uploaded.

MGMCSA Guru Team June 14, 2026 4 min read
A WSL terminal using ExifTool to strip EXIF and GPS metadata from a folder of photos on Windows

Every photo your phone takes is quietly tagged: the camera, the exact date and time, the settings, and very often the GPS coordinates of where you were standing. Post that file anywhere without stripping it and you may be publishing your home address along with the picture. For a task that’s all about privacy, uploading the photos to an online “metadata remover” defeats the purpose — you’d be handing the exact files to a stranger’s server.

ExifTool in WSL does it properly: view what’s hidden in a file, strip it from one photo or a whole folder, and verify it’s gone — all locally, for free, nothing uploaded.

If WSL isn’t set up, start with the WSL install guide.

Install ExifTool

sudo apt update && sudo apt install -y libimage-exiftool-perl

The command is exiftool. Confirm it:

exiftool -ver

See what’s actually in your photos

Before removing anything, look at what’s there. This prints every tag in a file:

exiftool photo.jpg

To zero in on location, just ask for the GPS tags:

exiftool -gps:all photo.jpg

If that returns coordinates, that photo is carrying your location. Seeing it first makes the cleanup concrete.

Before you strip anything

  • WSL installed and ExifTool available
  • A copy of your photos in a working folder
  • Checked one file with exiftool to see what's stored

Strip all metadata from one file

The -all= operation clears every metadata tag:

exiftool -all= photo.jpg

By default ExifTool saves a backup as photo.jpg_original. That’s a safety net — your original metadata is recoverable until you delete it. To skip the backup and overwrite directly:

exiftool -all= -overwrite_original photo.jpg

Strip a whole folder in bulk

Point ExifTool at a directory with -r (recursive) and it processes everything below it. To strip all metadata from every JPG and PNG in a folder and its subfolders:

exiftool -all= -overwrite_original -r .

To limit it to specific types, name the extensions:

exiftool -all= -overwrite_original -ext jpg -ext png -r .

ExifTool prints a summary of how many files it updated, so you get confirmation the batch ran.

Remove only the GPS location

Sometimes you want to keep the camera info and timestamps but drop the location. Clear just the GPS tags:

exiftool -gps:all= photo.jpg

Bulk version across a folder:

exiftool -gps:all= -overwrite_original -r .

ExifTool commands for metadata cleanup

exiftool file.jpg Show all metadata in a file
exiftool -gps:all file.jpg Show just GPS/location tags
exiftool -all= file.jpg Strip all metadata (keeps _original)
exiftool -all= -overwrite_original f Strip all, no backup file
exiftool -gps:all= file.jpg Remove only location, keep the rest
exiftool -all= -overwrite_original -r . Strip everything in a folder tree

Verify it worked

Don’t assume — check. After stripping, re-run the viewer; a clean file shows almost nothing:

exiftool photo.jpg

If location was your concern, confirm specifically:

exiftool -gps:all photo.jpg

No output for the GPS tags means the location is gone.

Wrapping up

ExifTool turns metadata cleanup into a few clear commands: exiftool photo.jpg to see what’s hidden, exiftool -all= to strip it, -gps:all= to remove just the location, and -r to do it across a whole folder. Verify with the viewer afterward so you know it actually worked.

It’s free, it batches, and it runs entirely in WSL — so the photos you’re trying to keep private never get uploaded. While you’re optimizing images, stripping metadata also slims the files; see compress images without losing quality for the rest of that workflow.

Frequently asked questions

What metadata is stored in my photos?

Photos commonly carry EXIF data: camera make and model, exposure settings, the date and time, and often GPS coordinates of where the shot was taken. Files may also hold editing history, thumbnails, and copyright fields. None of it is the image itself, so removing it doesn't change how the photo looks.

Does removing EXIF data reduce image quality?

No. Metadata is separate from the image pixels, so stripping it leaves the photo looking identical and only makes the file a little smaller. ExifTool rewrites the metadata block without touching the image data.

How do I remove only the GPS location and keep the rest?

Use exiftool -gps:all= on the file. That clears just the location tags while leaving camera settings, date, and other EXIF intact — useful when you want to share a photo without revealing where it was taken.

Why did ExifTool create _original files?

By default ExifTool keeps a backup of each file as filename_original. Add -overwrite_original to skip that, or delete the _original files afterward once you've confirmed the results. Keeping them is the safe default.

Does this upload my photos anywhere?

No. ExifTool runs locally in WSL, so your photos and their metadata never leave your machine. That's exactly the point for a privacy task — an online metadata remover would require uploading the very files you're trying to keep private.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.