mat2(1)

πŸ“¦
version 0.15.0 Β· 5 versions
, in arch rolling, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– 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!! mat2 does not clean files in-place. Instead, it will produce a file with the word cleaned between the filename and its extension. So for a file named filename.png, you get filename.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 if mat2 has 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-members policy β€” how to handle unknown members of archive-style files. policy should be one of: abort, omit, keep πŸ’€
  • -s, --show β€” list harmful metadata detectable by mat2 without 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. πŸ‘‘


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 πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά