IP Address to Integer Converter

Convert an IPv4 address such as 192.168.1.1 into its 32-bit integer form, with the hexadecimal and binary forms as well.

1 Fill in the box

2 Your answer

Your answer shows here as you type.

How to use the IP Address to Integer Converter

  1. Type an IPv4 address in dotted form, such as 192.168.1.1.
  2. Read the integer row, which is the whole address as one 32-bit number.
  3. Use the hexadecimal or binary rows if you need those forms.

Frequently asked questions

How is an IP address converted to an integer?

Each of the four octets is multiplied by 256 raised to its position, from 256 cubed for the first octet down to 1 for the last, and the results are added. For 192.168.1.1 this gives 192 × 16777216 + 168 × 65536 + 1 × 256 + 1 = 3232235777.

What is the range of IPv4 integers?

The range runs from 0 (0.0.0.0) to 4294967295 (255.255.255.255), which is 2 to the power of 32 minus 1, giving about 4.3 billion possible addresses.

Why convert an IP address to an integer?

A number is easier to compare and store than a dotted string. Range checks such as testing whether an address falls inside a CIDR block, and lookups in IP geolocation or firewall tables, are often done on the integer form.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.