---
title: "Lock a tag permanently"
description: "Make a tag read-only for the rest of its life, and what the app does to stop you locking the wrong one."
product: "Hex NFC"
canonical: "https://apps.hex.pro/hex-nfc/docs/guide/permanent-lock"
markdown: "https://apps.hex.pro/hex-nfc/docs/guide/permanent-lock.md"
updatedAt: "2026-10-27T16:19:43Z"
version: "1.0.2"
language: "en"
licence: "CC BY 4.0"
licenceUrl: "https://creativecommons.org/licenses/by/4.0/"
---

# Lock a tag permanently

Hex NFC can lock a tag permanently from your iPhone by setting the lock bits on
the chip itself. The tag keeps the records it holds, and no record or formatting
can ever be written to it again. Reading is unaffected, so any phone can still
read the tag.

Two things decide whether a tag can be locked, and a scan shows you both. On the
**Tag** screen, the card at the top is headed with the chip's name. It carries a
**Supports** row. "Lock" appears in that row only on a chip this app can lock.
Under it, the **Protection** card says what is protecting the tag now. "Off"
means nothing is, and the lock can go ahead. A chip that takes no password has
no **Protection** card at all, and nothing on it can block a lock.

A summary naming a password or a key, such as "Password · write-only", means
protection is switched on. A tag in that state does not get locked. How the app
says so depends on the chip.

