Free MIFARE DESFire Memory & File Calculator

Plan MIFARE DESFire EV3, EV2 & Light EEPROM capacity across 640 B, 2K, 4K and 8K silicon — accounting for 2× Backup Data shadow buffers, N + 1 Cyclic Record slots and multi-key sets — while generating exact LSB-first 3-byte AIDs, 16-bit Access Rights and ISO 7816-4 (CLA = 90h) APDUs in your browser.

Updated

6 hex digits, e.g. F5 12 34 (converted to 3B LE wire order).

1..28 (EV2/EV3 are memory-bounded).

App Key 0 (master) + operational keys.

> 1 reserves space for RollKeySet.

00h..1Fh.

Logical payload or 1 record.

Cyclic allocates N + 1.

Optional sum of extra files per AID.

16-bit File Access Rights nibbles (0h–Dh = Key, Eh = Free, Fh = Deny)

Planning footprint, byte order & ISO 7816-4 APDUs

Estimated ~496 B (DESFire 2K (2,048 B), DESFire 4K (4,096 B), DESFire 8K (8,192 B)).

Estimated EEPROM footprint

~496 B

3-byte AID wire order (LE)

34 12 F5 (MSB F5 12 34)

SelectApplication APDU (90 5A)

90 5A 00 00 03 34 12 F5 00

Create File APDU (with AccessRights 20 12 (word 1220h))

90 CB 00 00 07 01 03 20 12 80 00 00 00

Planning estimate — confirm exact free bytes on a physical sample card with FreeMem (90 6E 00 00 00).

NXP MIFARE DESFire capacity fit (planning estimate)

Chip tier NXP parts (17 pF / 70 pF) Fit verdict NXP status
Loading DESFire capacity comparison…

Qualifying MIFARE DESFire EV3, EV2 or Light cards, key fobs or stickers?

Proud Tek manufactures MIFARE DESFire EV3 cards, DESFire EV2 cards, DESFire key fobs and 17 pF / 70 pF MIFARE stickers in Shenzhen. Test free standard samples with GetVersion (90 60 00 00 00) and FreeMem (90 6E 00 00 00) on your own encoder before locking volume orders.

Standard blank DESFire samples are free; custom-printed or pre-encoded samples carry a setup fee confirmed before production. Never paste live AES or 3DES keys into a web form.

Why DESFire applications run out of memory faster than raw payload sums

When sizing between DESFire Light (640 B), 2K (2,048 B), 4K (4,096 B) and 8K (8,192 B) (NXP MIFARE DESFire EV3 Short Data Sheet Rev. 3.1 (MF3D(H)x3); NXP MIFARE DESFire EV2 Short Data Sheet Rev. 3.2 (MF3D(H)x2)), three on-card transaction mechanisms consume extra EEPROM beyond your logical byte count:

  • Backup Data files (CBh) allocate a 2× shadow buffer: Writes stay invisible to readers until CommitTransaction (C7h) executes, protecting credentials if a user pulls the card away mid-tap — at the cost of double non-volatile storage.
  • Cyclic Record files (C0h) require N + 1 record slots: One complete record slot is reserved for atomic ring rollover, so storing 10 readable tap logs of 32 bytes requires creating 11 × 32 = 352 bytes of record slots.
  • Multiple key sets (InitializeKeySet / RollKeySet): Provisioning 2 or 3 key sets per application on EV2/EV3 for zero-downtime key rotation multiplies per-application key storage accordingly.

MIFARE DESFire Light, 2K, 4K & 8K quick reference

Tier EEPROM EV3 / Light parts EV2 parts Application scope
MIFARE DESFire Light (640 B) 640 B MF2DL(H)x0 (17 pF / 50 pF) — (EV2-subset messaging) 1 predefined application, 5 fixed files (+ optional TMAC)
MIFARE DESFire 2K (2,048 B) 2048 B MF3D23 / MF3DH23 MF3D22 / MF3DH22 Memory-bounded AIDs, up to 32 files/app
MIFARE DESFire 4K (4,096 B) 4096 B MF3D43 / MF3DH43 MF3D42 / MF3DH42 Memory-bounded AIDs, up to 32 files/app
MIFARE DESFire 8K (8,192 B) 8192 B MF3D83 / MF3DH83 MF3D82 / MF3DH82 Memory-bounded AIDs, up to 32 files/app

Questions about MIFARE DESFire memory sizing & file APDUs

Why does a 256-byte Backup Data file consume roughly twice as much DESFire memory as a Standard Data file?

A Standard Data file (CDh) writes bytes directly in place with no transaction rollback. A Backup Data file (CBh) maintains an internal shadow buffer so writes take effect atomically only when CommitTransaction (C7h) succeeds — meaning a 256-byte Backup file allocates at least 512 bytes of non-volatile memory plus file-system alignment overhead.

Why does CreateCyclicRecordFile require MaxNoOfRecords = N + 1?

In a DESFire Cyclic Record file (C0h), one full record slot is reserved internally by the card OS so the newest record can be staged and committed atomically before overwriting the oldest entry. To read back N historical records via ReadRecords, specify MaxNoOfRecords = N + 1 when creating the file.

Why are 3-byte DESFire Application IDs (AIDs) and 2-byte Access Rights sent LSB-first?

Native DESFire commands wrapped inside ISO/IEC 7816-4 frames (CLA = 90h) transmit multi-byte integer fields — including the 3-byte AID in SelectApplication (5Ah) / CreateApplication (CAh), the 2-byte AccessRights word ([RW|CAR] [R|W]) and 3-byte file sizes — least-significant byte first. Reversing AID byte order between card personalisation and reader firmware causes 91 A0 (APPLICATION_NOT_FOUND) errors.

How accurate is this memory estimator compared with the chip’s FreeMem command?

The calculator applies deterministic double-buffering rules (2× Backup Data, N + 1 Cyclic Records, 32-byte NV block rounding and per-application key-slot reserves) for architecture planning across DESFire Light (640 B), 2K (2,048 B), 4K (4,096 B) and 8K (8,192 B). Because NXP’s internal NV directory overhead depends on exact key settings and chip revision, always confirm final remaining EEPROM by sending FreeMem (90 6E 00 00 00) to a physical sample card.

Should we order MIFARE DESFire EV3 or EV2 once our memory tier is chosen?

Specify MIFARE DESFire EV3 (MF3D23 / MF3D43 / MF3D83, or 70 pF MF3DHx3 for small fobs and stickers) on all new projects: NXP marks EV1 and EV2 Not Recommended for New Designs, while EV3 keeps full EV2/EV1/D40 backward-compatible messaging and adds SUN dynamic NDEF URLs and a Transaction Timer. Order DESFire EV2 when matching an existing site whose approved encoder or lock specification explicitly requires EV2.

WhatsApp