the title says it all. is there a tool?

I installed ExifTool, but can't find a way to remove all at once with one command.

exiftool -all= inputfile

The latest version of exiftool supports most file formats.


  1. If the input file contained metadata, it removes the metadata and overwrites inputfile, but saves a copy of the original as inputfile_original in the same folder.
  2. If the input file did not contain metadata, it performs no changes.

There are options in ExifTool to delete the original file: -overwrite_original and -overwrite_original_in_place.

  • 1
    Easy to make a mistake, do note the = – Tero Lahtinen Jul 10 '19 at 15:26

The Metadata anonymisation toolkit would do the trick for you. It has a GUI as well.

After Enabling the Universe Repository you can install it with:

sudo apt-get install mat
  • Doesn't support PDF files. – Foreever Apr 29 '19 at 8:20

Yes, there is a tool to remove metadata called exiv2.

Usage: exiv2 rm /path/to/location/files

  • 1
    thanks for the answer. but thats only for images, right? – aaaa Jun 14 '13 at 17:10
  • @aaaa yes my friend. – rɑːdʒɑ Jun 14 '13 at 17:37

You can use Metadata Extraction Tool

The Metadata Extract Tool includes a number of 'adapters' that extract metadata from specific file types. Extractors are currently provided for:

  • Images: BMP, GIF, JPEG and TIFF.
  • Office documents: MS Word (version 2, 6), Word Perfect, Open Office (version 1), MS Works, MS Excel, MS PowerPoint, and PDF.
  • Audio and Video: WAV, MP3 (normal and with ID3Tags), BFW, FLAC.
  • Markup languages: HTML and XML.
  • Internet files: ARC

If a file type is unknown the tool applies a generic adapter, which extracts data that the host system 'knows' about any given file (such as size, file name, and date created).

For more information, and to download visit Metadata Extraction Tool

Source:Metadata Extraction Tool

  • 1
    This program seems to only read the metadata, not remove it. – Håkon A. Hjortland Jul 30 '17 at 5:18

First, install exiftool using this command:

sudo apt-get install libimage-exiftool-perl

Then, go into the directory with the JPEG files. If you want to remove metadata from every file in the directory, use

exiftool -all= *.jpg

For single file, use

exiftool -all= <filename>.jpg
  • This doesn't work for mp3 files – baxx Jan 11 '19 at 17:43
  • @baxx OP does not mentioned to use this with .mp3 files – Hassaan Jan 11 '19 at 17:47
  • 2
    mp3 is a common file type that uses meta data and it's likely that someone will find this post as a result of searching ( I did ) – baxx Jan 11 '19 at 17:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.