PIN from PIN Block
Extract the clear PIN from an ISO 9564 Format 0 or Format 1 PIN block — optionally decrypt an encrypted PIN block using a PEK/ZPK first
16 hex characters (8 bytes). Clear or encrypted PIN block.
13–19 digit card number. Required for Format 0, ignored for Format 1. Spaces allowed.
Optional. 16-byte double-length 3DES key (32 hex chars). If provided, the PIN block is first decrypted via 3DES-ECB.
Format 0 (ISO 9564-0 / ANSI X9.8): The clear PIN block is XORed with a PAN field (
0000 + rightmost 12 PAN digits excl. check digit) to recover the PIN field. The
PIN is
then read from nibbles 2 through 2+N.
Format 1 (ECI-4): The PIN digits are stored directly in the clear block (nibbles 2 through 2+N), with random fill padding. No PAN is needed.
Encrypted blocks: If a PEK (PIN Encryption Key) or ZPK (Zone PIN Key) is provided, the tool first decrypts the block using 3DES-ECB before extraction.
Related Tools
What is the PIN from PIN Block Extractor?
The PIN from PIN Block Extractor recovers the clear PIN from a clear-text or decrypted PIN block. It supports ISO 9564 Format 0 (requiring PAN) and Format 1 (PAN-independent) PIN blocks.
- Enter the clear or decrypted PIN block (16 hex characters).
- Select the PIN block format (Format 0 or Format 1).
- For Format 0, enter the PAN.
- Click Extract to recover the clear PIN.
Can I extract a PIN from an encrypted PIN block?
No. You must first decrypt the PIN block using the appropriate encryption key (ZPK/ZEK). This tool extracts the clear PIN from an already-decrypted (clear-text) PIN block.