MP3val is a tool for validating and optionally
fixing MPEG audio files. It was primarily designed
for MPEG 1 Layer III (MP3) files, but also
supports MPEG-1, 2, and 2.5 Layers I, II, and III.
It can be useful for finding corrupted files, such
as those that have been downloaded. It supports
ID3v1 tags (which must be at the very end of the
file), ID3v2 tags (at the very beginning of the
file), and APEv2 tags.