IPv4 ↔ Decimal

Convert between dotted IPv4 notation, 32-bit decimal, hex, and dotted binary.

IPv4 to decimal: the calculation

An IPv4 address is one 32-bit number written as four bytes. Each byte is multiplied by its place value and the results are added:

192.168.1.10

192 × 16,777,216 = 3,221,225,472
168 ×     65,536 =    11,010,048
  1 ×        256 =           256
 10 ×          1 =            10
                   -------------
                   3,232,235,786

The same address in the other notations:

decimal   3232235786
hex       0xC0A8010A
binary    11000000.10101000.00000001.00001010

The range runs from 0.0.0.0 = 0 to 255.255.255.255 = 4,294,967,295.

Where the decimal form is used

  • Databases. An address stored as an unsigned 32-bit integer takes 4 bytes and sorts numerically, so a range lookup is one BETWEEN comparison. MySQL's INET_ATON() and INET_NTOA() perform this conversion.
  • GeoIP and allocation tables. Many data files list networks as a start number and an end number.
  • Filter evasion. Browsers accept http://3232235786/ as an address. Phishing links and server-side request forgery attempts use the decimal or hex form to pass a filter that only looks for dotted notation. Convert a suspicious number here to see the address behind it.
  • Subnet arithmetic. In binary, the network part and the host part of an address are visible directly: a /24 keeps the first 24 bits.

Related tools

Monitor IPv4 ↔ Decimal automatically

Convert between dotted IPv4 notation, 32-bit decimal, hex, and dotted binary. NetTests can run this check on a schedule, preserve historical results, compare changes over time, and alert you the moment something breaks.

Start monitoring free → See all monitoring products

Frequently Asked Questions

What is an IPv4 decimal address?

An Internet Protocol version 4 (IPv4) address is a 32-bit number. Dotted notation (192.168.1.1) splits it into four 8-bit octets for readability. The decimal form is the same 32 bits as a single integer: 192.168.1.1 = 3232235777. Some tools, databases, and legacy systems store IPs as 32-bit integers rather than strings.

When would I encounter a decimal IP address?

Decimal Internet Protocol (IP) addresses appear in: older Apache/Nginx logs that store IPs as integers, MySQL's INET_ATON()/INET_NTOA() functions, certain Windows registry entries, and some phishing Uniform Resource Locators (URLs) that obscure the destination (http://3232235777/ instead of http://192.168.1.1/). This tool converts between all representations.

What does the dotted binary form show?

Each octet is shown as 8 binary digits: 192.168.1.1 becomes 11000000.10101000.00000001.00000001. This makes subnet masking visual — the network bits and host bits are clearly separated at the mask boundary.