Inputs
Integer representation
IPv4 representations
An IPv4 address contains 32 bits split into four octets. The same 32-bit value can be written in dotted decimal, binary, hexadecimal or as an unsigned integer. Address classes are shown only as a historical reference; modern networks use CIDR.
More useful tools
General information only. Results are estimates and may vary by convention, provider, location or implementation.
More information
How to use it
Enter an IPv4 address in dotted-decimal notation or another supported representation. The converter shows equivalent forms useful for networking, debugging and understanding how IPv4 addresses are encoded.
IPv4 structure
An IPv4 address consists of 32 bits divided into four octets. Each dotted-decimal octet ranges from 0 to 255. For example, 192.168.1.1 is made from the binary octets 11000000, 10101000, 00000001 and 00000001.
Decimal conversion
The 32-bit unsigned integer is a × 256³ + b × 256² + c × 256 + d. For 192.168.1.1, the integer representation is 3,232,235,777. Binary and hexadecimal are alternative representations of the same bit pattern.
What conversion does not do
Changing notation does not change the network address or determine whether it is public, private or routable. To determine the network and host range, you also need a subnet mask or CIDR prefix.
Validation and security
Reject octets outside 0–255 and ambiguous input forms. Some software accepts unusual IPv4 representations, but standard dotted decimal is clearer for configuration and documentation. Never assume a string is safe solely because it looks like an IP address.
Explore related tools
Working on a larger task? Browse the connected calculators in these toolkits.
Developer & Networking Tools →Continue exploring Developer & Networking Tools
These calculators work independently. Open another tool to continue your planning.