← All tools
SNMP OID Codec
Convert a dotted object identifier to ASN.1 BER hex, or turn BER bytes back into dotted arcs.
The first two arcs share one encoded number: 40 × first + second. That number and every later arc use unsigned big-endian base 128, with the high bit marking continuation bytes. The universal tag is 06. This codec accepts SMIv2 OIDs with 2–128 arcs and arc values through 4,294,967,295; the second arc stays below 40 when the first is 0 or 1. Decoding requires minimal arc encoding and a definite, minimal TLV length. Conversion is local: no MIB lookup, network request or data storage.