Tool · estimate

NDEF link size counter

A phone or USB writer stores a link on a tag as an NDEF record inside a small wrapper. This counter adds up those bytes for the link you paste and compares the total with the user memory you type from your chip's data sheet. Nothing you type leaves this page.

Paste it exactly as your app will write it.
The user memory figure from your chip's data sheet.

Bytes needed, estimate–

Paste or type a link to count its bytes.

    PartBytes
    TLV start: tag 03 and length2
    Record header, type length, payload length, type "U"4
    Prefix code (none yet)1
    Rest of the link, UTF-80
    TLV terminator FE1
    Total–

    Tag memory as written

      TLV wrapperrecord header and prefix codelink text

      The formula

      bytes needed = rest of link (UTF-8 bytes) + 1 prefix code + 4 record header, type length, payload length, type "U" + 3 TLV tag 03, TLV length, terminator FE + 3 if the payload (prefix code + rest) is over 255 bytes + 2 if the whole record is over 254 bytes

      Example: https://example.com becomes code 04 plus 11 bytes of "example.com", so 11 + 1 + 4 + 3 = 19 bytes.

      What the estimate assumes

      Where the numbers come from

      The record layout, the short and long record formats and the prefix codes are defined by the NFC Forum in the NFC Data Exchange Format (NDEF) Technical Specification and the URI Record Type Definition Technical Specification. The TLV wrapper with tag 03 and terminator FE is defined in the NFC Forum Type 2 Tag Technical Specification. The specifications are listed on the NFC Forum specifications page. Your tag's user memory comes from its chip maker's data sheet.