How to choose and program an NFC tag
Smart business cards, review plaques and access keychains all work with a small tag. Picking the right one stops it from becoming unreadable or running out of memory.
What an NFC tag is
NFC (Near Field Communication) is a very short-range communication technology, working over a few centimetres. An NFC tag is a very thin antenna with a chip and no battery: it takes its power from the phone itself when it comes close. That is why it can sit inside a card, a sticker or a 3D printed part and last for years.
What it stores is usually a message in NDEF format, the standard every phone understands: a web address, a contact (vCard), some text, a Wi-Fi network…
NTAG213, NTAG215 or NTAG216
These are the most common chips, from NXP’s NTAG21x family. They work the same way; only the available memory changes:
| Chip | User memory | Enough for |
|---|---|---|
| NTAG213 | 144 bytes | A normal-length URL. Enough for most review plaques and cards. |
| NTAG215 | 504 bytes | Long URLs, a simple vCard or several records. |
| NTAG216 | 888 bytes | Full vCards with several phone numbers, an address and social profiles. |
A short URL such as https://nfc3d.com/ takes very little space because NDEF abbreviates the “https://”. It fits easily in an NTAG213, even with a long path. A full vCard, on the other hand, can pass 300 bytes very quickly.
Will every phone read it?
- iPhone: models from the iPhone XS onwards read NFC tags without opening any app, with the screen on. The antenna is at the top of the back.
- Android: almost all current models have NFC. It must be switched on in settings (on many phones it is already on for mobile payments). The antenna is usually in the middle of the back.
For people without NFC, it is always worth adding a QR code with the same link next to the tag.
NFC’s enemy: metal
A normal tag stuck on metal (a door, a fridge, a machine housing) will not read, or reads very poorly, because the metal absorbs the antenna’s field. For those cases there are anti-metal tags, with a ferrite layer underneath that shields the antenna. They are a little thicker and more expensive, but they work.
Thick phone cases, or ones with a metal plate for magnetic mounts, also greatly reduce the reading distance.
How to program it
- Install an NFC writing app (for example NXP TagWriter or NFC Tools, available on Android and iOS).
- Choose the record type (URL, contact, text…) and type the content.
- Hold the tag to the phone to write it.
- Test it with another phone, ideally one running a different operating system.
Careful with locking. Apps let you lock the tag so nobody can rewrite it. That is useful in public places, such as a review plaque on a counter, but it is permanent: you will never be able to change the content. Another option is to password-protect writing.
Tip: write a link you can change
Instead of writing the final destination directly, write an address of your own (for example yoursite.com/r/table1) that redirects wherever you like. That way you can change the destination without touching the tag, even if it is locked or sealed inside a part.
For Google reviews
From your Google Business Profile you can copy the “Ask for reviews” link. It takes the customer straight to the rating window for your business. Write that link (or a redirect to it) to the tag.
Embedding a tag in a 3D printed part
- In the design, leave a pocket shaped like the tag with about 0.2–0.3 mm of clearance, as deep as the sticker is thick (usually under 1 mm).
- In the slicer, add a pause at the layer right after the pocket is finished.
- When the printer stops, place the tag (programmed and tested beforehand).
- Let it carry on printing over it. With 0.6–1 mm of plastic on top, the tag still reads without any problem.
Make sure the hot nozzle does not brush the tag (check the pocket depth), and do not use anti-metal tags so thick that they stick out.
Want to use it in a keychain? The guide how to design a 3D printed keychain that will not break has the dimensions that work.