Forensics
ExifTool is a platform-independent tool for reading, writing, and editing metadata in a wide variety of files including images, audio, and video.
sudo apt install libimage-exiftool-perl
exiftool [options] <file>
ExifTool is the most widely used tool for reading, writing, and editing metadata in files. It supports over 400 file formats and hundreds of metadata tags including EXIF, IPTC, XMP, GPS, and proprietary manufacturer data.
Created by Phil Harvey, ExifTool is essential for digital forensics, OSINT investigations, photography workflows, and privacy protection. It can extract timestamps, GPS coordinates, camera settings, software versions, and other embedded information from virtually any file type.
ExifTool is also powerful for metadata sanitization — stripping GPS coordinates, personal information, and other sensitive data from files before public sharing. Its batch processing capabilities make it suitable for analyzing large collections of files efficiently.
exiftool image.jpgDisplay all metadata from a fileexiftool /path/to/fileRead EXIF, IPTC, XMP and MakerNotes from any supported fileexiftool -a -u -g1 image.jpgShow all tags including duplicates and unknown, grouped by locationexiftool -G1 -s image.jpgList metadata with group names and short tag IDsexiftool -s -s -s -Model image.jpgPrint only the value of the Model tag with no tag nameexiftool -common /path/to/fileShow only the common meta information tagsexiftool -GPS:all image.jpgExtract only tags in the GPS groupexiftool "-GPS*" image.jpgExtract GPS-related tags using a wildcardexiftool -json image.jpgOutput metadata in JSON formatexiftool -X image.jpgOutput metadata as RDF/XMLexiftool -csv /path/to/file > out.csvExport metadata for a directory of files to CSVexiftool -htmlDump image.jpg > dump.htmlProduce an HTML byte-level dump of the file structureexiftool -Author="<USER>" image.jpgWrite or overwrite the Author tag valueexiftool -all= image.jpgRemove all metadata from a fileexiftool -all= -overwrite_original image.jpgStrip all metadata in place without keeping a backup copyExtract GPS coordinates, timestamps, and device information from images for intelligence gathering.
Strip metadata from files before sharing to remove GPS locations, names, and device identifiers.
Extract timestamps and device info from files to establish timelines and authenticate evidence.
Batch rename, organize, and edit metadata in photo collections based on camera settings.
Extract author and copyright information from digital files to identify ownership.
Prints a detailed list of all embedded tags hidden within the file, which often includes hardware identifiers, timestamps, software versions, and geographic coordinates.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.