NFC (Near Field Communication) tags are small, programmable chips that can trigger actions on smartphones and other NFC-enabled devices with just a tap. Whether you want to automate your daily routines, share contact details, launch a website, or even control smart home devices, learning how to program NFC tags opens up a world of possibilities. In this comprehensive guide, you will learn everything from the basics of NFC technology to advanced programming techniques, including the best apps, hardware choices, and real-world use cases.

1.What Are NFC Tags and How Do They Work?
Before diving into programming, it is essential to understand what NFC tags are. An NFC tag is a passive integrated circuit that stores small amounts of data. It has no battery of its own; instead, it is powered by the electromagnetic field generated by an NFC reader (usually a smartphone) when brought within a few centimeters.
Key Characteristics of NFC Tags:
Memory capacity: Ranges from 48 bytes to 8 kilobytes (e.g., NTAG210, NTAG215, NTAG216).
Frequency: Operates at 13.56 MHz.
Standards: ISO/IEC 14443 and ISO/IEC 18092.
Read/write endurance: Typically 100,000 to 1,000,000 write cycles.
Data retention: Up to 10 years.
Common Types of NFC Chips:
NTAG21x series (NTAG210, NTAG213, NTAG215, NTAG216) – Most popular for general use.
MIFARE Classic – Often used for access control and public transport.
MIFARE Ultralight – Low-cost, limited memory.
Topaz 512 – Compatible with older devices.
Understanding the chip type is crucial because different chips support different commands, memory sizes, and lock mechanisms. For most beginners, NTAG215 or NTAG216 offers the best balance of memory (540–888 bytes) and compatibility with iPhones and Android devices.
2. What You Need Before Programming NFC Tags
To start programming NFC tags, gather the following items:
2.1 NFC Tags (Blank)
Purchase blank NFC tags from Amazon, eBay, or specialized RFID suppliers. Avoid pre-formatted tags. A pack of 10 NTAG215 stickers costs around $10–15 USD.
2.2 NFC-Enabled Smartphone
Android: Almost all Android phones since 2015 (Samsung, Google Pixel, OnePlus, Xiaomi, etc.) have NFC. Check under Settings → Connections → NFC.
iPhone: iPhone 7 and newer (iPhone 7, 8, X, XR, XS, 11, 12, 13, 14, 15, 16, 17 series) support NFC tag programming, but background reading requires iOS 13+ and iPhone XS or newer.
2.3NFC Programming App
Choose an app based on your platform and needs:
| App Name | Platform | Best For |
|---|---|---|
| NFC Tools | Android & iOS | All-in-one programming, reading, analyzing |
| NFC Writer (by Trigger) | Android | Tasker integration, automation |
| NFC TagWriter by NXP | Android | Professional, supports NDEF and proprietary formats |
| Simply NFC | iOS | User-friendly, supports URL, SMS, email, WiFi |
| GoToTags | Android & iOS | Bulk encoding, URL shortener |
2.4 (Optional) USB NFC Reader/Writer
For bulk programming or when your phone lacks NFC, a USB reader like ACR122U (≈$40–50) is useful. It also allows programming tags that are incompatible with some phones.
3. Step-by-Step Guide – How to Program NFC Tags Using a Smartphone
This section provides a practical, hands-on tutorial. We will use NFC Tools (available on both Android and iOS) because it is free, powerful, and beginner-friendly.
Step 1: Install NFC Tools
Android: Google Play Store → “NFC Tools” by wakdev.
iOS: App Store → “NFC Tools” by wakdev.
Step 2: Enable NFC on Your Phone
Android: Settings → Connections → NFC → toggle ON.
iPhone: Settings → General → NFC → toggle ON (on some models, it is always enabled but must be active via Control Center).
Step 3: Prepare the NFC Tag
Remove the tag from any metal surface (metal interferes with NFC). Hold your phone near the tag (back of phone facing the tag). You should hear a beep or feel vibration – that means the tag is detected.
Step 4: Open NFC Tools and Select “Write”
- Launch NFC Tools.
- Tap the “Write” tab (looks like a pencil).
- You will see a list of record types you can write to the tag.
Step 5: Choose a Record Type
Here are the most common actions:
A. Write a URL / Website
Tap “Add a record” → “URL/URI”.
Enter the full web address
Tap OK → then “Write” → tap the tag.
When someone taps your tag, their browser opens that URL.
B. Write Plain Text
Tap “Text” → type your message (max depends on tag memory).
Tap OK → Write → tap the tag.
Useful for leaving notes or instructions.
C. Write a Phone Number
Tap “Phone” → enter number including country code (e.g.,
+1234567890).Tapping the tag prompts the device to call that number.
D. Write an SMS or Email
SMS: Tap “SMS” → recipient number and optional message.
Email: Tap “Email” → recipient, subject, body.
E. Write WiFi Credentials
Tap “WiFi” → enter SSID (network name), encryption type (WPA/WPA2/WEP), and password.
When tapped, the phone connects to that WiFi automatically (no typing password).
F. Write a Geolocation (GPS coordinates)
Tap “Geo Location” → enter latitude and longitude or drop a pin on map.
Opens Google Maps or Apple Maps at that exact spot.
G. Write a Bluetooth Pairing Action
Tap “Bluetooth” → select device address (or enter manually).
Initiates Bluetooth connection.
Step 6: Write Multiple Actions (Sequence)
You can program a tag to perform several actions one after another. For example:
Turn on WiFi.
Open your calendar.
Set phone volume to 50%.
To do this:
In NFC Tools “Write” tab → tap “Add a record” multiple times to build a sequence.
Rearrange records using the hamburger menu (three dots).
Tap “Write” → the tag will store the entire sequence.
Step 7: Lock the NFC Tag (Optional)
If you want to prevent overwriting, you can lock the tag permanently. Warning: This is irreversible!
In NFC Tools → “Write” → “Lock tag”.
Confirm → tap the tag. After locking, no device can modify it.
4.How to Program NFC Tags on iPhone (Special Considerations)
Programming NFC tags on iOS has some unique aspects due to Apple’s security policies.
Important Notes for iPhone Users:
iPhone 7, 8, X: Can read NFC tags but cannot write without a jailbreak or external reader.
iPhone XS, XR, 11, 12, 13, 14, 15, 16, 17 and newer: Can write and read NFC tags using apps like NFC Tools or Simply NFC.
Background reading (no app open): Only works on iPhone XS and newer with iOS 13+. The user must still enable “Background Tag Reading” in Settings → NFC.
Programming Steps on iPhone:
- Install NFC Tools from App Store.
- Open app → tap “Write”.
- Add a record (same options as Android: URL, text, WiFi, etc.).
- Hold the top back of iPhone (camera area) near the tag.
- Keep steady until “Write successful” appears.
iPhone-Specific Limitation:
You cannot program tags that launch system shortcuts directly unless you use the Shortcuts app (iOS 13+). To program a tag to run a Shortcut:
Open Shortcuts app → Automation → Create Personal Automation → NFC → Scan tag → Add Action → Save.
Then write a blank NDEF record or specific text to that tag. This is more advanced but powerful.
5.Advanced Programming – Using NDEF and Custom Records
NFC tags store data in a standardized format called NDEF (NFC Data Exchange Format). When you use apps like NFC Tools, they create NDEF messages automatically. However, for advanced users, understanding NDEF opens up custom applications.
NDEF Structure:
NDEF Message: Contains one or more NDEF records.
NDEF Record: Has a header (type, length, flags) and a payload.
Common NDEF Record Types (TNF – Type Name Format):
| TNF Value | Description | Example |
|---|---|---|
| 0x01 | Well-known type | URL, Text, SMS |
| 0x02 | Media type | application/json, image/png |
| 0x03 | Absolute URI | http://... |
| 0x04 | External type | Custom (e.g., “myapp:action”) |
| 0x05 | Unknown | Legacy data |
How to Create Custom NDEF Records:
Using NFC TagWriter by NXP (Android only), you can:
- Select “Create NDEF message”.
- Choose “External” type.
- Enter domain (e.g.,
example.com) and type (e.g.,launch). - Add custom payload in hex or text.
- Write to tag.
Your custom app then needs to register an intent filter for that NDEF record. This is how professional NFC business cards, interactive posters, and authentication tokens work.

