FormatterHQ

Audio

ID3 Tags Explained: How MP3 Metadata Really Works

What id3 tags are, how ID3v1 and ID3v2 differ, the frame IDs worth knowing, how FLAC, M4A and WAV store tags, and why your player shows the wrong title.

Published 6 min read

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:

FieldSizeNotes
Identifier3 bytesAlways TAG
Title30 bytesLonger text is cut off
Artist30 bytes
Album30 bytes
Year4 bytesText such as 1997
Comment30 bytesID3v1.1: 28 bytes, a zero byte, then the track number
Genre1 byteIndex 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:

FrameMeaningExample value
TIT2TitleBlue in Green
TPE1Lead artistMiles Davis
TALBAlbumKind of Blue
TPE2Album artist (officially "band/orchestra")Miles Davis
TRCKTrack number, optionally with total3/5
TYERYear (v2.3)1959
TDRCRecording time (v2.4)1959-03-02
TCONGenre, as text or a numeric referenceJazz
COMMComment, with a language codeeng: Remastered
APICAttached picture (cover art)image/jpeg, front cover
USLTUnsynchronized lyricsFull 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=value pairs in UTF-8, such as TITLE=Blue in Green, ARTIST=Miles Davis, TRACKNUMBER=3 and DATE=1959. Names are not case-sensitive and a field can repeat.
  • M4A and AAC in MP4 store tags as atoms: ©nam is the title, ©ART the artist, ©alb the album, aART the album artist, trkn the track number and covr the cover art.
  • WAV files can carry a RIFF LIST chunk of type INFO with short codes such as INAM (title), IART (artist), IPRD (album) and ICRD (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.

  1. Drop in an audio file and check the common fields: title, artist, album, year, track, genre, comment, composer.
  2. Open the raw native frames, such as TIT2 or APIC, to see exactly what is stored.
  3. View or download the cover art.
  4. Review the format: container, codec, duration, bitrate, sample rate, bit depth, channels and whether it is lossless.
  5. 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.

  • id3
  • mp3
  • audio metadata
  • flac
  • cover art

Frequently asked questions

Does editing ID3 tags change the audio quality?
No. Tags live in their own block before or after the audio frames, so a tag editor rewrites only that block and leaves the encoded sound untouched. The file size changes slightly when you add text or cover art, but the music is not re-encoded.
Which ID3 version should I use?
ID3v2.3 is the safest choice if your music also plays on older devices such as car stereos, because support for it is very broad. ID3v2.4 is the newer standard with UTF-8 text and multiple values per field, and modern desktop and mobile players read it without trouble.
How big can embedded cover art be?
ID3v2 allows very large pictures, but huge images make every copy of the file larger and some devices refuse to show them. A square JPEG of a few hundred to about a thousand pixels is plenty for most players and keeps files small.
Do MP3 files without tags still play?
Yes. Tags are optional and players ignore them when they decode audio. Without tags, a player usually falls back to the file name for the title and shows the artist and album as unknown.
Can ID3 tags contain personal information?
They can. Comment fields, encoder settings and private frames sometimes hold a user name, a ripping program, a purchase ID or an email address. Check the raw frames before sharing files publicly if that matters to you.

Tools used in this guide