How To Make An NFC Tag: The Complete Step-by-Step Programming Guide

How To Make An NFC Tag: The Complete Step-by-Step Programming Guide

What is an NFC tag? How it works and how to stay secure

Writing custom data to an NFC tag requires a physical Near Field Communication tag containing an NTAG-series microchip, an NFC-enabled smartphone, and a dedicated encoding application like NFC Tools. By broadcasting a 13.56 MHz radio frequency field, the mobile device powers the passive tag and writes standardized NFC Data Exchange Format (NDEF) payloads directly to its internal EEPROM memory. This simple procedure allows you to instantly automate device settings, share digital contact cards, or launch specific web pages upon contact.


Pre-Programming Inventory: Tag Selection and App Configuration

Before writing data, you must gather the correct hardware and software components. Selecting the wrong microchip or tag type can result in execution failures, especially when mounting tags onto metal surfaces or attempting to store large files such as contact cards.



  • Physical NFC Tags: Purchase blank, passive NFC tags conforming to NFC Forum Type 2 or Type 5 specifications. The NTAG213 (144 bytes) is optimal for short URLs, while the NTAG215 (504 bytes) is standard for gaming amiibo replication, and the NTAG216 (888 bytes) is required for extensive vCards and multi-action commands.
  • On-Metal Shielding (Conditional): If you plan to apply the tag to a laptop, appliance, or metal pipe, you must purchase specialized "on-metal" tags. These have an integrated ferrite protective layer that prevents the metal surface from detuning the tag's internal loop antenna.
  • Smartphone Compatibility: Ensure your smartphone has active NFC hardware. For iOS, an iPhone 7 or newer running iOS 13 or later is required. For Android devices, verify that NFC is toggled on in the system connection settings.
  • Encoding Application: Download a verified, industry-standard encoding tool. The most reliable options are NFC Tools by Wakdev or NXP TagWriter, both available for free on Google Play and the Apple App Store.
  • Estimated Budget: $5 to $15 USD for a pack of 10 to 20 raw tags.
  • Time Commitment: Less than 5 minutes for software configuration and tag writing.

Step-by-Step NFC Writing and Deployment Workflow

Follow this precise procedural sequence to successfully encode data and program your custom NFC tag.



Step 1: Select the Proper Tag Chipset for Your Target Payload

Analyze your required payload before selecting your tag. If your payload exceeds the usable memory of the chip, the write operation will fail.



  • Check the byte count of your target data. A standard URL requires approximately 30 to 80 bytes. A complete contact card (vCard) with name, phone number, and email easily exceeds 400 bytes.
  • Select an NTAG213 for URLs, trigger actions, and simple text.
  • Select an NTAG215 or NTAG216 for large, multi-field contact records or complex automation scripts.

Warning: Do not attempt to write a 500-byte vCard payload to an NTAG213 chip. The write operation will terminate mid-transfer, resulting in a corrupted, unreadable tag.



Step 2: Initialize the Writer Software and Choose an Action

Launch your chosen NFC editing app and establish the core payload framework.



  1. Open your designated app, such as NFC Tools, on your mobile device.
  2. Select the option labeled Write from the main dashboard.
  3. Tap on Add a record to access the directory of standardized NDEF payloads.
  4. Select your specific data type. For web-based triggers, select URL/URI. For automation and smart home setups, select Task or Custom Application Launch. For digital networking, select Contact or Text.


Step 3: Enter the Payload Values and Optimize Data Sizes

Input your information and optimize it to fit within the physical limits of the microchip.



  1. Enter the target data into the provided fields. For instance, if setting up a website redirect, type the complete URL including the HTTPS prefix.
  2. To conserve precious bytes of memory, use a reliable URL shortener for complex web addresses.
  3. Once the data is entered, tap OK or Save to load the payload into the app's output buffer.


Step 4: Align Antennas and Execute the Magnetic Induction Write

Establish a physical connection using electromagnetic induction to write the buffered data.



  1. Within your application, tap the Write / [Byte Count] button. The screen will display a "Ready to Scan" or "Approach an NFC Tag" prompt.
  2. Locate your smartphone's internal NFC loop antenna. On iPhones, it is located on the top back edge adjacent to the camera module. On Android devices, it is typically located in the dead-center of the rear glass panel.
  3. Slowly bring the target tag toward this specific region of your phone. Keep the devices steady within a distance of 1 inch (2.5 cm).
  4. Hold the tag in place for 1 to 2 seconds until you receive a visual checkmark and haptic vibration confirmation indicating a successful write cycle.

Pro-Tip: Always remove thick protective cases or those with metal backings or magnetic wallet inserts before writing. These physical barriers block the electromagnetic field, causing write errors or read failures.



Step 5: Test and Lock Your NFC Tag (Optional)

Test your new tag to ensure it works correctly, and apply write protection if needed.



  1. Close your programming application completely to clear any active programming buffers.
  2. Hold your phone near the newly programmed tag. The device should immediately detect the tag and display a drop-down notification to launch the payload.
  3. If the tag is destined for public use and you want to prevent others from altering its content, open your app, select the Other menu, and choose Write-protect / Lock.
  4. Confirm the lock action. Note that this physical state change is permanent and cannot be undone.