Anti Counterfeiting NFC Tags – ISO/IEC14443-A Certified for Secure Product Authentication
6.Programming NFC Tags Without a Smartphone – Using a Desktop Writer
If you need to program hundreds of tags or work with chips not supported by your phone, use a USB desktop NFC reader/writer.
6.1 Popular Desktop Writers:
ACR122U – Most common, supports ISO/IEC 14443 A/B.
PN532 – Cheap (≈$20), works with Raspberry Pi and Arduino.
SCM SCL3711 – Good for MIFARE.
6.2 Software for Desktop:
NFCopy (Windows) – Batch encoding, copy tags.
libnfc (Linux/macOS) – Command-line tools.
TagXplorer (Windows) – Professional suite.
6.3 Basic Desktop Programming Example (Windows + ACR122U):
- Install ACR122U driver and NFCopy.
- Launch NFCopy → Select “Write NDEF”.
- Enter URL or text.
- Place tag on reader → Click “Write”.
- Verify by reading back.
Desktop writers also allow you to dump tag memory, clone tags (if not protected), and set advanced security bits.



Customized NFC Tags – Premium NFC Solutions from Trusted NFC Supplier
7.Best Practices When Programming NFC Tags
7.1 Choose the Right Tag Memory
URL only → NTAG210 (48 bytes) is enough.
URL + Text + WiFi → NTAG215 (540 bytes).
Multiple records + custom payload → NTAG216 (888 bytes).
7.2 Consider Write Protection
Write-protect tags after testing. If you leave them writable, anyone with an NFC phone can overwrite your data.
7.3 Avoid Metal Surfaces
Metal reflects NFC signals. Use ferrite sheet tags or place tags on plastic/wood/glass.
7.4 Test on Multiple Devices
An NFC tag that works on your Samsung might not work on an older iPhone. Test with at least 3 different phones.
7.5 Use URL Shorteners
If writing a long URL, use a shortener like bit.ly or TinyURL to save memory and increase compatibility.
7.6 Don’t Store Passwords in Plain Text
NFC communication is short-range but not encrypted. Avoid storing sensitive passwords unless you use an encrypted application layer.
8. Real-World Applications – What Can You Do with Programmed NFC Tags?
Here are 20 practical ways people use programmed NFC tags daily:
8.1 Home Automation
- “Goodnight” tag on bedside table → turns off lights, locks doors, sets alarm.
- “Morning” tag in bathroom → starts coffee maker, turns on news podcast.
- Laundry timer on washing machine → starts 45-min timer on phone.
8.2 Work & Productivity
- Meeting room check-in → logs attendance in Google Sheets.
- Business card tag → shares vCard + LinkedIn profile + portfolio URL.
- Projector control → turns on projector, dims lights, opens presentation.
8.3 Personal Convenience
- WiFi sharing on guest table → guests tap to connect without asking password.
- Medical ID on bracelet → opens emergency contact and allergy info.
- Car mode on phone mount → enables Bluetooth, launches Maps, sets Do Not Disturb.
8.4 Retail & Marketing
- Product information on shelf → opens product video or reviews.
- Restaurant menu on table → loads PDF menu or online ordering.
- Art gallery next to painting → opens audio guide in browser.
8.5 Education & DIY
- Flashcard tag on textbook → opens explanatory video for that topic.
- Homework submission on classroom door → uploads file to teacher’s cloud.
- Lab equipment → opens digital manual or calibration tool.
8.6 Security & Access
- Garage door opener (with NFC relay) → tap to open.
- PC unlock (using Windows NFC login) → tap laptop to log in.
- Tool checkout system in workshop → logs borrower name and time.
8.7 Health & Fitness
- Water bottle reminder → logs water intake to Apple Health.
- Gym machine → opens workout tutorial video.
9.Troubleshooting Common NFC Programming Problems
| Problem | Likely Cause | Solution |
|---|---|---|
| Phone does not detect tag | NFC disabled or tag too far | Enable NFC, hold tag directly against phone’s NFC antenna (often top back) |
| “Write failed” | Incompatible chip or tag locked | Try a different tag type (NTAG21x). Check if tag is already locked. |
| Tag works on Android but not iPhone | iPhone requires specific NDEF format | Use NFC Tools to re-write with “strict NDEF” compliance. Ensure iOS version supports writing. |
| Tag writes but no action happens | Wrong record type or corrupted data | Read tag using NFC Tools “Read” tab to verify content. Write again. |
| Multiple actions only execute first one | Some apps ignore sequences | Use “Tasker” (Android) or “Shortcuts” (iOS) to handle multi-step automation. |
| Tag stops working after a few days | Cheap tag with low retention or physical damage | Buy genuine NXP NTAG series from reputable seller. Avoid metallic adhesive. |
10.Security and Privacy Considerations
Programming NFC tags is generally safe, but be aware of these risks:
Malicious tags: Never tap an unknown NFC tag. A tag could launch a phishing website or force Bluetooth pairing.
Overwrite attacks: If you leave tags writable, someone can replace your data with harmful content.
Data interception: Although range is 4cm, a rogue reader close by could read some tag data. Use password protection if available (e.g., NTAG21x password protection).
Cloning: Unprotected tags can be copied. For access control, use MIFARE DESFire or NTAG with mutual authentication.
11.How to Password-Protect an NFC Tag (NTAG21x):
Using NFC Tools Pro (paid):
Tap “Write” → “Password protection”.
Set a 4-byte password (e.g.,
A1B2C3D4).Set protection mode (read/write, write only, or full lock).
Write to tag. Any future write attempts require the password.
12.Future of NFC Programming – What’s Coming in 2026 and Beyond
NFC technology continues to evolve. Key trends include:
Larger memory: New NTAG 22x series offers up to 2KB.
Dynamic NFC tags: Bluetooth-connected NFC tags that can update content wirelessly.
NFC Wireless Charging: Tags that harvest power to run small sensors (temperature, humidity).
ISO 21481 standard: Better interoperability between phones and tags.
App Clip and Instant App integration: Tapping an NFC tag launches a lightweight app without installation.
As smartphones continue to include more powerful NFC hardware, programming NFC tags will become as common as scanning a QR code – but faster and more reliable.



ISO/IEC 14443A NFC Tags – Compatible with Google Pay for Seamless Mobile Payments
13. Conclusion – Start Programming Your First NFC Tag Today
Now you know exactly how to program NFC tags – from choosing the right hardware and software to writing URLs, WiFi credentials, automation sequences, and even custom NDEF records. Whether you are a beginner automating your morning routine or a business owner creating interactive marketing materials, NFC tags offer a cheap, reliable, and fun way to bridge the physical and digital worlds.
