mat2 is a command-line metadata removal utility designed to reduce the amount of potentially sensitive information embedded in files. Documents, photographs, audio recordings and other files can contain information that is not apparent when viewing their contents, including author names, software details, timestamps and location information. mat2 processes these files to remove as much unwanted metadata as possible before they are shared.
The application supports a wide variety of file types and uses format-specific processing to handle different metadata structures. Its default behaviour is to create a separate cleaned file rather than overwrite the original, providing a straightforward way to compare results or retain an unmodified copy. mat2 is particularly useful for privacy-conscious users, journalists and organisations preparing documents or media for distribution. It also provides the metadata-cleaning engine used by graphical applications such as Metadata Cleaner.
This is free and open source software.
Key Features
- Remove potentially sensitive metadata from supported file formats.
- Inspect detectable metadata without modifying the source file.
- Process multiple files in a single command.
- Create cleaned copies while retaining the original files by default.
- Provide an optional mode for cleaning files in place without creating backups.
- Support JPEG, PNG, TIFF, GIF, BMP and WebP images.
- Handle AVIF and JPEG XL image formats.
- Remove metadata from PDF documents and EPUB publications.
- Process Microsoft Office documents including DOCX, XLSX and PPTX.
- Support OpenDocument text, spreadsheet and presentation files.
- Clean metadata from MP3, FLAC, MP4 and other supported audio and video formats.
- Process supported archives including ZIP and TAR files.
- Support SVG graphics and other text-based file formats.
- Provide a lightweight cleaning mode that preserves more file functionality while removing less metadata.
- Offer configurable handling of unknown members in archive-based documents.
- List supported formats and report processing information through the command-line interface.
- Integrate with file managers and other applications through external interfaces.
Website: github.com/jvoisin/mat2
Support:
Developer: Julien (jvoisin) Voisin
License: GNU Lesser General Public License v3.0

mat2 is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Photo Metadata Editors | |
|---|---|
| Photini | Easy to use digital photograph metadata editor |
| ExifTool | CLI application and library for reading and writing meta information |
| Exiv2 | C++ library and a command line utility to manage image metadata |
| digiKam | Provides tools for viewing and editing metadata |
| jExifToolGUI | Graphical frontend to ExifTool |
| Jhead | Exif Jpeg header manipulation tool |
| Scramble | Privacy-focused image metadata removal tool |
| Phatch | Simple to use cross-platform GUI photo batch processor |
| mat2 | Remove metadata from files to improve privacy |
| Metadata Cleaner | Inspect and remove metadata from files |
| Kleaner | Clean metadata from images with a simple graphical interface |
| Metamorphosis | Inspect and change embedded metadata |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.