---
type: Topic Hub
title: "IPv4 to SNMP OID Index Calculator"
description: "Convert an IPv4 address to the four-octet suffix used by SNMP IpAddress-indexed tables such as IP-MIB ipAddrTable."
resource: "https://snmp-monitoring.com/tools/snmp-ip-oid-index/"
tags: [tools, snmp]
timestamp: 2026-07-13T00:00:00Z
---

# IPv4 to SNMP OID Index Calculator

Convert an IPv4 address into the dotted suffix used by a table row whose index is defined as an `IpAddress`. Enter the column OID and address to construct a full instance OID. For example, `192.0.2.25` becomes the index suffix `.192.0.2.25` on an IpAddress-indexed column.

## How IPv4 OID indexes work

SNMP table indexes are encoded as additional OID subidentifiers after the column's base OID. An `IpAddress` index contains four octets, each represented as a decimal arc from 0 through 255. The IP-MIB `ipAddrTable` is a familiar example. Its `ipAdEntAddr` column has base OID `1.3.6.1.2.1.4.20.1.1`, so the instance for `192.0.2.25` is `1.3.6.1.2.1.4.20.1.1.192.0.2.25`.

This tool constructs only that four-octet form. Many newer tables use `ifIndex`, integer indexes, composite indexes, or variable-length octet strings. Their suffixes must follow the INDEX clause in the MIB and cannot be inferred from an IPv4 address alone.

## Verify the table's index definition

Read the MIB definition for the table entry before adding an address suffix. The `INDEX` clause defines the order and type of every index component. If a table uses `IpAddress` followed by an interface index, both components must be appended in that order. The generated suffix is a syntactic helper and does not confirm that the agent implements the object or that the row exists.

The old IP-MIB table has been superseded for many modern use cases by IP-MIB tables with different indexes. Interface-related tables commonly use `ifIndex`, while address tables may represent IPv4 and IPv6 addresses with different index structures. Confirm the exact MIB and object before querying.

## FAQ

**How is 192.0.2.25 encoded?** As four decimal arcs: `.192.0.2.25`.

**Can I use this for every IP-related OID?** No. It applies only when the table index is defined as a four-octet IpAddress.

**Does the generated OID guarantee that a row exists?** No. It only constructs the instance identifier. The device must support the object and contain the indexed row.

## Conclusion

Append IPv4 octets only when the MIB index type calls for `IpAddress`. Use the [OID lookup](/tools/snmp-oid-lookup.md) or a [MIB browser](/tools/mib-browser.md) to verify the object and table index before building queries.
