How to use the IP address converter
- Type or paste an address. Dotted IPv4, a plain integer, hex starting with
0x, dotted binary and IPv6 are all understood. - Read the same address in every other form.
- Click any value to copy it.
How an IPv4 address becomes a number
An IPv4 address is a 32-bit number. The dotted form splits it into four bytes so people can read it. To get the integer, multiply each part by a power of 256:
192.168.1.10
= 192 × 256³ + 168 × 256² + 1 × 256 + 10
= 3,232,235,786
Databases often store addresses this way because integers are small and quick to compare and sort.
Decimal, binary and hex for each byte
| Decimal | Binary | Hex |
|---|---|---|
| 0 | 00000000 | 00 |
| 10 | 00001010 | 0A |
| 127 | 01111111 | 7F |
| 128 | 10000000 | 80 |
| 168 | 10101000 | A8 |
| 192 | 11000000 | C0 |
| 255 | 11111111 | FF |
Short and full IPv6 addresses
An IPv6 address is 128 bits, written as eight groups of four hex digits. Two rules shorten it: leading zeros in a group can be dropped, and one run of all-zero groups can be replaced with ::. So 2001:0db8:0000:0000:0000:ff00:0042:8329 becomes 2001:db8::ff00:42:8329.
An IPv4 address can be carried inside IPv6 as an IPv4-mapped address, ::ffff:192.168.1.10, which dual-stack software uses to handle both versions with one socket.
For masks and host ranges, use the subnet calculator. For general number bases, see the binary, hex and decimal converter.
Private by design
This tool runs entirely in your web browser. Nothing you type or paste is sent to a server, logged or stored, so it is safe to use with internal addresses, configuration files and other work data. There is no sign-up and it keeps working offline once the page has loaded.
Frequently asked questions
How do I convert an IP address to binary?
Convert each of the four numbers to 8 binary digits. 192.168.1.10 becomes 11000000.10101000.00000001.00001010. This tool does it as you type.
What is the decimal value of an IP address?
The whole 32-bit address as one number. 192.168.1.10 is 3232235786.
How do I expand a shortened IPv6 address?
Paste it in. The full form shows all eight groups with four digits each.
Can I convert an integer back to an IP address?
Yes. Type the integer, such as 3232235786, and the dotted address is shown.