exiftool -verDisplays the installed version number of the ExifTool application
Reads, writes and strips metadata in images, documents, audio and video — invaluable for OSINT and forensics.
sudo apt install libimage-exiftool-perlexiftool -verDisplays the installed version number of the ExifTool application
exiftool -s <file>Displays tag names and values in a short format without extra whitespace
Example
exiftool -s image.pngexiftool -s -s <file>Displays tag values only, omitting the tag names entirely
Example
exiftool -s -s photo.jpgexiftool -j <file>Exports the metadata output in standard JSON format
Example
exiftool -j evidence.jpgexiftool -X <file>Exports the metadata output in RDF/XML format
Example
exiftool -X report.xmlexiftool -php <file>Formats the output as a PHP array for web integration
Example
exiftool -php image.jpgexiftool -T -<tag1> -<tag2> <file>Outputs specific tags in a tab-delimited format for spreadsheet import
Example
exiftool -T -filename -imagesize image.jpgexiftool -g <file>Organizes metadata output by tag group headers like EXIF, XMP, and IPTC
Example
exiftool -g evidence.docxexiftool -G1 <file>Displays the specific family 1 group name for each tag along with the value
Example
exiftool -G1 video.mp4exiftool -H <file>Displays the hexadecimal tag ID for each metadata tag found
Example
exiftool -H unknown_file.binexiftool -D <file>Displays the decimal tag ID for each metadata tag found
Example
exiftool -D firmware.binexiftool -common <file>Displays only the most common and useful metadata tags for quick triage
Example
exiftool -common photo.jpgexiftool -u <file>Extracts unknown tags that ExifTool does not recognize by name
Example
exiftool -u suspicious.jpgexiftool -U <file>Extracts unknown binary tags which may contain hidden data or payloads
Example
exiftool -U payload.jpgexiftool -ee <file>Extracts embedded metadata from video streams or document sub-files
Example
exiftool -ee video.mp4exiftool -ee3 <file>Extracts all embedded data from video files, parsing the entire stream aggressively
Example
exiftool -ee3 video.movexiftool -warning -error -a <file>Extracts only the warning and error messages generated during file parsing
Example
exiftool -warning -error -a evidence.pdfexiftool -csv <dir>Recursively scans a directory and outputs a single CSV file with all metadata
Example
exiftool -csv /case_data/exiftool -r <dir>Recursively processes all files in subdirectories of the specified folder
Example
exiftool -r /evidence/images/exiftool -ext <ext> -r <dir>Processes only files with the specified extension in a directory tree
Example
exiftool -ext jpg -r /home/user/exiftool --ext <ext> -r <dir>Excludes files with the specified extension from processing
Example
exiftool --ext exe -r /server/uploads/exiftool -if '<condition>' <dir>Processes files only if they meet a specific metadata condition
Example
exiftool -if '$iso > 1600' /photos/exiftool -p '<string>' <file>Prints a custom formatted string using tag values for reporting
Example
exiftool -p '$filename found at $gpslatitude' photo.jpgexiftool -listxLists all available tags in XML format including their data types
exiftool -listwLists all Writeable tags available in the current version
exiftool -<tag>=<value> <file>Writes a new value to the specified metadata tag
Example
exiftool -Artist='Investigator' photo.jpgexiftool -<tag>+=<value> <file>Appends a value to a list-type tag like Keywords without overwriting
Example
exiftool -Keywords+='evidence' document.pdfexiftool -tagsfromfile <src> <dst>Copies all metadata tags from a source file to a destination file
Example
exiftool -tagsfromfile original.jpg edited.jpgexiftool -z -tagsfromfile <src> <dst>Copies tags while ignoring internal compression tags to prevent corruption
Example
exiftool -z -tagsfromfile a.jpg b.jpgexiftool -overwrite_original <file>Overwrites the original file directly instead of creating a '_original' backup
Example
exiftool -overwrite_original -all= image.jpgexiftool -overwrite_original_in_place <file>Overwrites the file while preserving file system attributes like creation time
Example
exiftool -overwrite_original_in_place image.jpgexiftool -<tag>= <file>Deletes the specific tag from the file by assigning it an empty value
Example
exiftool -Comment= private.jpgexiftool -all= <file>Removes all supported metadata tags from the file for sanitization
Example
exiftool -all= public_release.jpgexiftool -gps:all= <file>Removes only the GPS and geolocation tags while keeping others intact
Example
exiftool -gps:all= photo.jpgexiftool '-filename<CreateDate' -d <fmt> <dir>Renames files based on their creation date using a specific date format
Example
exiftool '-filename<CreateDate' -d %Y%m%d_%H%M%S.%%e .exiftool '-Directory<DateTimeOriginal' -d <fmt> <dir>Moves files into a directory structure based on their original date year and month
Example
exiftool '-Directory<DateTimeOriginal' -d %Y/%m .exiftool -b -ThumbnailImage <file> > <out>Extracts the binary thumbnail data from a file and saves it as a separate image
Example
exiftool -b -ThumbnailImage doc.jpg > thumb.jpgexiftool -b -PreviewImage <file> > <out>Extracts the large embedded preview image from RAW camera files
Example
exiftool -b -PreviewImage raw.cr2 > preview.jpgexiftool -W+! <fmt> <file>Writes extracted binary data to a file with a unique name pattern
Example
exiftool -W+! %d%f_%t%-c.%s -b -PreviewImage img.cr2exiftool -v <file>Runs in verbose mode to show the detailed parsing process of the file structure
Example
exiftool -v unknown.fileexiftool -v3 <file>Runs in very high verbose mode, providing a hex dump of the parsed tags
Example
exiftool -v3 exploit.pdfexiftool -htmlDump <file>Generates an HTML file illustrating the binary structure and offsets of the metadata
Example
exiftool -htmlDump suspect.jpg > dump.htmlexiftool -validate <file>Checks the file metadata structure for validity and potential corruption
Example
exiftool -validate potential_malware.jpgexiftool -@ <argfile>Reads command-line arguments from a file to bypass shell character limits
Example
exiftool -@ arguments.txtexiftool -config <cfg> <file>Uses a custom configuration file to define user-specific tags or behaviors
Example
exiftool -config custom.config image.jpgexiftool -api LargeFileSupport=1 <file>Enables API support for processing files larger than 4GB
Example
exiftool -api LargeFileSupport=1 huge_video.mp4exiftool -api RequestAll=2 <file>Forces ExifTool to recognize and dump even non-standard or obscure tags
Example
exiftool -api RequestAll=2 weird.jpgexiftool -api QuickTimeUTC=1 <file>Assumes QuickTime date tags are in UTC rather than local time
Example
exiftool -api QuickTimeUTC=1 video.movexiftool -geotag <log> <dir>Adds GPS coordinates to images by correlating time with a GPS track log
Example
exiftool -geotag track.gpx /photos/exiftool -geotime=<val> <file>Sets the GPS timestamp used for synchronization during geotagging
Example
exiftool -geotime='2023:01:01 12:00:00' image.jpg