# ExifTool

> Perl library and command-line app for reading and writing metadata (EXIF, IPTC, XMP, maker notes) in hundreds of image, video, audio, and document formats.

Stars: 5.3k · Language: Perl · License: GPL-3.0 · Categories: File Management

- Repository: https://github.com/exiftool/exiftool
- Website: https://exiftool.org/
- Page: https://www.trmn.sh/tools/exiftool

## Install

- Build from extracted source directory (final step requires privileges): `perl Makefile.PL`
- Build from extracted source directory (final step requires privileges): `make`
- Build from extracted source directory (final step requires privileges): `make test`
- Build from extracted source directory (final step requires privileges): `make install`

## Overview

ExifTool is a set of Perl modules (Image::ExifTool) plus a command-line application, exiftool, for reading and writing meta information in files. It supports a large list of file types, including JPEG, TIFF, PNG, HEIC, PDF, MP4, MOV, DNG and many camera RAW formats (CR2, CR3, NEF, ARW, ORF, RAF and others). Each format is marked in the README as read, write, or create.

Supported metadata formats include EXIF, GPS, IPTC, XMP, ICC Profile, Photoshop IRB, JFIF, MIE, PDF, PNG, GeoTIFF, QuickTime, Matroska, ID3 and more. It also decodes maker note information from many camera manufacturers, such as Canon, Nikon, Sony, Panasonic/Leica, Olympus, Pentax, Fujifilm, DJI and FLIR. Some formats are read-only, such as ZIP, DOCX, MP3 and MKV.

The exiftool script can be run directly from the extracted distribution without installing, for example `./exiftool t/images/ExifTool.jpg`. If the script is moved, the lib directory must move with it, or Image::ExifTool must be installed. On Windows cmd, it can be run as `perl exiftool` or by renaming it to exiftool.pl. It requires Perl 5.004 or later with no other mandatory libraries. Optional modules add support for compressed or encrypted data, such as Archive::Zip for ZIP and Office formats, Compress::Zlib for PNG and PDF, and Digest::MD5 and Digest::SHA for some PDF and IPTC data.

It suits photographers, digital asset managers, forensic analysts, and developers who need to inspect or edit file metadata from the terminal or from Perl scripts.

### Installation

```bash
# via Build from extracted source directory (final step requires privileges)
perl Makefile.PL
make
make test
make install
```

## Alternatives

- [PathPicker](https://www.trmn.sh/tools/pathpicker.md): Command-line tool (fpp) that parses piped output for file paths, shows a curses selector, and opens the selected files in $EDITOR or runs a command on them. (Python, 5.2k stars)
- [rsync](https://www.trmn.sh/tools/rsync.md): File copying and synchronization tool for local and remote paths, with delta transfers for remote updates and SSH or rsync-daemon connections. (C, 5.4k stars)
- [s3cmd](https://www.trmn.sh/tools/s3cmd.md): Python command line client for uploading, retrieving and managing data in Amazon S3 and S3-compatible storage such as Google Cloud Storage and DreamObjects. (Python, 4.9k stars)
- [xplr](https://www.trmn.sh/tools/xplr.md): Terminal-based file explorer with Lua scripting, keyboard controls, and plugin system for command-line integration (Rust, 4.9k stars)
- [trash-cli](https://www.trmn.sh/tools/andreafrancia-trash-cli.md): Command-line interface to the freedesktop.org trashcan: trash, list, restore, and empty files using the same trash as KDE, GNOME, and XFCE. (Python, 4.6k stars)

---

Canonical: https://www.trmn.sh/tools/exiftool
