How to Remove Metadata with ExifTool (Command Line Guide)
ExifTool is a powerful free command-line tool for reading and writing metadata. Here's how to use it to remove metadata.
View metadata
exiftool photo.jpg
This lists every metadata tag ExifTool can read.
Remove all metadata
exiftool -all= photo.jpg
ExifTool writes a new photo.jpg and keeps the original as photo.jpg_original.
Overwrite without a backup
exiftool -all= -overwrite_original photo.jpg
Use this carefully. There's no undo.
Clean a whole folder
exiftool -all= -r folder_name
The -r option includes subfolders.
Keep the colour profile
exiftool -all= -tagsfromfile @ -icc_profile photo.jpg
This removes everything, then copies the ICC profile back.
Remove only GPS
exiftool -gps:all= photo.jpg
Things to know
- ExifTool doesn't rotate pixels, so removing the orientation tag can turn photos sideways. See the EXIF orientation tag.
- For PDFs, ExifTool's edits can sometimes be reversible because of how PDF updates work. Check ExifTool's documentation for PDF behaviour.
- It's a command-line tool, which is great for scripts but not for everyone.
A visual alternative
If you'd rather not use the command line, GetFileClean does the same job in your browser with a visual report, handles PDFs, Office files and video, and keeps photos upright.
Topics in this guide
- exiftool remove metadata
- exiftool all=
- exiftool command
- command line metadata remover
- exiftool tutorial