NFC Tag Printing: Making a Phone Tap Open a Web Page

When an NFC tag won't open a URL, it's u…

Home / Guides / NFC Tag Printing: Making a Phone Tap Open a Web Page

When an NFC tag won't open a URL, it's usually the format, not the printer. NFCW requires an https:// or tel: prefix — write www. and phones simply ignore it.

NFC tags versus plain HF tags

An NFC tag is technically an HF tag at 13.56 MHz, with an additional data format convention layered on top.

A plain HF tag stores whatever you want, however you want — an ASCII string, raw bytes, anything. Only your own system can interpret it.

An NFC tag must use NDEF (NFC Data Exchange Format, defined by the NFC Forum). This is a hard requirement of mobile operating systems. Phones don't guess at custom formats; they only understand NDEF.

So:

  • For your own system to read — HF tag, HFW, any format you like
  • For a phone to read — NFC tag, NFCW, NDEF only

That distinction determines which command you need.

How NFCW works

NFCW [l], "data"

Simple: l is an optional lock flag, data is the payload.

The payload format is constrained:

PurposeFormatExample
Open a web pageStarts with https://NFCW "https://www.peasymark.com"
Place a callStarts with tel:NFCW "tel:+8612345678900"

The https:// is not optional. Written as www.peasymark.com, the phone won't recognise it as a URL and nothing happens on tap. This is the single most common NFC write failure — by a wide margin.

From write to open, an NFC tag only takes four steps1NFCW commandMust start with https:// or tel:2Write NDEFThe printer stores a URI record3Tap the phoneNo app needed, the OS handles it4Open the pageThe browser jumps to the URLA www. prefix is ignored — the scheme is required
NFCW writes the record, NDEF stores it, the phone reads it, the browser opens it — all four steps have to work

A complete print job

SIZE 50 mm, 30 mm
GAP 2 mm
CLS
NFCW "https://www.peasymark.com/en/contact/"
TEXT 10,10,"TSS24.BF2",0,1,1,"Tap to contact us"
PRINT 1

Step by step:

  1. SIZE / GAP define the media
  2. CLS clears the print buffer
  3. NFCW writes the NDEF payload (before printing)
  4. TEXT renders the visible content
  5. PRINT 1 outputs one label

NFCW before or after TEXT makes no difference to the result. Encoding and printing are independent operations. Putting it first is still better practice — if the write fails, the layout work is skipped.

Verifying the write

The most direct check: tap it with a phone.

  • iPhone — a notification appears automatically; tap it to open
  • Android — a prompt or the browser opens directly

If nothing happens, work through this list:

One — payload format. Is the https:// prefix present?

Two — tag type. Is it actually an NFC tag (NTAG family)? A plain ISO14443A tag won't necessarily be recognised as NDEF by a phone.

Three — phone NFC state. iPhone requires iPhone 7 or later on iOS 11+. Some Android devices need NFC switched on manually.

Four — tap position. NFC antennas sit in different places. On iPhone it's at the top; on most Android devices, upper-middle. Tap the wrong spot and nothing reads.

Locking: when to add L

NFCW L, "https://www.peasymark.com"

Adding L locks the tag after writing, preventing further modification.

Reasonable to lock:

  • Product labels at final pack, content settled
  • Anti-counterfeit applications where tampering must be prevented
  • Bulk distribution to end users where edits aren't wanted

Better not to lock:

  • During commissioning (a locked tag is scrap)
  • Content that may change — campaign URLs, for instance
  • Any case where the business process might shift

Always verify before locking. Tap it with a phone and confirm the page opens, then lock. Lock first and discover a typo, and the tag is landfill.

How much data fits

Common NTAG capacities:

TypeUsable user memoryTypical use
NTAG213144 bytesURLs, short text
NTAG215504 bytesLonger URLs, contact details
NTAG216888 bytesMulti-part records, vCards

A normal URL runs 30–60 bytes, so NTAG213 is ample.

If the URL is long (lots of query parameters), count the bytes. Exceeding capacity causes a write failure, and the error message is usually unhelpful.

Fix: shorten the link. Convert the long URL to a short form and write that.

Where this gets used

Product traceability

A tag on the packaging opens a traceability page showing batch, inspection records and production date. No app install, no camera alignment — just tap.

Equipment maintenance

A tag beside the machine nameplate opens that unit's maintenance history, or dials the service line directly.

Trade show stands

A tag on the counter opens the product brochure or a demo video. Better than a QR code because there's no app, no focus, no framing.

Business cards

Written as vCard, a tap saves the contact. This format isn't necessarily produced by NFCW alone — the host typically constructs the NDEF vCard record directly.

Frequently asked questions

The printer says the write succeeded, but phones don't respond

Try a different phone first. NFC antenna placement and sensitivity vary widely, particularly on some Android models.

If several phones fail, scan the tag with a dedicated app such as NFC Tools. If it can't identify the tag type either, the problem is the tag.

Can I write Chinese or other non-ASCII text?

Yes. NDEF uses UTF-8, so non-ASCII text is fine.

For URLs, though, non-ASCII characters must be percent-encoded — you can't place raw Chinese characters in a URL payload.

Can a label carry both NFC and a QR code?

Yes. Print a QR code and write NFC on the same label and both channels work.

That's a practical approach: older phones scan the code, newer ones tap. Wider coverage.

The write fails with an error, but the tag is new

Check three things:

  1. Does the tag have enough capacity for the payload?
  2. Is the tag NDEF-formatted? Some bare inlays need formatting first.
  3. Is the payload format correct (https:// or tel:)?

Can NFC tags be rewritten?

Unlocked tags can be rewritten, typically rated for 100,000+ cycles.

Locked tags are one-time only.

Can the printer damage the NFC chip?

No. Writing is a standard RF operation with no physical contact. But note: bending, misalignment and metal proximity all reduce write success.

Confirm the label is flat and correctly seated before printing — no bubbles, no lifting.

Need a hand?

Tell us what the tag should do — open a URL, place a call, something else — and we'll confirm the format and tag selection.

Contact us

Related guides

Need help choosing a printer?

Tell us your label size, print volume and environment — we will recommend the right model and settings.

Request a Quote