Codes and Identifiers
CDTOC – Compact Disc Table of Contents
- Used to identify audio CDs based on the number of tracks and their lengths in order.
- Measured in frames where:
- 1 frame = 588 samples
- 1 frame = 1 sector
- 75 frames = 1 second
- Examples of encodings per service:
- MusicBrainz
1
1 7 145536 150 21163 40383 58974 81737 101849 121145
- CUETools
- Gracenote
1
150 21163 40383 58974 81737 101849 121145 145536
- MCDI
1
96+52AB+9DBF+E65E+13F49+18DD9+1D939+23880
- MusicBrainz
CDID – Compact Disc Identifier
- Used to identify audio CDs based on the number of tracks and their lengths in order.
- Track offsets and lengths cannot be deduced from the identifier without a lookup.
- Examples of implementations per service:
- MusicBrainz
1
t3HFsohhglnyq3wqMIcpyN6.GKo-
- CUETools
1
F1_BSfwmYSGkzPbV7jsW0Dt4ThY-
- AccurateRip
1
0008b189-0034479c-62079207
- FreeDB
1
62079207
- MusicBrainz
Label Code
- 4-digit or 5-digit code prefixed with "LC-".
- Used to identify music labels.
CatNo, Cat# – Catalog Number
- Used to identify releases within and between music labels.
- Usually consists of a label abbreviation and a product number.
- Usually printed on the spine and back of CD cases.
- Sometimes contains a code marking the release medium.
- Sometimes ends with a number delimited by "-" or "~", denoting multiple sequential catalog numbers for one release.
- Not unique across labels.
- No standard format.
ISRC – International Standard Recording Code
- Used to identify sound recordings.
- 12-character alphanumeric uppercase code formatted like "CCXXXYYNNNNN":
- "CC" is the country code.
- "XXX" is the issuer code within the country.
- "YY" is the last 2 digits of the year.
- "NNNNN" is an identifier for the recording within the year.
ISWC - International Standard Work Code
- Used to identify musical works / compositions.
- 11-character alphanumeric uppercase code formatted like "T-XXX.XXX.XXX-C":
- "T" is the type code, literal "T".
- "XXXX" is the work identifier.
- "C" is the check digit.
Calculating Check Digits for ISWC Codes
- All work identifier digits are multiplied by their integer weight.
- Multiplication results are summed.
- The sum is subtracted from the nearest multiple of 10 not smaller than the sum.
ISBN – International Standard Book Number
- Used to identify books.
- 10-digit code ending with a check digit.
Calculating Check Digits for ISBN Codes
- All digits are multiplied by their integer weight.
- Multiplication results are summed.
- The sum is subtracted from the nearest multiple of 11 not smaller than the sum.
ASIN – Amazon Standard Identification Number
- Used to identify products on Amazon.
- 10-character base36 uppercase code.
- All products (except books) start with "B".
- Books use ISBNs in place of ASINs.
- All ISBNs are valid ASINs.
GTIN – Global Trade Item Number
- Used to identify general trade goods.
- Primarily used within barcodes.
- X-digit code ending with a check digit.
-
Begins with a 3 digit country code, sometimes denoting categories besides countries.
Code Formerly Symbologies Notes GTIN-14 EAN/UCC-14 ITF-14 - GTIN-13 if starts with zero.
- Used for wholesale packaging.
GTIN-13 EAN/UCC-13
(JAN-13)EAN-13 - GTIN-12 if starts with zero.
- JAN-13 if starts with "45" or "49" for Japan.
- Used outside North America.
GTIN-12 EAN/UCC-12 UPC-A
UPC-E- UPC-E is a compacted 6-digit code meant for small packages.
- Used in North America.
GTIN-8 EAN/UCC-8 EAN-8 - Used for small packages.
Calculating Check Digits for GTIN Codes
- All digits are multiplied by an alternating (3 or 1) weight, which is always 3 for the last digit.
- Multiplication results are summed.
- The sum is subtracted from the nearest multiple of 10 not smaller than the sum.
Updated 2022-03-18