Skip to content

MAT2

Command-line tool that strips metadata from images, documents, audio and video files

Weak copyleft (OSI) · LGPL-3.0
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

62

Health

Active

Overview

Stars

396

Last commit

8 days ago

Nov 2026

Repository age

7 years

since Apr 2019

Latest version

0.15.0

Aug 2026

Contributors

–

4 active in 90 days

Releases

1

last 12 months

Language

Python

mat2 removes metadata from files before you share them. Cameras record when a photo was taken and with what device. Office and PDF files often carry author and company names. mat2 cleans as much of this as it can.

It ships as a Python library called libmat2, a command-line tool and a service menu for Dolphin in KDE. It writes a cleaned copy, for example myfile.cleaned.png, instead of changing the original, unless you pass the inplace option. You can list harmful metadata without removing it, or run a lightweight mode that removes only some. Supported formats include jpeg, png, pdf, mp3, flac, mp4, epub, avi and OpenDocument files.

It needs Python 3.11 or newer, with Poppler, GdkPixbuf, mutagen and ExifTool for different formats. FFmpeg is optional for video. A Homebrew route exists for macOS. A separate web service, mat2-web, and the GTK app Metadata Cleaner build on it. The license is LGPL-3.0.

Who it's for

Journalists and activists sharing files publicly

It removes author, device and location traces from photos and documents.

Skip if: You need guaranteed anonymity, since metadata removal is best effort.

Linux users who prefer a graphical cleaner

Metadata Cleaner is a GTK app that uses mat2 underneath.

Skip if: You work on Windows without a Python setup.

The problem it solves

Photos, PDFs and office files carry hidden details such as author, camera and timestamps. mat2 removes them so you do not share more than you intend.

Strengths

  • Supports many formats including images, PDF, audio, video and OpenDocument
  • Writes a cleaned copy and leaves the original intact by default
  • Can list metadata without removing it
  • Usable as a library, CLI or Dolphin menu

Trade-offs

  • Removal is best effort, not a complete guarantee
  • Several system libraries must be installed first
  • Documented for Linux and macOS only

Self-host MAT2

Self-hostable
No (desktop or local app)

Quick start

brew install exiftool cairo pygobject3 poppler gdk-pixbuf librsvg ffmpeg

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is mat2 free?

Yes. It is open source under LGPL-3.0.

Does it overwrite my files?

Not by default. It creates a cleaned copy, unless you use the inplace option.

Which platforms does it support?

Linux and macOS, as a command-line tool. Homebrew can install its dependencies on macOS.

Is there a graphical interface?

Yes. Metadata Cleaner is a GTK app that uses mat2, and mat2-web provides a web service.

Similar tools in Privacy tools

Amarok

Privacy tools

Android app that hides private files and apps instantly, without encrypting them

3.4k 125 9 months ago Dormant Apache-2.0

Nearby Glasses

Privacy tools

Android app that warns you when smart glasses may be nearby

2.6k 115 22 days ago Active AGPL-3.0

libmedium

Privacy tools

Privacy-focused proxy for reading Medium posts without visiting medium.com

96 8 2 years ago Dormant AGPL-3.0

URLCheck

Privacy tools

2.2k 136 16 days ago Slowing Unknown

Hyphanet

Privacy tools

Peer-to-peer network node for anonymous, censorship-resistant publishing and chat

1.2k 236 2 months ago Slowing GPL-2.0

Websurfx

Privacy tools

Self-hosted Rust meta search engine for people who want private web search

1.2k 127 17 days ago Active AGPL-3.0