Every MP3 carries more than sound. ID3 tags are small blocks of text and images inside the file that tell a player the title, artist, album, track number and which cover to show. When they are wrong you get "Track 01" by "Unknown Artist". This guide explains how ID3v1 and ID3v2 differ, which frame IDs matter, how FLAC and M4A store the same information, and how to inspect any file with the MP3 metadata viewer.
What ID3 tags are
The MP3 standard had no place for song information, so ID3 was added on top: a block of metadata written at the very end of the file (ID3v1) or at the very start (ID3v2). The audio frames in between are untouched, which is why you can change a title without re-encoding the music.
A single file can hold both versions at once, and that redundancy causes many display problems, as you will see below.
ID3v1: 128 bytes at the end of the file
ID3v1 occupies the last 128 bytes of the file and always starts with the ASCII characters TAG. Every field has a fixed width:
| Field | Size | Notes |
|---|---|---|
| Identifier | 3 bytes | Always TAG |
| Title | 30 bytes | Longer text is cut off |
| Artist | 30 bytes | |
| Album | 30 bytes | |
| Year | 4 bytes | Text such as 1997 |
| Comment | 30 bytes | ID3v1.1: 28 bytes, a zero byte, then the track number |
| Genre | 1 byte | Index into a fixed genre list |
A title such as "Concerto for Two Violins in D minor, BWV 1043" does not fit in 30 characters, there is no album artist or disc number, and the genre is a number (17 means Rock) rather than text. ID3v1 also has no declared character set, so non-Latin titles are often unreadable on another computer.
ID3v2: frames at the start of the file
ID3v2 is a variable-length block at the beginning of the file. It opens with a 10-byte header: the characters ID3, two version bytes, a flags byte and a four-byte size:
49 44 33 "ID3"
03 00 version 2.3.0
00 flags (none set)
00 00 21 76 tag size (synchsafe)
The size uses "synchsafe" integers, where only the low 7 bits of each byte count, so 00 00 21 76 means 33 × 128 + 118 = 4,342 bytes of tag data after the header. The file type checker shows a hex dump of a file's first 64 bytes, a quick way to see this header yourself.
After the header come frames, each with a four-character ID, a size, flags and content, so a tag can hold any number of fields, including images.
ID3v2.3 vs ID3v2.4
ID3v2.3 (1999) stores text as ISO-8859-1 or UTF-16. ID3v2.4 (2000) adds UTF-8, allows several values in one text frame, and replaces the separate date frames (TYER, TDAT, TIME) with one timestamp frame, TDRC. Many taggers still write v2.3 by default because some older players and car stereos only read that version.
Common ID3 frame IDs
These are the frames you will meet most often in the raw data:
| Frame | Meaning | Example value |
|---|---|---|
TIT2 | Title | Blue in Green |
TPE1 | Lead artist | Miles Davis |
TALB | Album | Kind of Blue |
TPE2 | Album artist (officially "band/orchestra") | Miles Davis |
TRCK | Track number, optionally with total | 3/5 |
TYER | Year (v2.3) | 1959 |
TDRC | Recording time (v2.4) | 1959-03-02 |
TCON | Genre, as text or a numeric reference | Jazz |
COMM | Comment, with a language code | eng: Remastered |
APIC | Attached picture (cover art) | image/jpeg, front cover |
USLT | Unsynchronized lyrics | Full lyric text |
Compilations depend on TPE2: give every track the same album artist, such as "Various Artists", and most players keep the album together.
Tags in FLAC, Ogg, M4A and WAV
ID3 belongs to MP3. Other formats store the same information their own way:
- FLAC, Ogg Vorbis and Opus use Vorbis comments: plain
NAME=valuepairs in UTF-8, such asTITLE=Blue in Green,ARTIST=Miles Davis,TRACKNUMBER=3andDATE=1959. Names are not case-sensitive and a field can repeat. - M4A and AAC in MP4 store tags as atoms:
©namis the title,©ARTthe artist,©albthe album,aARTthe album artist,trknthe track number andcovrthe cover art. - WAV files can carry a RIFF
LISTchunk of typeINFOwith short codes such asINAM(title),IART(artist),IPRD(album) andICRD(date). Player support is patchy.
Embedded cover art is a complete image file stored inside the audio, much as photos carry EXIF data you can read with the EXIF viewer.
Bitrate, sample rate and what they really tell you
Next to the tags, a viewer shows properties of the audio stream itself:
- Bitrate is kilobits per second of audio data. CBR (constant bitrate) uses the same rate for every frame; VBR (variable bitrate) spends more bits on complex passages, so the figure shown is an average.
- Sample rate is samples per second per channel: 44.1 kHz for CD-sourced music, 48 kHz for most video soundtracks.
- Bit depth applies to lossless formats such as FLAC and WAV, typically 16 or 24 bits.
A higher number is not proof of better sound. MP3 is lossy: the encoder discards detail, and it is gone for good. Re-encode a 128 kbps MP3 at 320 kbps and the file grows about two and a half times, but the missing detail does not return, and the second lossy pass can only keep quality the same or make it worse. The bitrate field will still say 320 kbps.
How to inspect id3 tags in your browser
The MP3 metadata viewer reads MP3 (ID3v1, ID3v2.3 and ID3v2.4), FLAC, Ogg, Opus, M4A, WAV, AIFF and WMA files in your browser; nothing is uploaded.
- Drop in an audio file and check the common fields: title, artist, album, year, track, genre, comment, composer.
- Open the raw native frames, such as
TIT2orAPIC, to see exactly what is stored. - View or download the cover art.
- Review the format: container, codec, duration, bitrate, sample rate, bit depth, channels and whether it is lossless.
- Play the file, or export everything as JSON.
The viewer is read-only; to change a title or replace artwork you need a tag editor. To embed a short clip in a web page or test fixture, MP3 to Base64 encodes the file as text.
Why players show the wrong title
When a player shows a title you know you fixed, the cause is usually one of these:
- Two tag versions disagree. You edited the ID3v2 tag, but an old ID3v1 block still holds the previous text, and your player reads that one.
- Truncated text. A title cut off at exactly 30 characters is a sign the player is reading ID3v1.
- Encoding mismatch. Text saved in a local code page but marked as ISO-8859-1 turns into gibberish elsewhere, and v2.3-only software may misread UTF-8 in a v2.4 tag.
- A stale library. Many players copy tags into a database on import and do not reread the file until you rescan.
The fix: check what the file really contains, remove the outdated tag, save as ID3v2.3 if older devices matter, and rescan.