NFC Tags for Churches - Clearstream

NFC Tags for Churches - Clearstream

NFC Chipset Architecture and Performance Benchmarks

Selecting the right microchip is critical to building a reliable NFC setup. Use this detailed comparison table to identify the precise physical parameters and capacities of the most common standard chips on the market.



Chip Model Protocol Standard Total Memory (Bytes) Usable NDEF Memory Recommended Use Case Target Read Range
NTAG213 ISO/IEC 14443-A 180 144 Bytes Short URLs, Wi-Fi keys, and smart triggers Up to 2.0 inches
NTAG215 ISO/IEC 14443-A 540 504 Bytes Amiibo replication, detailed scripts, and short text Up to 1.5 inches
NTAG216 ISO/IEC 14443-A 924 888 Bytes vCards, comprehensive business profiles, and multi-record NDEF data Up to 1.0 inch
MIFARE Classic 1K Proprietary / ISO 14443 1024 716 Bytes Enterprise access badges and loyalty systems Up to 2.5 inches

Common NFC Write Failures and Diagnostics

When programming NFC tags in the field, you may run into read/write failures. Use these diagnostic steps to troubleshoot and fix common issues.



Scenario 1: Smartphone Fails to Detect Tag or Write Times Out



  • Root Cause: Misalignment of the smartphone’s internal loop antenna with the tag's copper coil, or interference from protective phone cases.
  • Actionable Fix: Slowly slide the tag across the back of your phone to find the internal antenna location. Ensure the phone is resting flat against the tag, and temporarily remove any protective cases that contain magnets, metal plating, or thick cardholder pockets.


Scenario 2: Tag Becomes Completely Unresponsive on Metal Surfaces



  • Root Cause: The metallic surface absorbs the 13.56 MHz electromagnetic field generated by the reader, detuning the tag's antenna coil and preventing power-up.
  • Actionable Fix: Replace the standard paper or PVC tag with an specialized "On-Metal" tag. These tags feature a thin layer of magnetic ferrite material that insulates the internal antenna coil from metallic interference.


Scenario 3: Application Displays "Memory Limit Exceeded" or "Write Failed"



  • Root Cause: The payload size of the NDEF record exceeds the physical storage capacity of the tag's chip (EEPROM).
  • Actionable Fix: Compress your payload by using a URL shortener for web links, or remove secondary fields (such as profile images) from your vCards. If you need to store larger payloads, upgrade to an NTAG216 tag, which provides 888 bytes of usable memory.


Scenario 4: iPhone Fails to Trigger the Tag Automatically



  • Root Cause: Older iPhones do not support background tag reading. Additionally, the tag may contain custom third-party task strings instead of standard NDEF payloads.
  • Actionable Fix: Ensure the phone is an iPhone XS or newer for automatic background scanning. Write your payload using standard web URLs, as iOS natively supports URL and contact detections without requiring third-party reader applications.

Frequently Asked Questions



What is the difference between NTAG213, NTAG215, and NTAG216?

The primary difference is the available memory capacity. The NTAG213 has 144 bytes of usable memory, suitable for simple actions like opening web pages. The NTAG215 offers 504 bytes, commonly used for gaming data. The NTAG216 has 888 bytes, which is ideal for storing detailed contact cards and multi-record datasets.



Do NFC tags require a battery to operate?

Passive NFC tags do not require an internal battery or power source. They remain completely dormant until they come within range of an active reader, like a smartphone, which generates a magnetic field that powers the tag's internal microchip via electromagnetic induction.



Can I program an NFC tag to trigger custom smart home automations?

You can easily use NFC tags to trigger complex smart home automations. By configuring the tag with your phone's native automation tools, like Apple Shortcuts or Android Tasker, scanning the tag can trigger a series of actions, such as toggling smart lights or starting a playlist.



Is it possible to rewrite an NFC tag multiple times?

Standard NTAG-series chips can be rewritten up to 100,000 times. However, if you apply a permanent write-lock to the tag during programming, it will remain read-only forever, and you cannot overwrite or erase its contents.



Can I use NFC tags to securely store credit card or payment data?

Standard consumer NFC tags (such as NTAG stickers) cannot securely store payment data. Secure contactless payments require specialized secure-element microchips and encrypted, proprietary protocols managed by certified card issuers and payment platforms.

Expand Your IoT Integration with Premium NFC Hardware

Explore advanced smart home integrations and discover professional-grade microchip solutions. Contact our engineering support team today to order custom-printed, industrial-grade NFC assets tailored to your business needs.


Wie Funktioniert Ein Nfc-Tag-Writer? - OUCEBE

Wie Funktioniert Ein Nfc-Tag-Writer? - OUCEBE

Read also: Navigating United Community Healthcare: Services, Insurance Plans, and Accessing Quality Local Care