Free MIFARE Classic Access Bits Calculator

Encode or decode MIFARE Classic 1K (MF1S50) and 4K (MF1S70) sector-trailer access bytes (Bytes 6–9), verify all 12 inverted-bit complements before writing to a card so you never brick a sector, and check exact Key A / Key B permissions per block. Runs locally in this page with no key inputs, uploads or storage.

Updated

Mode
Sector geometry
Quick presets:

2 hex chars (e.g. 69 factory default, 00 blank, C1/DA for NFC Forum MAD).

Sector trailer bytes & permissions

Valid access bytes: FF 07 80 69.

Bytes 6–9 (Access + GPB)

FF 07 80 69

Bytes 6–8 (Access bits only)

FF 07 80

Illustrative 16-byte sector trailer (FF..FF transport key placeholders)

FF FF FF FF FF FF FF 07 80 69 FF FF FF FF FF FF

Block / group C1 C2 C3 Read / write Value / trailer details
Loading permissions…
Byte 6–9 binary & inverted-bit map
ByteHexBinary (b7..b0)Bit assignment
No bytes calculated.

Need genuine NXP MIFARE Classic EV1 cards, fobs or pre-encoding?

Proud Tek manufactures MIFARE Classic EV1 1K and 4K cards, key fobs and wristbands in Shenzhen using genuine NXP silicon (never third-party compatible clones), shipped blank in factory transport state or pre-encoded through our RFID encoding service. Planning a security upgrade? Compare MIFARE Plus and MIFARE DESFire EV3.

Standard blank samples are free; custom-printed or pre-encoded samples carry a setup fee, confirmed in the quotation. Never send secret sector keys in an inquiry form.

How the 16-byte MIFARE Classic sector trailer is structured

On a MIFARE Classic 1K card (MF1S50, 16 sectors of 4 blocks), block 3 of every sector is its sector trailer; on a 4K card (MF1S70), block 3 guards sectors 0–31 and block 15 guards the eight 16-block sectors 32–39 (NXP MF1S50YYX_V1 §8.6; MF1S70YYX_V1 §8.6.2). Each 16-byte trailer holds:

  • Bytes 0–5 (Key A, 6 bytes): mandatory primary sector key. Key A always reads back as logical zeros (00 00 00 00 00 00) regardless of access bits, so reading a sector trailer never reveals Key A.
  • Bytes 6–8 (Access bits, 3 bytes): three bits (C1, C2, C3) for each of the four block groups (12 bits), interleaved with their bitwise complements (~C1, ~C2, ~C3, 12 bits) across 24 bits.
  • Byte 9 (General-purpose byte, 1 byte): arbitrary user/version byte governed by the same read/write rights as the access bits (69h at NXP delivery).
  • Bytes 10–15 (Key B, 6 bytes): optional second sector key. When the trailer access condition makes Key B readable (000, 010 or transport default 001), Key B serves as data and cannot be used to authenticate (Table 7 Remark 1).

Standard access-byte presets at a glance

ConfigurationBytes 6–9Data C1C2C3Trailer C1C2C3Behaviour
Factory transport FF 07 80 69 000 / 000 / 000 001 NXP factory delivery configuration: Key A (FF FF FF FF FF FF) has full access; Key B is readable data.
Key A read / Key B write 78 77 88 69 100 / 100 / 100 011 Field readers hold Key A (read-only); issuing station holds Key B to write blocks and rotate keys.
Closed-loop value counter 68 77 89 69 110 / 100 / 100 011 Block 0 configured as a Value Block (Key B increments, Key A|B decrements); Blocks 1–2 standard R/W.
Frozen read-only sector 07 87 8F 69 010 / 010 / 010 111 Irreversible read-only configuration: Key A or B reads data blocks; no key can ever alter data or keys.

