
mat2
mat2 removes metadata from commonly used file formats and is written in Python, according to its repository description.

About mat2
mat2 is an open source metadata removal tool written in Python 3. Its core is a library, libmat2, which is used by a command-line interface named mat2 and by file manager extensions, including a service menu for the Dolphin file manager. It supports a wide range of common formats, including images, audio, video, PDF, Office documents, SVG, and archive files.
By default, mat2 does not change the original file. It writes a cleaned copy with ".cleaned" added to the file name, such as "myfile.cleaned.png". The --inplace option cleans a file in place without a backup. The source states that mat2 cannot reliably detect every possible kind of metadata, so the absence of metadata shown by --show should not be taken as proof that a file is clean. The lightweight mode removes only some metadata, and the default mode may alter file content, for example by making text in PDFs no longer selectable. The source lists Python 3.11 or later and several system dependencies, with setup instructions for macOS using Homebrew.
Key features
- Removes metadata from many common image, audio, video, document, and archive formats
- Command-line tool that writes a cleaned copy and leaves the original file unchanged
- The --inplace option cleans a file without keeping a backup
- The --show option lists detectable metadata without removing it
- Lightweight mode (-L) removes some metadata rather than as much as possible
- Core library, libmat2, can be used by other software
- Open source, with the source code publicly available in the repository
- Supports a wide range of commonly used file formats
- Includes a test suite and coverage instructions in the repository
- The source states there is no reliable way to detect every possible metadata in complex file formats
- Lightweight and default modes may alter file content, such as making PDF text unselectable
- Requires Python 3.11 or later and several additional system libraries
mat2 at a glance
- Website
- github.com/jvoisin/mat2
- Category
- Software & Utilities › File Utilities
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Platforms
- macOS
- Open source
- Yes · Source code
- Language
- English
- Last checked
- Oct 6, 2026 · Online when checked
- Listed
- Oct 5, 2026
Guides for File Utilities

mat2 alternatives
Tools and sites you could use instead, ranked by how closely they match.
PrivMeta removes metadata with browser-side processing and no file uploads, according to its open-source project.
Metadata Remover removes metadata in the browser using WebAssembly, with files processed locally and not uploaded, according to its repository.
Blazing fast terminal file manager written in Rust, based on async I/O.
F2 batch-renames files and directories through a cross-platform command-line tool written in Go.
Browse and print file contents with bat, a command-line cat alternative documented in this repository.
SCP, SFTP, FTP, S3, SMB, and WebDAV transfers are supported by termscp, a terminal file utility.
Popular in File Utilities
Well-known listings from the same topic.
mat2 FAQ
Does mat2 overwrite my original files?
Can mat2 confirm that a file has no metadata left?
What does lightweight mode do?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.












