1. Learn
  2. NFC Tech
  3. How to encode NFC tags with an iPhone

How to encode NFC tags with an iPhone

21 April 2020   |   NFC Tech

This is a step by step tutorial to get you started with writing / encoding NFC tags with an iPhone.

If you prefer to watch a video, then just press play or scroll down to get started.

Which iPhones can write NFC Tags ?

To write or encode NFC tags, you need to have an iPhone 7 or newer and be running iOS13 or newer. While the iPhone 6 has NFC for payments, it cannot read or write NFC tags, even with an App.

While the iPhone XR, XS and 11 can read NFC tags without any additional Apps, you do need to install an App with the iPhones 7, 8 and X. Read our tutorial on how to read NFC tags with an iPhone.

Which NFC tags will work with the iPhone ?

The iPhone supports a very wide range of NFC tags and NFC chips including NFC Forum Type 1, 2, 3, 4 and 5. However, for almost all use cases, Seritag recommend the use of NTAG series chips such as the NTAG213.

Note the difference between an NFC tag and an NFC chip. Every NFC Tag contains three elements - an NFC Chip, an antenna and something to hold it together. So an NFC tag might be a sticker, a disc or a card. The chip inside the tag is the 'brain' and stores the data in it's memory and handles the communication.

When we talk about NTAG213, we are talking about the chip. The physical object - the tag - is something different. So, an 'NTAG213 29mm white face NFC tag' is a 29mm sticky label which contains an NTAG213 chip.

Which iPhone App for writing NFC tags ?

There's a few Apps already available and the number of Apps is growing quickly. Seritag recommend using NXP's Tagwriter App. It's free, reliable, regularly updated and made by the same people that make the NFC chips that go into almost all the tags you would use.

At the time of writing, NXP's Tagwriter App is quite simple which is great for getting started. We'd also expect the App to develop quite quickly with new features being added regularly.

What's the difference between writing and encoding NFC tags ?

There isn't any difference. Both refer to the process of adding data, such as a web link URL, onto the memory space of an NFC tag. 'Encoding' is the technical term for doing this and is used within the NFC industry. 'Writing' is the term everyone else uses !

Encoding an NFC Tag with an iPhone

Step 1 : Open the App

Open the App and select 'New' to create a new dataset to encode onto your NFC tags.

Step 1 : Open the iPhone NFC App

Step 2 : Select Link dataset type

In this example, we are going to encode a simple web link. The App is capable of doing a wide variety of different encoding types but we'll leave those to you to experiment.

So select 'link' to move to the next screen.

Step 2 : Select link from the dataset options

Step 3 : Choose your URI type

This might seem that it's going to start getting all technical, but it really isn't. The URI type is simply the first bit of the URL. You are presented with four options which represent URLs (web links) starting with www. or without and links to secure servers (SSL) or not.

If you aren't sure and as most browsers can hide this part now, just copy the link from any browser and paste it into a text file or an email. You should now see the full URL and you can decide your URI type.

Another option is to simply have a look at the link in your browser. If you have a padlock symbol next to the URL address, then it's secure. If you don't then it's probably not.

We are going to encode to Seritag, which is https://seritag.com. So we will use 'https://'

Step 3 : Choose URI type

 

Step 4 : Enter URI data

We will now enter our URI data, which in our case is seritag.com. As another example, if you were to encode a web link such as https://www.bbc.co.uk, you will have chosen 'https://www.' as you URI type. You would now enter just 'bbc.co.uk' as the URI data.

The important point is that if you add the URI type and the URI data together it should match exactly what you would have if you pasted your URL from the browser into a text file. No additional dots or slashes.

If you get it wrong, don't worry. You can always encode your tags again and correct any errors.

Step 4 : Enter URI Data

 

Step 5 : Get ready to encode

Once you have entered your URL, then tap on save and write. You will see a 'Ready to Scan' screen. The hotspot on the iPhone is near the top edge of the phone rather than the middle of the back as it is with some Android phones.

You don't need to touch the NFC tag. You just need to be within a couple of centimetres and it will scan.

So, hold the phone over the NFC tag and it will start to encode.

Step 5 : Ready to encode

 

Step 6 : Encoding complete

Very quickly, the tag will encode and you will be presented with 'Write NDEF message successful'. You tag has now been encoded. If you want to check what you have encoded, then with an iPhone XS, XR or 11, you can just close the App and hold the phone over the tag to launch your website.

If you have an iPhone 7, 8 or X, then you need an App to read the NFC tag and you can find out how on our how to read NFC tags with an iPhone 7, 8 or X tutorial.

And that's it. You've successfully encoded your first tag.

Step 6 : NDEF message successful

 

 

It didn't work. What to do ?

If you followed the steps in this tutorial and your tag didn't encode then check a few things.

There's no on/off settings for NFC within the iPhone. You can't have turned it off as it is always on.

This means that there's almost certainly something not right with your NFC tag. One problem with the iPhone implementation is that it's difficult to tell whether there's a functional problem with the tag or the tag hasn't been prepared correctly. In both instances, the iPhone will not respond.

If you have an Android phone, then you should be able to scan the tag to check if it is responding. Using an App such as NXP's TagInfo will also give you information of the tag type. If the tag is functioning, then you usually encode data on it (without locking) with an Android phone and then encode data with the iPhone.

If the tag isn't reading with an Android phone, then its probably dead and you'll never bring it back to life.

Tag Write / Scan distance with iPhones

The actual tag scan or write distances that you can achieve with an iPhone will be dependent on both the NFC chip and the NFC tag. Generally, a larger NFC tag up to around 40mm will perform better than a smaller NFC tag. Anything less than 20mm and you might start to have a problem writing.

Note that its not quite that simple. There's a difference between the size of the tag and the size of the antenna. On low quality 'ebay' type tags, there can be quite a difference between the physical size of the tag and the antenna size because the manufacturer needs a large tolerance. The antenna size is the important part so even if you have a 25mm tag, if the antenna is only 18mm then it will become difficult to read.

There's also the difference between high quality tags and low quality tags in terms of antenna tuning. NFC tags need to work at a specific frequency. If you think of it like an old FM/AM radio - if you move the dial away from the radio station just a little you can still hear but the quality drops off quickly. The same with an NFC tag. As you move away from the peak tuning, it can still scan but the performance can be much lower.

Higher quality tags have a more reliable tuning and therefore almost always have a better scan distance.

The chip itself can also play a part. Some older NFC chips which were used in the early days of mobile phone NFC such as the MIFARE Classic or Ultralight C have a substantially worse scan distance than the latest NTAG series chips. Unfortunately, there are also 'fake' NFC chips on the market as well so even if they are labelled as a particular type, they might not be at all. The only way around this is to avoid buying tags from ebay or similar and buy them from a specialist. We would say that of course but specialist NFC retailers are usually very careful of chip and quality and can easily tell the difference.

Enjoy !

Customer Information
NFC Advice & News
Contact
©Copyright 2020 Seritag. Seritag is a trading name of TabDesk Ltd.
Seritag is a trading name of TabDesk Ltd, a UK Registered company 10474154. VAT Registration Number GB256328005.
Seritag £ /