NetBIOS Name Codec

Turn a NetBIOS name into the 32-letter label that name-service queries carry, or read such a label back into its name, 16th service byte and scope.

Up to 15 characters. Shorter names are padded with spaces, and the 16th byte marks the service.

Two hex digits, 00 to FF.

Windows registers names in upper case; leave this off unless you are matching raw bytes seen on the wire.

Encoded label

    RFC 1001 section 14.1 first level encoding splits each of the 16 name bytes into two nibbles and adds each nibble to the ASCII value of A (0x41), so every byte becomes two letters in the range A to P and the label is always 32 characters. A scope, when present, follows the label after a dot, forming an ordinary domain name. The last byte is the service suffix: Microsoft documents 0x00 for the workstation service, 0x03 for the messenger, 0x1B for the domain master browser, 0x1C for domain controllers, 0x1D for the master browser, 0x1E for browser elections and 0x20 for the server service. Encoding pads a short name with spaces to 15 bytes and upper-cases it unless you ask otherwise; decoding refuses bytes outside printable ASCII. This page does no name resolution and sends nothing over the network; everything runs in your browser.