GO KALI FREE

ExifTool

Forensics

Beginnerlow risk

ExifTool is a platform-independent tool for reading, writing, and editing metadata in a wide variety of files including images, audio, and video.

Installation

sudo apt install libimage-exiftool-perl

Basic Syntax

exiftool [options] <file>

Quick Facts

Full Name
ExifTool (Phil Harvey's Image Metadata Tool)
License
Artistic License (Open Source)
Author
Phil Harvey
Written In
Perl
Platforms
Linux, Windows, macOS
Category
Metadata Analysis
First Release
2003
Format Support
400+ file formats

Tool Overview

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.

Quick Reference Commands

Verified quick-reference commands for ExifTool
CommandPurpose
exiftool <file>Read available metadata.
exiftool -a -G1 -s <file>Show duplicate tags with group and tag names.
exiftool -a '-gps*' -ee <file>Search broadly for GPS metadata.
exiftool -json <file>Emit metadata as JSON.
ExifTool History

Common Commands

exiftool image.jpgDisplay all metadata from a file
exiftool /path/to/fileRead EXIF, IPTC, XMP and MakerNotes from any supported file
exiftool -a -u -g1 image.jpgShow all tags including duplicates and unknown, grouped by location
exiftool -G1 -s image.jpgList metadata with group names and short tag IDs
exiftool -s -s -s -Model image.jpgPrint only the value of the Model tag with no tag name
exiftool -common /path/to/fileShow only the common meta information tags
exiftool -GPS:all image.jpgExtract only tags in the GPS group
exiftool "-GPS*" image.jpgExtract GPS-related tags using a wildcard
exiftool -json image.jpgOutput metadata in JSON format
exiftool -X image.jpgOutput metadata as RDF/XML
exiftool -csv /path/to/file > out.csvExport metadata for a directory of files to CSV
exiftool -htmlDump image.jpg > dump.htmlProduce an HTML byte-level dump of the file structure
exiftool -Author="<USER>" image.jpgWrite or overwrite the Author tag value
exiftool -all= image.jpgRemove all metadata from a file
exiftool -all= -overwrite_original image.jpgStrip all metadata in place without keeping a backup copy
exiftool -gps:all= image.jpgRemove only the GPS metadata from a file
exiftool -TagsFromFile src.jpg dst.jpgCopy all metadata from a source file to a destination file
exiftool "-DateTimeOriginal+=0:0:0 1:0:0" image.jpgShift the original date/time forward by one hour
exiftool "-FileName<CreateDate" -d "%Y%m%d_%H%M%S.%%e" /path/to/fileRename files based on their capture date/time
exiftool -r /path/to/fileRecursively process all files in a directory tree
exiftool -ext jpg /path/to/fileOnly process files with the .jpg extension
exiftool -if "$GPSLatitude" -r /path/to/fileRecursively list only files that contain GPS data
exiftool -b -ThumbnailImage image.jpg > thumb.jpgExtract the embedded thumbnail image in binary mode
exiftool -v3 image.jpgVerbose output showing tag offsets and raw values
exiftool -verPrint the ExifTool version number

Step-by-Step Guide

  1. 1Execute the command pointing at your target file
  2. 2Analyze the extensive list of embedded tags
  3. 3Look specifically for geolocation coordinates
  4. 4Take note of device models, operating systems, and timestamp data
  5. 5Strip the data entirely if preparing a file for safe publication

Warnings

Use Cases

OSINT Investigations

Extract GPS coordinates, timestamps, and device information from images for intelligence gathering.

Privacy Protection

Strip metadata from files before sharing to remove GPS locations, names, and device identifiers.

Forensic Evidence

Extract timestamps and device info from files to establish timelines and authenticate evidence.

Photography Workflow

Batch rename, organize, and edit metadata in photo collections based on camera settings.

Copyright Investigation

Extract author and copyright information from digital files to identify ownership.

Key Features

Related Tools

Binwalk

Forensics

Learn how to use Binwalk to scan a firmware image, read the signature table, extract embedded filesystems, and spot encrypted regions — a beginner tutorial for Kali Linux.

Steghide

Forensics

Steghide is a steganography tool designed to hide confidential data inside various types of image and audio files without altering their outward appearance.

Autopsy

Forensics

Learn how to use Autopsy, the free digital forensics software, in a hands-on practice case. Start with a verified disk image, run ingest modules, look for deleted files, and use keyword hits and timeline entries to build a report.

Foremost

Forensics

Foremost is a forensic data recovery program that recovers files based on their headers, footers, and internal data structures.

Volatility

Forensics

Volatility is an advanced open-source memory forensics framework used for incident response and malware analysis, allowing extraction of digital artifacts from volatile memory (RAM) samples.

Pipal

Reporting

Pipal is a password analyzer tool that takes a wordlist and provides statistics on it, such as top passwords, base words, lengths, and character sets, useful for analyzing password complexity habits.

Related Cybersecurity Guides

Security Operations · Advanced

Digital Forensics Basics: Collecting and Analyzing Evidence

Learn digital forensics fundamentals including evidence collection, forensic imaging, memory analysis, timeline analysis, and proper chain of custody procedures for investigations.

Security Operations · Advanced

Detection Engineering: Creating Security Alerts and Rules

Learn detection engineering principles including rule development, Sigma rules, testing methodologies, false positive management, and building a detection program for security operations.

Security Operations · Intermediate

How to Analyze Logs: A Beginner's Guide to Linux, Windows & Web Log Analysis

Learn how to analyze logs step by step: read Linux and Windows logs, search with grep and journalctl, and investigate a real brute-force attack in auth.log.

Security Operations · Advanced

Incident Response: Structured Approach to Security Breaches

Learn the incident response lifecycle including preparation, detection, containment, eradication, recovery, and lessons learned with practical frameworks and real-world scenarios.

Frequently Asked Questions

What is ExifTool used for?

ExifTool is used to read, write, and edit metadata in files. It extracts EXIF, IPTC, XMP, GPS, and hundreds of other metadata tags from images, audio, video, and documents for forensic investigation, OSINT, and privacy protection.

Can ExifTool remove all metadata from a file?

Yes, ExifTool can strip all metadata from files using the -all= flag. This is useful for sanitizing files before public distribution to protect privacy and remove GPS coordinates.

What file formats does ExifTool support?

ExifTool supports over 400 file formats including JPEG, PNG, TIFF, RAW camera formats, PDF, MP3, MP4, MOV, DOCX, and many more. It handles metadata in EXIF, IPTC, XMP, and proprietary manufacturer formats.

Is ExifTool safe to use?

ExifTool is safe for reading metadata. Write operations should be tested on copies first, as modifying metadata can occasionally affect file compatibility. Always backup files before batch editing.

Tags

#forensics#metadata#analysis

Output Explanation

Prints a detailed list of all embedded tags hidden within the file, which often includes hardware identifiers, timestamps, software versions, and geographic coordinates.

Ethical Usage Notice

This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.