mat2(1)
π mat2 β the metadata anonymisation toolkit 2 π
okay so bestie, welcome to the manual page for mat2, the metadata anonymisation toolkit 2 π (yes it's a User Command, yes it's iconic, we love her)
β¨ SYNOPSIS β¨
mat2 [-h] [-v] [-l] [-V] [-s | -L] [files [files ...]]
π¦ DESCRIPTION π¦
no cap, mat2 removes metadata from various fileformats. She supports a wide variety of file formats β audio, office, images, β¦ literally the whole roster π
careful bestie!!mat2does not clean files in-place. Instead, it will produce a file with the wordcleanedbetween the filename and its extension. So for a file namedfilename.png, you getfilename.cleaned.png. π«Ά The original stays untouched, periodt.
πΈ OPTIONS πΈ
π§ positional arguments:
filesβ the files to process β¨ (yes plural, you can feed her many)
π optional arguments:
-h,--helpβ show this help message and exit π-v,--versionβ show program's version number and exit π-l,--listβ list all supported fileformats π--check-dependenciesβ check ifmat2has all the dependencies it needs π (vibe check on her whole setup, fr)-V,--verboseβ show more verbose status information π£οΈ (she will yap, and honestly? we listen)--unknown-memberspolicy β how to handle unknown members of archive-style files. policy should be one of:abort,omit,keepπ-s,--showβ list harmful metadata detectable bymat2without removing them π (a lil sneak peek before the glow-up)-L,--lightweightβ remove SOME metadata β‘ (note the caps, she means some)--inplaceβ clean in place, without backup π no backup!! be so for real before you run this one!!
β EXAMPLES β
To remove all the metadata from a PDF file:
mat2 ./myfile.pdf
π NOTES ABOUT METADATA π
okay listen, while mat2 is doing its very best to display metadata when the --show flag is passed, it doesn't mean that a file is clean from any metadata if mat2 doesn't show any. There is no reliable way to detect every single possible metadata for complex file formats. π
This is why you shouldn't rely on metadata's presence to decide if your file must be cleaned or not. Fr fr.
Moreover, mat2 goes to great lengths to make sure that as much metadata as possible are removed. This might sometimes result in a loss of quality of the processed files. π« For example, textual based pdf file converted into image based one means that it'll be no longer possible to select text in them. If you're experiencing this, you might want to give the lightweight cleaning mode a try β but keep in mind by doing so, some metadata won't be cleaned. π
π BUGS π
While mat2 does its very best to remove every single metadata, it's still in beta, and some might remain. π Should you encounter some issues, check the bugtracker: https://github.com/jvoisin/mat2/issues
Please use accordingly and be careful. π«Ά
π AUTHOR π
This software was made by Julien (jvoisin) Voisin with the support of the Tails project. π
π COPYRIGHT π
This software is released on LGPLv3. βοΈ slay
π SEE ALSO π
and that's the whole page bestie!! this was mat2 version 0.14.0, dated October 2025 β go clean your files, protect your privacy, and stay iconic πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- arch rolling: mat2 0.15.0-1 Β· LGPL-3.0-or-later
- fedora 43: mat2 0.14.0-1.fc43 Β· LGPL-3.0-or-later
- fedora 44: mat2 0.14.0-3.fc44 Β· LGPL-3.0-or-later
- nixos 26.05: python3.13-mat2 0.14.0
- nixos 26.05: python3.14-mat2 0.14.0
- nixpkgs unstable: python3.13-mat2 0.15.0
- nixpkgs unstable: python3.14-mat2 0.15.0
- ubuntu resolute: mat2 0.14.0-1ubuntu1 Β· LGPL-3.0-or-later
- ubuntu stonking: mat2 0.14.0-1ubuntu1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms