How to Write NFC Tags on Android for Quick Automations
13 min read
Learn step‑by‑step how to write NFC tags with your Android phone, set up actions, and use them for everyday shortcuts without needing extra hardware.
September 25, 2026 21:00
Introduction
Near Field Communication (NFC) is a short‑range wireless technology that lets two devices exchange data when they are placed within a few centimeters of each other. Most modern Android smartphones include an NFC antenna and can both read and write NFC tags. Writing a tag is a convenient way to trigger actions – such as turning on Wi‑Fi, launching a favorite app, or setting your phone to silent – with a simple tap.
This tutorial walks you through the entire process: checking hardware compatibility, enabling NFC, preparing a tag, writing data, and testing the result. All steps use the native Android NFC capabilities and free tools that are already available on the Play Store, so you won’t need any special hardware beyond a blank NFC tag.
What You Need
- An Android phone running Android 5.0 (Lollipop) or later. Most devices released after 2015 include NFC support.
- Blank NFC tags – NTAG215, NTAG213, or MIFARE Ultralight are common and inexpensive. Ensure the tags are “rewritable” if you plan to change the content later.
- A quiet, flat surface for writing. Strong metal surfaces can interfere with the NFC field.
- An NFC‑writing app. Android ships with basic NFC handling, but a dedicated writer (e.g., the free “NFC Tools” app) provides a user‑friendly interface.
Step 1: Verify NFC Support and Enable It
- Open Settings on your Android device.
- Navigate to Connected devices (or More connections on some OEM skins).
- Tap NFC. If you do not see an NFC option, your device may not have the hardware.
- Toggle the switch to On. Some phones also have an option called Android Beam; you can leave it enabled or disabled – it does not affect tag writing.
When NFC is active, you’ll usually see a small NFC icon in the status bar.
Step 2: Choose the Right NFC Writing App
While Android can read tags out of the box, writing them requires an app that can compose the NDEF (NFC Data Exchange Format) messages. The NFC Tools app is a popular free choice that works on most Android versions. It offers:
- Simple “Write” wizard for common actions (URL, text, contact, Wi‑Fi, etc.).
- Advanced “Custom record” editor for developers.
- Tag information view (type, capacity, lock status).
Install the app from the Play Store, open it, and grant the requested NFC permission.
Step 3: Decide What Action the Tag Should Perform
Common use‑cases include:
- Launch an app – e.g., open your favorite music player.
- Toggle a setting – enable/disable Wi‑Fi, Bluetooth, or airplane mode (requires Android 13+ and the
WRITE_SECURE_SETTINGS permission, which is limited to system apps; for most users, a shortcut to the settings page works).
- Send a text message – pre‑filled SMS to a contact.
- Open a website – useful for marketing or personal shortcuts.
- Connect to a Wi‑Fi network – store SSID and password on the tag.
For this tutorial we’ll create a tag that opens the “Camera” app and starts a photo capture, a handy shortcut for quick snapshots.
Step 4: Prepare the Tag Content in NFC Tools
- Open NFC Tools and tap the Write tab at the bottom.
- Tap Add a record. Choose Application from the list.
- Enter the package name of the Camera app. On most Android devices the default camera package is
com.android.camera. If you use a third‑party camera, find its package name in the Play Store URL (e.g., com.google.android.apps.photos).
- Optionally add a second record: Text with the label “Quick Snap”. This text appears on compatible readers that display tag contents.
- When you are satisfied, tap the check‑mark (✔) to confirm the records.
Step 5: Write the Data to the NFC Tag
- Tap the Write button at the bottom of the screen.
- The app will display a prompt: “Hold your device near the NFC tag.”
- Place the back of your phone (the area with the NFC antenna – usually centered near the top) directly over the blank tag.
- Keep the phone steady for a few seconds. You’ll feel a subtle vibration or hear a beep when the write succeeds.
- If the write fails, the app shows an error. Common reasons:
- Tag is already locked – some tags are sold pre‑locked for read‑only use.
- Insufficient memory – larger records (e.g., full URLs with parameters) may exceed the tag’s capacity.
- When successful, the app displays a confirmation screen with the number of bytes written.
Write the same tag multiple times if you want to create several copies for different locations (e.g., bedside table, car dashboard).
Step 6: Test the Tag
- Exit the NFC Tools app.
- Ensure NFC is still enabled.
- If your phone goes to sleep, wake it first – some devices disable NFC when the screen is off.
- Tap the tag with the back of the phone.
- You should see the Camera app launch automatically.
- If the app does not open, check the notification bar for an NFC error message.
If the tag opens a settings page instead of the app, verify that the package name is correct and that the app is installed on the device.
Advanced: Writing Multiple Actions with a Shortcut
Android supports “shortcut” intents that can chain actions. Using NFC Tools’ Custom record option, you can embed a android.intent.action.VIEW URI that points to a specific activity within an app. For the Camera example, the URI might look like:
intent:#Intent;action=android.media.action.IMAGE_CAPTURE;category=android.intent.category.DEFAULT;end
Steps:
- In NFC Tools, choose Add a record → Custom.
- Paste the intent string above.
- Write to the tag as described earlier.
This method works on Android 7.0+ and provides a smoother launch because the system directly calls the camera activity.
Tips for Reliable Tag Writing
- Use high‑quality tags. Cheap tags may have inconsistent antenna tuning, leading to write failures.
- Avoid metal surfaces. Metal can detune the NFC field; place tags on plastic, wood, or paper.
- Keep firmware up to date. Some manufacturers improve NFC driver stability in system updates.
- Lock a tag only when you are sure. Locking makes the tag read‑only, preventing accidental rewrites but also eliminating future changes.
- Test on multiple devices if you plan to share tags with friends. Not all Android phones support every NDEF record type.
Security and Privacy Considerations
Because NFC tags can trigger actions automatically, treat them like physical keys:
- Do not write sensitive data (e.g., passwords) to a tag. NFC data can be read by any device that scans the tag.
- Restrict what a tag can do. Android limits certain actions (like changing system settings) to system‑level apps. This protects users from malicious tags that could, for example, enable airplane mode without consent.
- Validate URLs. If you write a web address, make sure it points to a trusted site to avoid phishing.
Common Issues and How to Fix Them
| Problem | Possible Cause | Solution |
| Write fails repeatedly | Tag is locked or out of memory | Use a new tag, or reduce the size of the record (e.g., shorten a URL) |
| Phone does not react to tag | Incorrect package name or missing app | Confirm the app is installed and the package name matches exactly |
| Tag works on my phone but not on a friend’s | Friend’s device lacks NFC or runs an older Android version | Ask them to enable NFC and ensure they have Android 5.0 or newer |
| Tag triggers the wrong action | Multiple records on the tag, device reads the first one | Re‑write the tag with only the intended record or reorder records using the app |
Putting Tags to Use in Everyday Life
Now that you know how to write NFC tags, here are a few practical ideas:
- Nightstand shortcut – a tag that disables Wi‑Fi, turns on Do Not Disturb, and launches a sleep‑tracking app.
- Car dashboard – a tag that opens your preferred navigation app with a preset destination (e.g., “Home”).
- Desk organizer – a tag that connects to your office Wi‑Fi automatically when you tap it with a laptop that has NFC.
- Event badge – a tag that shares your contact details via vCard when scanned by another attendee’s phone.
Conclusion
Writing NFC tags on Android is a straightforward process that unlocks a world of physical‑digital interactions. By enabling NFC, selecting a reliable writing app, and carefully composing the NDEF payload, you can create custom shortcuts that save time and add a touch of automation to daily routines. Remember to keep security in mind, test your tags, and enjoy the convenience of tapping your phone to make things happen.