NFC tags inside 3D prints
An NFC tag is a coil antenna and a tiny chip, powered by the phone that reads it. Ordinary plastic is no obstacle to the field, so a tag can be sealed completely inside a print and still work. What limits it is distance, metal and the size of the antenna, and all three can be designed for before you start the print.
How a phone reads a tag
The tags used in printed fobs and coasters are passive: they have no battery. The phone's reader coil creates an alternating magnetic field at 13.56 MHz; the tag's coil picks up enough energy from it to power the chip, which then answers by modulating the same field. Because the energy comes through the field, the useful distance is short. With a phone, expect a few centimetres at best, and less with small tags.
Two practical points follow from the physics. The tag works only when its coil lies roughly parallel to the phone's coil and close to it, so the tag should sit under the face the user will touch. And anything that absorbs or distorts the magnetic field near the tag, mainly metal, matters far more than the plastic around it.
Tag chips, memory and sizes
Most printable projects use NTAG21x chips, which every NFC-capable phone can read and write. They differ in memory:
| Chip | User memory | Good for |
|---|---|---|
| NTAG213 | 144 bytes | a URL, a phone number, a short text, an automation trigger |
| NTAG215 | 504 bytes | a short contact card, Wi-Fi details plus a URL |
| NTAG216 | 888 bytes | a fuller contact card, several records |
A URL is stored compactly (the "https://" prefix takes one byte), so even NTAG213 holds a URL of well over 100 characters. Contact cards grow quickly with every field and are the usual reason to choose a larger chip.
The physical form matters more for printing than the chip:
- Round stickers, often 25 mm, also 30 mm and larger. Thin and flexible, with adhesive on the back. The usual choice for sealing inside a print.
- Small tags of around 10–15 mm fit narrow parts but have a much smaller coil and therefore a shorter range.
- Hard coin tags and cards are thicker and stiff. They need a deeper pocket but survive handling before insertion better.
- On-metal tags carry a ferrite layer that shields the coil from a metal surface behind it. They are thicker and are the answer when the print will be mounted on metal.
Measure the actual tag with calipers before you design the pocket. Thickness varies between suppliers, and a sticker with its liner on is thicker than one without.
How much plastic can cover the tag
The plastic itself costs almost nothing; the distance it adds costs range. Every millimetre between tag and phone is a millimetre less of the phone's reach, and the field falls off quickly with distance. As working numbers for a 25 mm tag:
- 0.6–1.2 mm of cover (3 to 6 layers at 0.2 mm): reads easily and still hides the tag outline on a flat surface.
- about 2 mm: usually still reads, but the phone has to be placed more carefully.
- several millimetres: works only with larger tags and phones with a good reader; test before committing.
Below about three layers the outline of the tag can show through on the top surface, especially with light colours. If you want an invisible tag, the cap needs enough layers to close cleanly; the cap layer section of the embedding guide covers that trade-off.
Before designing the real part, print a stepped plate with steps of 0.4, 0.8, 1.2, 1.6 and 2.0 mm, each about 30 mm square. Hold the programmed tag under each step and tap with the phone that will be used. The thickest step that still reads at the first tap is your limit; stay one step below it.
What reduces read range
- Metal behind the tag. A steel fridge door, a metal desk or a laptop lid can stop a normal tag from reading at all. Mount the print with a few millimetres of plastic between tag and metal, or use an on-metal tag.
- Metal in the print. Do not put an embedded steel nut, weight or magnet's steel cup over or directly next to the tag. Metal-filled filaments, which contain real metal powder, can also reduce range; see metal-filled filaments. Conductive composites are a similar risk. Ordinary pigments, glitter and silk finishes are not a concern.
- Small antenna. Range scales with coil size. A 12 mm tag behind 1.2 mm of plastic is a much tighter target than a 25 mm tag behind the same cover.
- The phone. Readers differ between models, the reader coil sits in a different place on each phone, and a thick phone case adds distance. On many phones the coil is near the camera area on the back; on others it is near the top edge.
- Other tags. Two tags stacked or overlapping confuse the reader. Keep one tag per tap area.
Sealed, glued or open: three ways to fit a tag
| Method | How | Strengths | Weaknesses |
|---|---|---|---|
| Sealed with a pause | the printer stops at the top of the pocket, you insert the tag, the next layers cover it | invisible, tamper-proof, protected from wear and moisture | needs you at the printer; the tag cannot be replaced |
| Back pocket with a lid | an open pocket on the underside, closed with a printed lid that is glued or press-fitted | no pause; replaceable with a press-fit lid | visible seam; glue can fail on a part carried in a pocket |
| Open recess | a shallow recess on the back, tag stuck in with its own adhesive | simplest, fastest | tag exposed to wear; only for wall signs and fixed objects |
For a key fob that lives in a pocket with keys, sealing is worth the minute at the printer. For a coaster, a shelf label or a wall sign, a back pocket is usually enough and lets you swap the tag later.
Size the pocket the same way for all three: diameter = tag diameter + 0.6 to 1.0 mm, since printed holes come out small (why holes shrink) and sticker edges are not perfectly round; depth = measured tag thickness + 0.1 to 0.2 mm, rounded up to whole layers. Place the pocket close to the face the phone will touch, and keep two or three walls of plastic around it.
Sealing a tag with a pause
The general procedure, finding the pause layer, slicer and firmware pause commands, and what to do at the printer, is in the embedding guide. Points that are specific to tags:
- Stick it down. Peel the liner and stick the tag adhesive-side down onto the pocket floor. A loose sticker can lift at the edge, and the nozzle will catch a raised edge on the first cap layer.
- Check it lies flat and below the top. Slide a flat ruler across the pocket. Nothing should stand above the surrounding layer.
- Watch the first cap layer. Over a shallow tag pocket it is laid almost directly onto the tag rather than bridged across a gap. Stop at once if the nozzle drags the tag.
- Test straight after printing. Tap the finished part while it is still on the bed. If it does not read, you can still add a back pocket with a fresh tag instead of reprinting.
The NFC keychain generator seals its pocket inside the fob: the pocket is 26 mm across and 0.4 mm deep, with 0.8 mm of plastic below it and 1.2 mm above it (0.8 mm under the recessed logo). At 0.2 mm layers with a 0.2 mm first layer, the pocket occupies layers 5 and 6, so the pause goes before layer 7, which starts at 1.2 mm. Confirm it in the slicer preview, because first-layer height changes the count.
Tags are generally fine under a layer of PLA or PETG printed over them, because the hot nozzle never touches the tag and the plastic cools quickly. Higher-temperature materials and long pauses with the nozzle parked hot near the part increase the risk of a warped sticker. Seal a spare tag in a test print first if you plan to use a hotter material.
Writing the tag and setting up the phone
- Write before you embed. Use an NFC writing app to store the record: a URL, text, phone number, contact card or Wi-Fi details. Read it back once to confirm it works.
- Decide on locking. A tag can be locked permanently so nobody can overwrite it, or left open so you can change the content later through the plastic. Locking cannot be undone. A tag on a public sign is worth locking; a personal key fob usually is not.
- Enable NFC on Android. It is a switch in the connection settings. Most phones read tags only with the screen on and unlocked.
- On iPhones, recent models read URL tags in the background when the screen is on; older NFC-capable models need the reader in Control Centre or an app. Writing always needs an app. Some record types, such as Wi-Fi details, are handled natively on Android but may need a shortcut or app on an iPhone, so test the record on the phones that will use it.
- For automations, phone automation apps can react to a specific tag instead of its content, for example to switch on a light when the phone touches a tag by the door. The tag can stay empty for this.
Mark the tap spot on the print: a small raised ring, an icon or a different colour. People tap where they see a target, and a fob that reads only at its centre needs one. For a fallback that works on phones without NFC, print a QR code on the same part; the QR printing guide covers the sizes.
Frequently asked questions
Does PLA or PETG block NFC?
No. Ordinary PLA, PETG, ABS and TPU are effectively transparent to the 13.56 MHz field. What reduces the range is the distance the plastic adds, plus anything metallic or conductive, such as metal-filled filament, steel parts or a metal surface behind the print.
How thick can the plastic over an NFC tag be?
With a 25 mm tag, a cover of 0.6 to 1.2 mm keeps most of the range. Two millimetres usually still reads but makes the phone position more critical. Small tags lose range faster, so keep the cover as thin as the part allows and test with your own phone.
Can I reprogram a tag after it is sealed inside a print?
Yes, as long as the tag was not locked. Writing uses the same field as reading, so it works through the plastic. Locking is permanent: a locked tag can never be changed again.
Will the hot nozzle destroy the tag?
Usually not when the tag sits fully below the top of the pocket and the nozzle prints a layer over it. It can happen if the nozzle touches the tag or the sticker lifts and wrinkles. Seal one spare tag in a test print before embedding an expensive or pre-programmed one.
Which tag should I buy for a key fob?
A 25 mm round NTAG213 sticker holds a URL and fits the NFC keychain generator. Choose NTAG215 or NTAG216 if you want to store a contact card or other longer data.