Card (ICC)Format: nLength: 2
9F25

Last 4 Digits of PAN

Tag ID
9F25
Format
n
Length (bytes)
2
Source
Card (ICC)

What it is

Last four digits of the PAN, used with tokenised credentials.

How tag 9F25 is encoded

EMV data objects are BER-TLV: tag, then length, then value. 9F25 is a 2-byte, context-specific class, primitive tag (tag number 37), so its value is plain data rather than nested TLV objects.

9F10011111Bits 8–7 = 10: context-specific class. Bit 6 = 0: primitive. Bits 5–1 all set: the tag number continues in the next byte.
2500100101Bit 8 = 0: last tag byte. Bits 7–1 = 37.

Length

The value is always 2 bytes, so the length field is 02. A complete 9F25 object starts 9F 25 02 and is 5 bytes long in all.

Value format n

Format n is numeric: BCD, two digits per byte, right-aligned and padded with leading zeros. 2 bytes hold 4 digits.

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: EMVCo Payment Tokenisation Specification / EMV Book 3, Annex A