Back to Blog
How-To

NFC Tag Programming for Beginners: Write URLs, Text & WiFi Credentials

·Updated
NT
NAX Tech
NFC Tools Developer

> Key Takeaway: Programming an NFC tag is as simple as choosing a record type (URL, text, WiFi, or vCard), entering your data, and tapping a blank tag with your phone. No coding, no special hardware, and no technical background required.

NFC Tag Programming for Beginners

NFC tags are tiny, rewritable chips that can store various types of data. When someone taps an NFC tag with their phone, the stored data triggers an action — opening a website, connecting to WiFi, saving a contact, or launching an app. In this beginner-friendly guide, you will learn exactly how to write data to NFC tags using your Android phone.

What Can You Write to an NFC Tag?

NFC tags store data in a standardized format called NDEF (NFC Data Exchange Format). NDEF supports several record types:

NDEF Record TypeWhat It DoesTypical SizeExample
URI (URL)Opens a website20-100 byteshttps://nfcclone.com
TextDisplays plain text10-500 bytes"Meeting Room 3B"
WiFiAuto-connects to a network50-150 bytesSSID + password
vCardSaves a contact200-800 bytesName, phone, email
MIMECustom app dataVariesApplication-specific
Smart PosterRich URL with metadata50-200 bytesURL + title + icon
Android App RecordLaunches an app30-80 bytesPackage name

Understanding Tag Memory

Before you write, make sure your data fits. Here is the usable memory for common tags:

Tag TypeUsable MemoryFits URL?Fits WiFi?Fits vCard?
NTAG213144 bytesYes (short)YesBasic only
NTAG215504 bytesYesYesYes
NTAG216888 bytesYesYesYes (detailed)
MIFARE UL64 bytesYes (very short)NoNo
Rule of thumb: Each character in your data takes approximately 1 byte. A URL like "https://example.com/page" is about 25 bytes, but NDEF headers add 5-10 bytes of overhead per record.

Step-by-Step: Writing a URL to an NFC Tag

This is the most common use case — programming a tag that opens a website when tapped.

What You Need

  • Android phone with NFC enabled
  • A blank NFC tag (NTAG213 or larger)
  • NFC Clone app installed

Steps

  • Open NFC Clone and select the Write function
  • Choose "URL" as the record type
  • Enter your URL — for example, `https://nfcclone.com`
  • Tap "Write" and hold your blank NFC tag against the back of your phone
  • Wait for confirmation — you will see a success message when the write completes
  • Test it — tap the tag with your phone again to verify it opens the correct URL
  • Tips:
    • Use the full URL including `https://` for maximum compatibility
    • NDEF URI records use prefix compression (e.g., `https://www.` is stored as a single byte), so URLs starting with common prefixes use less memory
    • If the write fails, make sure the tag is not write-protected or locked

    Step-by-Step: Writing WiFi Credentials

    This is perfect for sharing your home or office WiFi password. Guests tap the tag and connect instantly — no typing the password.

    Steps

  • Open NFC Clone and select Write
  • Choose "WiFi" as the record type
  • Enter your network name (SSID)
  • Select the security type (WPA2 is most common)
  • Enter the password
  • Tap "Write" and hold the blank tag to your phone
  • Place the programmed tag near your router or on the fridge
  • Important: WiFi NDEF records store the password in clear text on the tag. Anyone who scans the tag will see your WiFi password. This is usually fine for guest networks but avoid using it for sensitive networks.

    Step-by-Step: Writing a vCard (Contact)

    Program a tag that saves your contact information when scanned — a digital business card.

    Steps

  • Open NFC Clone and select Write
  • Choose "vCard / Contact" as the record type
  • Fill in your details:
  • - Full name

    - Phone number

    - Email address

    - Company name

    - Website URL

    - Job title

  • Tap "Write" and hold the blank tag to your phone
  • Hand out the tag or embed it in a business card
  • Memory note: A full vCard with name, phone, email, company, title, and URL typically uses 300-500 bytes. Use NTAG215 (504 bytes) or NTAG216 (888 bytes) for complete vCards. NTAG213 (144 bytes) can fit only a name, phone, and email.

    Step-by-Step: Writing Plain Text

    Sometimes you just need a tag that displays a message — a room number, an instruction, or a label.

    Steps

  • Open NFC Clone and select Write
  • Choose "Text" as the record type
  • Enter your text message
  • Select the language code (e.g., "en" for English)
  • Tap "Write" and hold the blank tag to your phone
  • Plain text records include a language code header so the reading device knows the language. This adds 3-5 bytes of overhead.

    Common Errors and Troubleshooting

    ErrorCauseSolution
    "Tag is read-only"Tag was locked after a previous writeUse a new, unlocked tag
    "Not enough space"Data exceeds tag memoryUse a larger tag or shorten your data
    "Write failed"Tag moved during writeHold the tag steady for 2-3 seconds
    "Tag not detected"Poor NFC antenna contactSlide the tag slowly to find the sweet spot
    "Unsupported tag"Tag is not NDEF-formattedFormat the tag first using NFC Clone
    "IO Error"Electromagnetic interferenceMove away from metal surfaces

    Can You Rewrite NFC Tags?

    Yes, most NFC tags are rewritable by default. You can overwrite the data on an NTAG or MIFARE Ultralight tag as many times as you want (typical endurance is 100,000 write cycles).

    However, tags can be permanently locked — once locked, the data cannot be changed. NFC Clone will warn you before locking a tag. Only lock a tag if you are certain you will never need to update the data.

    Multiple Records on One Tag

    NDEF supports writing multiple records to a single tag. For example, you could store a URL and a text message on the same tag. The reading device will typically act on the first record and display the others.

    Keep in mind that multiple records consume more memory due to additional NDEF headers. Plan your data layout before writing.

    Next Steps

    Now that you know how to program NFC tags, explore these related resources:

    Ready to start programming? Download NFC Clone free on Google Play and write your first NFC tag in under a minute.

    Ready to Clone Your NFC Tags?

    Download NFC Clone for free — the easiest NFC tag copier for Android.