Card (ICC)Format: cnLength: ≤10
5A

Application PAN

Tag ID
5A
Format
cn
Length (bytes)
≤10
Source
Card (ICC)

What it is

The Application PAN is the cardholder account number for this application, encoded as compressed numeric (BCD) and right-padded with hex F to a whole number of bytes. It is the same PAN that appears embossed on the card and inside Track 2.

It is sensitive cardholder data; validate it with the Luhn check digit and never log it in the clear.

Where it appears

Read from the card record files (per the AFL) after GET PROCESSING OPTIONS.

How tag 5A is encoded

EMV data objects are BER-TLV: tag, then length, then value. 5A is a 1-byte, application class, primitive tag (tag number 26), so its value is plain data rather than nested TLV objects.

5A01011010Bits 8–7 = 01: application class. Bit 6 = 0: primitive. Bits 5–1 give tag number 26.

Length

The value is up to 10 bytes long, so the length field runs to 0A.

Value format cn

Format cn is compressed numeric: BCD, two digits per byte, left-aligned and padded on the right with F nibbles.

Who supplies it

The card supplies this value. The terminal reads it from the card’s responses during application selection, GET PROCESSING OPTIONS, READ RECORD or GENERATE AC, depending on where the issuer personalised it.

Specification reference

Defined in: EMV 4.x Book 3 (Application Specification), Annex A — Data Element Dictionary

Example values

4761 7390 0101 0119A 16-digit PAN (BCD, F-padded if odd length)