← All tools

SNMP OID Codec

Convert a dotted object identifier to ASN.1 BER hex, or turn BER bytes back into dotted arcs.

Dotted: 1.3.6.1.2.1.1.1.0. Hex value: 2b 06 01 02 01 01 01 00. Full TLV: 06 08 2b 06 01 02 01 01 01 00. Use value: or tlv: to force the hex form.
Examples

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.