This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The Web NFC API allows exchanging data over NFC via light-weight NFC Data Exchange Format (NDEF) messages.
Note: Devices and tags have to be formatted and recorded specifically to support NDEF record format to be used with Web NFC. Low-level operations are currently not supported by the API, however there is a public discussion about API that would add such functionality.
NDEFMessageInterface that represents NDEF messages that can be received from or sent to a compatible tag via a NDEFReader object. A message is composed of metadata and NDEF Records.
NDEFReader Experimental
Interface that enables reading and writing messages from compatible NFC tags. The messages are represented as NDEFMessage objects.
NDEFRecordInterface that represents NDEF records that can be included in an NDEF message.
| Specification |
|---|
| Web NFC> # the-ndefreader-object> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
NDEFReader |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
Web_NFC_API |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
makeReadOnly |
No | No | No | No | No | 100 | No | 69 | No | 19.0 | 100 | No |
reading_event |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
readingerror_event |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
scan |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
secure_context_required |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
write |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Web_NFC_API