Three ways sectors get accidentally locked — and how to avoid them

  1. Writing unverified hex to bytes 6–8: if a script flips a bit in C1..C3 without flipping its complement in ~C1..~C3, the chip permanently blocks the entire sector on the very next command. Always generate or validate the 3 access bytes before sending a WRITE APDU to a trailer block.
  2. Requiring Key B on data blocks while leaving trailer at 001: if you set data blocks to 100 (write with Key B) or 011 (read/write with Key B) while leaving the sector trailer in factory transport condition 001, Key B remains readable and disabled for authentication — so nobody can write those blocks until Key A updates the trailer to 011 or 100.
  3. Overwriting Key A/B with zeros from a read-back buffer: reading block 3 returns 00 00 00 00 00 00 in bytes 0–5 (and in bytes 10–15 when Key B is hidden). Modifying bytes 6–8 in that read buffer and writing all 16 bytes back overwrites your secret keys with all-zeros unless you explicitly populate bytes 0–5 and 10–15 with the intended 6-byte keys.

Remember that access bits organize application roles within a card; they do not fix Crypto-1’s cryptographic weakness. Where copy resistance matters, migrate to MIFARE Plus in Security Level 3 (AES-128) or MIFARE DESFire EV3.

Questions about MIFARE Classic access bits

Why can wrong access bits permanently lock a MIFARE Classic sector?

Inside bytes 6 to 8 of every sector trailer, each of the 12 access bits (C1, C2 and C3 for four block groups) is stored twice: once in true form and once bitwise-inverted (~C1, ~C2, ~C3). On every access, the chip hardware checks that all 12 inverted bits match their complements. Per NXP MF1S50YYX_V1 §8.7.2, if even a single bit violates that format, the entire sector is irreversibly blocked and can never be authenticated, read or rewritten again.

What does FF 07 80 69 mean on a brand-new MIFARE Classic card?

FF 07 80 69 is NXP’s factory transport configuration for bytes 6 to 9 of every sector trailer. Bytes FF 07 80 set C1C2C3 = 000 on all three data blocks (full read, write, increment and decrement with Key A or Key B) and C1C2C3 = 001 on the sector trailer itself (Key A writes Key A, access bits and Key B; Key B is readable, so only Key A = FF FF FF FF FF FF can authenticate). Byte 69h is the factory general-purpose byte.

Why does Key B fail to authenticate when trailer access bits are 000, 010 or 001?

NXP Table 7 (Remark 1) specifies that whenever the sector trailer’s access condition allows Key B to be read (conditions 000, 010 and transport default 001), bytes 10–15 serve as user data rather than a secret key, and the chip disables Key B authentication. To authenticate with Key B — for example to keep Key A read-only in field readers and reserve Key B for writing — choose a trailer condition where Key B read is "never", such as 011 (bytes 78 77 88 with data blocks at 100) or 100.

How do MIFARE Classic 4K large sectors (sectors 32–39) use the four access-bit groups?

On MIFARE Classic 4K (S70, MF1S70YYX_V1 §8.6.2), sectors 0 to 31 have 4 blocks each, identical to a 1K card. Sectors 32 to 39 have 16 blocks each (256 bytes per sector): group 0 controls blocks 0–4, group 1 controls blocks 5–9, group 2 controls blocks 10–14, and group 3 controls block 15 (the sector trailer). Switch the sector geometry toggle above to "4K large sector (16 blocks)" to see the exact block ranges.

Is MIFARE Classic EV1 secure against key recovery if I set custom access bits?

No. Access bits control which key (A or B) the chip demands for each block command, but the underlying cipher is still Crypto-1 with 48-bit keys. Published attacks (including the 2015 hardnested attack) recover sector keys from hardened EV1 cards in minutes once one key is known. Use genuine NXP MIFARE Classic EV1 to maintain compatibility with installed Classic readers (and avoid third-party compatible chips found with hardware backdoor keys), and specify MIFARE Plus in SL3 or MIFARE DESFire EV3 for new security-sensitive systems.

Sources

Related pages

WhatsApp