Free NTAG21x Config, Mirror & Lock Calculator

Calculate exact NXP NTAG213, NTAG215 and NTAG216 configuration page addresses, encode or decode 8-byte CFG0 + CFG1 hex words (MIRROR, AUTH0, PROT, NFC_CNT_EN, AUTHLIM), and generate safe PC/SC FF D6 & Type 2 A2h write sequences and Static/Dynamic OTP lock bytes. Everything runs locally in your browser; never enter live production passwords.

Updated

Chip variant (sets configuration & lock page addresses)
Calculator mode
Quick NTAG21x presets:

Hex page >= 04h when mirror active (e.g. 0C).

FF = password off; 04 = protect all user & config pages.

CFG0 & CFG1 control bits

Leave Unlocked when using 32-bit PWD_AUTH for rewritable business tags.

Configuration registers, lock bytes & write order

NTAG213 CFG0 04 00 00 FF · CFG1 00 00 00 00.

CFG0 — Page 29h (41)

04 00 00 FF

CFG1 — Page 2Ah (42)

00 00 00 00

Static Lock — Page 02h

00 00 00 00

Dynamic Lock — Page 28h (40)

00 00 00 BD

NTAG213 (144 B user / 137 B max NDEF) · Mirror disabled · Password: Disabled (AUTH0 = FFh > last page 2Ch).

Recommended PC/SC APDU write sequence (safe order)

Step & register Page PC/SC Update Binary APDU Safety note
Loading NTAG21x write sequence…

Selected chip memory & configuration map

Pages (hex / dec) Region Active state
Loading NTAG21x memory map…

Need factory pre-encoded NTAG213, NTAG215 or NTAG216 labels, cards or wristbands?

Proud Tek manufactures NTAG213/215/216 NFC stickers, NFC cards and wristbands in Shenzhen, and supplies ACS USB PC/SC NFC reader/writers for desktop encoding. Every pre-encoded tag is read back after writing and shipped with a verification report plus an Excel, CSV or XML UID mapping list where numbered.

Standard blank samples are free; custom-printed or pre-encoded samples carry a setup fee confirmed before production. Never send live passwords or secret keys in an inquiry form.

NTAG213 vs NTAG215 vs NTAG216 configuration & lock page addresses

All three chips in NXP’s NTAG21x family share the same 4-byte page structure and NFC Forum Type 2 command set (NXP NTAG213/215/216 Product Data Sheet (Rev. 3.2), Tables 5–10), but their configuration and dynamic lock pages shift to the end of each chip’s EEPROM:

Chip User pages (bytes) Dynamic Lock CFG0 CFG1 PWD & PACK Dyn. lock granularity
NTAG213 04h–27h (144 B) 28h (40) 29h (41) 2Ah (42) 2Bh / 2Ch 2 pages/bit (12 bits)
NTAG215 04h–81h (504 B) 82h (130) 83h (131) 84h (132) 85h / 86h 16 pages/bit (8 bits)
NTAG216 04h–E1h (888 B) E2h (226) E3h (227) E4h (228) E5h / E6h 16 pages/bit (14 bits)

Worked CFG0 & CFG1 register examples

Use these verified register pairs as starting points when testing on a desktop PC/SC reader or mobile NFC tool:

Configuration Chip CFG0 hex CFG1 hex Behaviour
NTAG213 Factory Delivery State NTAG213 04 00 00 FF 00 00 00 00 Open read/write user pages 04h–27h, strong modulation on, mirror off, AUTH0 = FFh.
NTAG213 Write-Password Protected (Open Phone Reads) NTAG213 04 00 00 04 00 00 00 00 Phones read NDEF URLs freely (PROT = 0), while rewrites from Page 04h..2Ch require 32-bit PWD_AUTH.
NTAG213 Dynamic UID + Tap Counter Mirror + Write Password NTAG213 C4 00 0C 04 10 00 00 00 Mirrors 14-hex UID + separator + 6-hex read counter starting at Page 0Ch Byte 0, with write-only PWD protection.
NTAG215 Permanent Read-Only OTP (504 B User Memory) NTAG215 04 00 00 FF 40 00 00 00 Freezes CC Page 03h and all user pages 04h–81h permanently via Static & Dynamic OTP Lock bytes.

Questions about NTAG21x passwords, mirrors & lock bytes

Why do NTAG213, NTAG215 and NTAG216 have different CFG0, CFG1 and PWD page addresses?

NXP places the five configuration and lock pages immediately after the user EEPROM area on each chip (NTAG213/215/216 data sheet Rev. 3.2, Tables 5–7). Because user memory grows from 36 pages on NTAG213 (04h–27h) to 126 pages on NTAG215 (04h–81h) and 222 pages on NTAG216 (04h–E1h), CFG0 sits at Page 29h (41) on NTAG213, Page 83h (131) on NTAG215 and Page E3h (227) on NTAG216. Writing NTAG213 configuration addresses onto an NTAG215 or NTAG216 overwrites the middle of your NDEF payload instead of locking the tag.

What is the difference between AUTH0/PROT password protection and Static/Dynamic OTP lock bits?

Password protection (PWD, PACK, AUTH0 and PROT) is reversible if you hold the 32-bit password and leave CFGLCK = 0: setting AUTH0 = 04h and PROT = 0 allows any smartphone to read your NDEF URL freely while requiring PWD_AUTH before any write to Pages 04h..end. Static Lock (Page 02h bytes 2–3) and Dynamic Lock (Page 28h / 82h / E2h) are One-Time Programmable (OTP) fuses: once a lock bit is written to 1, the covered pages can never be rewritten again, even after a valid PWD_AUTH.

Why must PWD and PACK be written before lowering AUTH0?

A fresh NTAG21x leaves the factory with AUTH0 = FFh (password disabled) and PWD = FF FF FF FFh. As soon as you write a page address <= lastPage into AUTH0 (CFG0 byte 3), the tag enforces PWD_AUTH on subsequent writes to protected pages — including PWD and PACK themselves! Always write and verify your custom PWD and PACK pages first, then write CFG1 and CFG0 last (or CFG0 before CFG1 if setting CFGLCK = 1).

How does the ASCII UID and NFC counter mirror work in CFG0?

When MIRROR is set to 01₂ (UID), 10₂ (counter) or 11₂ (both), the chip overlays upper-case ASCII hex digits onto read responses starting at MIRROR_PAGE and MIRROR_BYTE without extra EEPROM writes on each tap. For UID + counter (11₂), NXP overlays 14 UID hex bytes, skips 1 separator byte already stored in your NDEF URL (such as "x" or "&c="), and overlays 6 counter hex bytes — a 21-byte span that must fit inside user memory, with NFC_CNT_EN = 1 enabled in CFG1.

Does an NTAG213 password or ASCII UID mirror prevent tag cloning?

No. A 32-bit password stops someone overwriting your tag, and an ASCII UID/counter mirror lets a web server log tap counts, but there is no cryptographic signature over the mirrored characters — anyone who reads the URL can forge the next counter value or copy the NDEF message onto another tag. When your server must cryptographically verify every tap, specify NTAG 424 DNA with AES-128 SUN CMAC.

WhatsApp