IP Address Converter
Convert an IPv4 address to its integer, hexadecimal and binary forms, or turn an integer back into a dotted address. Worked examples included.
About IP Address Converter
The IP Address Converter shows an IPv4 address as an integer, hexadecimal and binary, or turns an integer back into a dotted address.
Example
192.168.1.1 is the integer 3,232,235,777 and 0xC0A80101 in hex.
Why integers?
An IPv4 address is a 32-bit number; databases often store it as an integer to sort and compare ranges quickly.
Strict checking
Parts above 255 or the wrong number of parts are refused. Leading zeros are read as decimal.
Good to know
One address at a time; for networks use the Subnet / CIDR Calculator.
Private
Everything runs in your browser. Nothing you type is uploaded.
Convert by hand
Each of the four parts is one byte. For hex, write each part as two hex digits: 192.168.1.1 is C0.A8.01.01, so 0xC0A80101. For the integer, use a x 16,777,216 + b x 65,536 + c x 256 + d.
How to use IP Address Converter
- Type an IPv4 address such as 192.168.1.1, or an integer from 0 to 4294967295.
- Read the integer, hexadecimal and binary forms.
- Copy the form you need.
- Use a dotted address without leading zeros when you copy it elsewhere.
Help & FAQ
How do we convert an IP address to an integer?
Enter the dotted address. 192.168.1.1 gives 3,232,235,777. By hand, multiply the four parts by 16,777,216, 65,536, 256 and 1 and add them.
How do we convert an integer back to an IP address?
Type the integer. 3232235777 gives 192.168.1.1. The allowed range is 0 to 4,294,967,295.
What is the hexadecimal form of 192.168.1.1?
0xC0A80101: C0 is 192, A8 is 168 and 01 and 01 are the last two parts.
What is the largest IPv4 integer?
4,294,967,295, which is 255.255.255.255 or 0xFFFFFFFF. A larger number is rejected.
Does it support IPv6?
No. It handles 32-bit IPv4 addresses only. ::1 returned Not a valid IPv4 address.
Can we enter a hexadecimal address like 0x7f000001?
No. In our test it was rejected. Convert it to decimal, or type the dotted form.
How are leading zeros treated?
As decimal. 010.0.0.1 gave 10.0.0.1. Some other software reads a leading zero as octal, so avoid leading zeros when you copy the address elsewhere.
What does the binary form show?
The 32 bits in four groups of eight, separated by dots, which is useful for subnet work.
Why would we store an IP as an integer?
As a 32-bit integer it uses 4 bytes, and address ranges become simple numeric comparisons.
Does it calculate subnets or CIDR ranges?
No. It converts single addresses. Subnet and CIDR calculators are separate tools.
What counts as an invalid address?
A part above 255, fewer than four parts, a negative number or text that is not an IPv4 address or integer.
Is our input sent to a server?
No. The conversion runs in your browser. In our network check, only routine analytics requests were sent.