All articles

How Do I Lock an NFC Tag So Nobody Can Rewrite It?

To lock an NFC tag, open NFC Tools, tap Other > Lock a tag, confirm and hold the tag to your phone. The lock is permanent, so test the link first.

Cover reading How Do I Lock an NFC Tag So Nobody Can Rewrite It? on a dark background

To lock an NFC tag so nobody can rewrite it, open a tag-writing app such as NFC Tools, go to Other, tap Lock a tag, confirm, and hold the tag against your phone until the app says it’s done. The tag becomes read-only for good. Phones can still read it, but nobody can change it, including you. So test the link before you lock.

What does it mean to lock an NFC tag?

Locking an NFC tag switches its memory to read-only, so the link stored on it can still be read but can’t be changed or erased. On the common NTAG chips, this is done by setting lock bits inside the chip itself.

The chip maker’s datasheet calls this a “field programmable read-only locking function”, and it is blunt about the result: “This process is irreversible. If a bit is set to logic 1, it cannot be changed back to logic 0.” There is no master key and no factory reset.

A new tag ships open, and anyone with a phone and a free app can overwrite it. A card you hand around at an event, or a sticker on a shop counter, is one tap away from pointing at somebody else’s link.

How do I lock an NFC tag with my phone?

You lock an NFC tag from the same app you used to write it, in a few taps. The locking guide for NFC Tools covers both Android and iPhone, and the steps are the same on each.

  1. Write your link to the tag and close the app.
  2. Tap the tag with a second phone and check that the right page opens.
  3. Open NFC Tools and go to Other.
  4. Tap Lock a tag.
  5. Read the warning and confirm with Yes.
  6. Hold the tag to your phone and wait for the lock to complete.

The app warns you more than once that the action is irreversible. Take it at its word.

Step 2 is the one people skip. Say you write qrcard.in/c/prya when your profile is qrcard.in/c/priya. Before the lock, that typo costs you a quick rewrite. After it, the typo costs you the tag. If you haven’t written the link yet, start with how to write a URL to an NFC tag.

Android apps do this through a system call that, per the developer reference, marks the tag read-only and “where possible permanently sets the lock bits to prevent any further modification of the memory.” The same reference has a check for whether a tag can be made read-only at all, so a few odd tags will refuse.

How do I check that the lock worked?

Try to write to the tag again. A locked tag rejects the write, and the app shows an error instead of a success screen.

The app’s FAQ lists the reasons a write fails, and one of them is that the chip is “read-only, protected by password or locked”. Then tap the tag with a normal phone one more time to confirm the link still opens.

Should I lock the tag or set a password?

Lock the tag when the link will never change, and set a password when it might. A password blocks writing until it is removed, and you can remove it later. A lock can’t be removed by anyone.

On NTAG213, the chip reference describes a 32-bit password that restricts write access, and optionally read access too. One explainer on memory locking says outright that locking is “distinct from password protection”.

What the link points to should decide it:

What the tag stores Best choice Why
A profile link you can edit later Lock The link never changes, only the page behind it
A fixed page, such as a PDF or a menu file Password You may need a new URL when the file moves
A link you’re still testing Leave it open Decide after a week of real use
Cards for staff who may leave Password You can remove it and rewrite the card

My take: lock any tag that holds an editable profile link and put a password on everything else. A forgotten password and a lock end the same way, with a tag you can’t rewrite. Write the password down where you’ll find it in two years.

If you set cards up for a team, read whether you can reuse an NFC business card when an employee leaves before you lock a whole box of them.

How secure is an NFC tag password?

An NFC tag password is a deterrent, not a vault. It is four bytes long, which the app’s FAQ counts as 4 294 967 296 possible values, and the same FAQ estimates about 27 years to guess one by brute force at 200ms per attempt.

That is plenty against a bored stranger at a conference. A determined attacker is another matter, and the datasheet itself points to cryptographic methods at the application layer when stronger protection is required. A business card that stores a public link only needs the password to stop casual vandalism, and it does.

By default, the password protects writing only. Reading stays open, which is what you want on a card other people tap.

What doesn’t a lock protect?

A lock protects the bytes on the chip and nothing else. That limitation leaves four gaps.

The page behind the link is the first. If the link goes to an account someone else controls, they can change what it shows, and the lock doesn’t care. The physical card is the second: nobody can rewrite your tag, but someone can stick a second tag over it. Check a public sticker now and then.

A locked typo is permanent. And because the link is readable by design, anyone can write the same link to their own tag.

A lock also won’t fix a tag that reads badly. Failing taps are a different problem, covered in why an NFC business card isn’t working on Android.

Yes, because a QRCard link never needs to change. The tag stores your vanity URL, qrcard.in/c/yourname, and that address stays the same when you edit your phone number, job title or company. You edit the profile once and every tag you’ve already written shows the new details.

The one thing the lock fixes in place is the username in the URL, so pick that before you write the tag. A short link like this fits on an NTAG213 with its 144 bytes of user memory. The NTAG213 vs NTAG215 vs NTAG216 comparison covers when you’d want a bigger chip.

QRCard doesn’t sell or program tags. You buy your own and write them yourself, and the NFC business card build guide walks through the whole job.

FAQ

Can I unlock an NFC tag after locking it?

No. The lock sets bits on the chip that can’t be changed back, and the writing app’s own FAQ says a locked tag can’t be unlocked. If the link is wrong, you need a new tag.

Can a locked NFC tag still be read?

Yes. Locking makes the memory read-only, so phones can still read the link and open it. Only writing, erasing and reformatting are blocked.

Is a password better than a lock?

A password is better when the link might change, because you can remove it and rewrite the tag. A lock is better when the link is final and you never want to think about it again.

Why does my phone say it can’t write to the tag?

The usual reasons are that the chip is read-only, protected by a password or locked. Read the tag with a tag app first to see which one applies.

Sources