audio-metatag
Clean metadata and tag audio files (MP3, FLAC, Ogg Vorbis)
- Copyright (c) 2015-2026 Corey Goldberg
- Development: GitHub
- Download/Install: PyPI
- License: MIT
About:
audio_metatag is a Python CLI program for cleaning metadata and adding
ARTIST/TITLE tags to MP3, FLAC, and Ogg Vorbis audio files. It can be used on
individual files or a library of files.
- In order to tag a file, it must be named in a specific format:
Artist - Title.mp3,Artist - Title.flac,Artist - Title.ogg- File names must contain a delimiter (
-) betweenArtistandTitle, and end with a valid extension:.mp3,.flac,.ogg(case-insensitive)
- It will skip any files that are not named according to the format specified above
Warning: Edits are done in-place. Backup your files first if you want a copy of the originals.
- Existing metadata is deleted
- ARTIST and TITLE tag data is taken from the filename
- New metadata is saved to the file
Requirements:
- Python 3.12+
Installation:
Install from PyPI:
pip install audio-metatag
CLI Options:
- If filenames are given as command-line options, it will only process those files
- If no filename is specified, it will process all files (recursively) in the current directory
- A different directory can be specified using the
--diroption
usage: audio_metatag [-h] [-d DIR] [-c] [-s] [filename ...]
positional arguments:
filename [optional] file to process (multiple allowed)
options:
-h, --help show this help message and exit
-d, --dir DIR start directory
-c, --clean only clean metadata (don't write new tags)
-s, --show only show metadata (don't remove or write tags)
Usage Examples:
Install from PyPI with pipx:
pipx install audio-metatag
Clean metadata and tag a single file:
audio_metatag "Some Artist - Some Title.mp3"
Clean metadata and tag all files in current directory (recurse subdirectories):
audio_metatag
Clean metadata from all files in a directory (recurse subdirectories):
audio_metatag --clean --dir=/path/to/files
Metadata Details:
Metadata that is clean/removed:
-
FLAC
- VORBIS_COMMENT
- PICTURE
- SEEKTABLE
- CUESHEET
- APPLICATION
- PADDING
- ID3 (extraneous)
-
MP3
- ID3v1
- ID3v2
- APEv2
-
Ogg Vorbis
- Vorbis Comments
Metadata where new tags are written:
-
FLAC
- VORBIS_COMMENT
-
MP3
- ID3v2.4
-
Ogg Vorbis
- Vorbis Comments
Metadata
Release files for audio-metatag 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| audio_metatag-0.1.12.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| audio_metatag-0.1.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / audio_metatag-0.1.12.tar.gz
| Download URL | audio_metatag-0.1.12.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8592e549bda994e4c6c2e88bb22b8c2864ef2e729a8f887011d621cbe2582c7
|
|
BLAKE2b-256 checksum How to use checksums |
9cfd9802e9d4eb9063abe3addd1487d7d1b5e27b8b94bd0e769870b69df11f27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Release files / audio_metatag-0.1.12-py3-none-any.whl
| Download URL | audio_metatag-0.1.12-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b0367f102c7bd44829bbba8e8e60b4203f9f16b967c01a8d47b88f835b8e34c
|
|
BLAKE2b-256 checksum How to use checksums |
15da74f88a6df9272b32b582b4fa82409e3d96c87bd5c604c9396966deae6096
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|