On an NTAG or a MIFARE Ultralight EV1, Hex NFC checks before it writes anything.
It answers "This tag is password protected, so it cannot be permanently locked.
Remove the password first, then lock it." On a MIFARE Ultralight C or an ICODE
SLIX2, the app starts the lock. The summary on those two chips names a 3DES key
or a password. The tag's own gate refuses the first write. That refusal comes
back as "Nothing was locked." Nothing is burned either way, so the tap costs the
tag nothing. Take the password or the key off first: see
[Remove a tag's password](https://apps.hex.pro/hex-nfc/docs/guide/remove-password.md).

What blocks the lock is protection being switched on, not the password itself. A
password that is stored on a tag but no longer gates anything reads as "Off" on
the **Protection** card of a fresh scan. A tag in that state can be locked.

> **Warning: A locked tag cannot be unlocked**
>
> No password, no other app and no later tap reverses a permanent lock. Lock a tag
> only once what it holds is final.

## Lock a tag permanently

A change to a tag's protection holds the tag twice, and so does every operation
under **Dangerous Actions**. The first tap reads the tag's UID and closes
straight away, so you can type. The app then asks you to type that UID back,
character for character, and the second tap makes the change on the tag you
confirmed. Present a different tag on the second tap and the app refuses it
rather than changing the wrong one.

1. **Scan the tag you want to lock**

   On the Hex NFC home screen, tap **Scan**, then hold the tag against
   the top of your iPhone. The **Tag** screen opens and shows what the tag holds.
   See [Scan a tag](https://apps.hex.pro/hex-nfc/docs/guide/scan-a-tag.md).

2. **Check the tag can be locked**

   On the Tag screen, look for "Lock" in the **Supports** row of the tag info card,
   and for the **Protection** card reading "Off". A chip that takes no password
   shows no **Protection** card, which is also fine.

3. **Open the Operations screen**

   On the Tag screen, tap the menu button at the top right, beside
   **Write**, then tap **Operations…**.

4. **Choose Permanent lock**

   Scroll to **Dangerous Actions**, then tap **Permanent lock**. The screen that
   opens says what the lock costs and that it cannot be undone. The tile is there for
   every tag, including chips that have no lock bits. The app checks the chip on
   the first tap. On a chip that cannot be locked, it answers "This tag does not
   support that operation." after that tap, before you type the UID. Nothing is
   written.

   ![The Permanent lock screen at rest. A red-edged warning reads This is permanent, above a blue Permanently lock this tag button.](https://apps.hex.pro/_docs/hex-nfc/1.0.2/assets/8ae258b456276d208f80032c8f6a4506fb422732ea5400eb9b6257ab38ead66d.png)

   **The **Permanent lock** screen opens with its warning, and nothing reaches the tag until you tap **Permanently lock this tag**.**

5. **Hold the tag for the first tap**

   Read the warning, then tap **Permanently lock this tag**. The screen reads "Tap
   1 of 2. Hold the tag to identify it.", so hold the tag against the top of your
   iPhone until the sheet closes.

6. **Type the tag's UID**

   The tag's UID appears beside an empty field, under "Type this tag's UID to
   confirm." It is shown in capitals with no colons or spaces, and all of it is
   typed. A UID the tag info card shows as `04:BA:4A:92:1B:21:90` appears here as
   `04BA4A921B2190`. Capitals and lower case both match, and a space before or
   after what you type is ignored. The button stays dimmed until what you type
   matches.

   ![The Permanent lock screen after the first tap. The UID 044C250A301F91 sits beside an empty field, above a dimmed Permanently lock this tag button and Cancel.](https://apps.hex.pro/_docs/hex-nfc/1.0.2/assets/913c0e0c0ab0ba50ef2cd94c774665db4c8ab23bb8e2f3f8d4d80d7d492f74bb.png)

   **Between the two taps, the tag's UID sits on the left of an empty field, and **Permanently lock this tag** stays dimmed until you type it.**

7. **Hold the tag for the second tap**

   Tap **Permanently lock this tag** again, then hold the tag against the top of
   your iPhone. The screen reads "Tap 2 of 2. Hold the same tag again." while it
   waits, and reports the result when the tag comes away.

## What the app says when the lock lands

"Tag permanently locked." is the result you want. The app asked the tag to
accept one more write after setting the bits, the tag refused, and that refusal
is the proof.

"Lock written." means the bits went on and this tap could not witness them.
Some chips only apply their lock bits the next time the tag wakes up. The app
adds "This chip's lock bits only take effect at the next tap, so it can't be
checked in this session. Scan the tag again to confirm it now refuses writes."
Scan the tag once more and read the verdict off the **Protection** card.

On the **Tag** screen, **Protection** reads "Permanently locked" for a tag the
app has read back as locked. Under that sits "Records and formatting can no
longer be written." Until that confirming scan it reads
"Lock written · scan again to confirm" instead. **Write** is unavailable on a
tag read back as locked.

![The Tag screen for an NTAG213, with Lock in its Supports row and the Protection card below reading Permanently locked.](https://apps.hex.pro/_docs/hex-nfc/1.0.2/assets/9015a63c37f7533f813e4e85dffd074c252f96767b3cb4169401e21641205f07.png)

**After a confirming scan, the **Protection** card reads "Permanently locked" with "Records and formatting can no longer be written." under it.**

A password stored on the tag survives the lock, and the card then reads
"Permanently locked · password still set". The line underneath says whether that
password can still be taken off. Which chips can be locked at all is covered in
[Tags that work with Hex NFC](https://apps.hex.pro/hex-nfc/docs/guide/tags-that-work.md).

## If the lock did not finish

A lock runs in stages. A run that stops partway leaves the tag in a state the
app names rather than calling it a failure.

- "Nothing was locked." The chip refused every stage and said so. Nothing
  burned, and the tag is exactly as it was, so a second run costs it nothing.
  Scan the tag again and check the two things a lock needs. The **Protection**
  card reads "Off", or a chip that takes no password shows no **Protection**
  card at all. "Lock" appears in the **Supports** row of the tag info card. On a
  MIFARE Ultralight C or an ICODE SLIX2, this message is what protection looks
  like. Take the key or the password off, then run the lock again.
- "This tag is now partly locked, and that cannot be undone. Some of its memory
  is read-only for good; the rest was refused and is still writable." Part of
  the chip is spent. No second run completes the rest. Back on the Tag screen,
  the **Protection** card reads "Partly locked · some of this tag is read-only
  for good". A tag that still holds a password reads
  "Partly locked · password still set" instead. On an NTAG21x or a MIFARE
  Ultralight, a fresh scan says the same again, because the app reads those lock
  bytes back. It does not re-read an ICODE SLIX2's per-block locks at scan time,
  so a fresh scan of one says nothing about the partial lock. On that chip the
  result at the end of the run is the only record you get.
- "The tag stopped answering during a lock that cannot be undone, so this app
  cannot say whether any of its memory is now read-only. Treat this tag as one
  that may be locked." The tag came away mid-write. Scan it again and read the
  **Protection** card before you use the tag for anything.
- "Part of this tag is now read-only for good, and that cannot be undone. The
  tag stopped answering before the rest could be confirmed, so the rest may be
  locked as well." One stage is confirmed. The other is unknown. Scan the tag
  again, and treat it as locked.

## See also

- [Tag protection](https://apps.hex.pro/hex-nfc/docs/guide/tag-protection.md)
- [Erase or format a tag](https://apps.hex.pro/hex-nfc/docs/guide/erase-or-format.md)
- [If a tag does not scan or write](https://apps.hex.pro/hex-nfc/docs/guide/troubleshooting.md)
