A command-line tool to view and edit ID3v2.3 tags in MP3 files.
This tool reads and modifies MP3 metadata tags using direct binary file manipulation. It supports viewing all tags and editing title, artist, album, year, genre, and comments.
- View MP3 metadata (title, artist, album, year, genre, comments)
- Edit existing ID3v2.3 tags
- Direct binary file editing
- Automatic padding preservation
Clone the repository:
git clone https://github.com/ArjunVasavan/mp3-tag-reader.git
cd mp3-tag-readergcc *.c -o mp3tag./mp3tag -v song.mp3# Edit title
./mp3tag -e -t "New Title" song.mp3
# Edit artist
./mp3tag -e -a "Artist Name" song.mp3
# Edit album
./mp3tag -e -A "Album Name" song.mp3
# Edit year
./mp3tag -e -y "2025" song.mp3
# Edit genre
./mp3tag -e -m "Rock" song.mp3
# Edit comment
./mp3tag -e -c "My comment" song.mp3./mp3tag --helpThe program parses the ID3v2.3 header to locate tag frames, reads or modifies frame data directly in binary format, and handles synchsafe integer encoding for frame sizes. Text is padded with zeros when shorter than the original frame size.
Arjun Vasavan
This project is licensed under the MIT License.
© 2025 Arjun Vasavan