Tools

    EMV APDU and trace log decoder

    Decode command/response APDUs and full tracer logs (ISO 7816-4 + EMV).

    • Runs in your browser
    • No sign-up

    Input

    Paste a single APDU or a full log.

    3 commands, 3 responses decoded.

    Result

    SELECT
    CLA 00 (inter-industry) · INS A4 · P1 04 P2 00: Select by name (AID/DF) · case 4 · Lc 14 · Le 256
    data 325041592E5359532E4444463031
    SW 9000 Success: normal processing
    data 6F2E840E325041592E5359532E4444463031A51CBF0C1961174F07A00000000310105009564953412043415244870101
    6F File Control Information (FCI) Template [46]
    84 Dedicated File (DF) Name [14]
    325041592E5359532E4444463031
    A5 File Control Information (FCI) Proprietary Template [28]
    BF0C FCI Issuer Discretionary Data [25]
    61 Application Template [23]
    4F Application Dedicated File (ADF) Name / AID [7]
    A0000000031010
    50 Application Label [9]
    564953412043415244
    → VISA CARD
    87 Application Priority Indicator [1]
    01
    SELECT
    CLA 00 (inter-industry) · INS A4 · P1 04 P2 00: Select by name (AID/DF) · case 4 · Lc 7 · Le 256
    data A0000000031010
    SW 9000 Success: normal processing
    data 6F198407A0000000031010A50E5009564953412043415244870101
    6F File Control Information (FCI) Template [25]
    84 Dedicated File (DF) Name [7]
    A0000000031010
    A5 File Control Information (FCI) Proprietary Template [14]
    50 Application Label [9]
    564953412043415244
    → VISA CARD
    87 Application Priority Indicator [1]
    01
    GET PROCESSING OPTIONS (GPO)
    CLA 80 (proprietary) · INS A8 · P1 00 P2 00 · case 4 · Lc 2 · Le 256
    data 8300
    83 Command Template [0]
    (empty value)
    SW 9000 Success: normal processing
    data 771282024000940C080101001001020118010200
    77 Response Message Template Format 2 [18]
    82 Application Interchange Profile (AIP) [2]
    4000
    ✓ b1 bit7: SDA supported
    94 Application File Locator (AFL) [12]
    080101001001020118010200
    → 3 entries, 5 records to read, 1 used for offline data authentication
    · Entry 1: SFI 1, record 1, 0 for offline data authentication
    · Entry 2: SFI 2, records 1–2, 1 for offline data authentication
    · Entry 3: SFI 3, records 1–2, 0 for offline data authentication

    Card and terminal disagree and the log does not say why? IDNTEQ can help. EMV transaction troubleshooting

    About this tool

    Runs in your browser. This page loads no analytics or third-party scripts and does not send what you type.

    Decode a single APDU or a whole tracer log. The decoder names the instruction, breaks down CLA/P1/P2, gives the meaning of SW1SW2, and TLV-parses response data (and the GPO command template) inline.

    Commands and responses

    Every command is decoded per ISO/IEC 7816-4 and EMV Book 1/3: SELECT, GET PROCESSING OPTIONS, READ RECORD, GENERATE AC, VERIFY, GET DATA, INTERNAL/EXTERNAL AUTHENTICATE and more. The CLA byte is broken down for secure-messaging and logical-channel bits; P1/P2 carry instruction-specific meaning (record number + SFI for READ RECORD, AC type for GENERATE AC).

    Status words are decoded, including the ranged ones: 61xx (GET RESPONSE available), 6Cxx (wrong Le) and 63Cx (a counter; after VERIFY it is the PIN tries remaining). Short and extended length fields are recognised, and a command whose length does not match its Lc is reported as truncated or as having surplus bytes.

    Log mode

    Paste output straight from a tracer or simulator. Direction markers (>>/<<, C-APDU/R-APDU, terminal/card) and timestamps are removed before the hex is read, lines starting with #, // or ; are treated as comments, and each line is classified as command or response; when a line has no marker the direction is inferred and the guess is noted. Once the hex of a command or response starts, every token must be hex: a bad token is reported with its line and character position, and that line is not decoded rather than shortened to the valid part. Response data is TLV-parsed inline when it parses cleanly (FCI, records, GET DATA responses), as is the GPO command template. GENERATE AC command data is the CDOL values without tags, so it is shown raw. STORE DATA carries DGIs or BER-TLV depending on the personalization profile; the GlobalPlatform P1 bits state which. The default example is a contactless selection: SELECT of the PPSE, SELECT of a Visa AID and GET PROCESSING OPTIONS with Le.

    Spec references

    • ISO/IEC 7816-4 §5 (APDU) §5.1.3 (status bytes)
    • EMV 4.4 Book 1 §11
    • EMV Book 3 §6 (commands)

    Verified against

    Specifications
    • ISO/IEC 7816-4 §5 (APDU cases, class byte, status bytes)
    • EMV 4.4 Book 3 §6 (commands)
    • EMV CPS v1.0 and GlobalPlatform 2.2.1 Table 11-81 (STORE DATA)
    Published examples in the tests
    None: no published example with these inputs was found. The checks below are the ones the tests run.
    Other checks in the tests
    • Short and extended cases 1–4, truncated and surplus-byte commands
    • Status words including 61xx, 6Cxx and the 63Cx PIN try counter
    • Log parsing: direction markers, timestamps, separators, comments; a bad token is reported with its line and position, never dropped
    • The default example decodes without errors with consistent TLV lengths (made-up test data)
    Inputs
    One APDU or a tracer log, one command or response per line.
    Not covered
    Secure messaging is named in the class byte but not decrypted; GENERATE AC command data is shown raw (it has no tags).
    Last reviewed