IP Address Calculator
e.g. 192.168.1.1/24, 10.0.0.5 255.255.252.0, 3232235777, 0xC0A80101 or an IPv6 address
| Field | Value | Binary | Copy |
|---|---|---|---|
| Address | 192.168.1.1 | 11000000.10101000.00000001.00000001 | |
| Netmask | 255.255.255.0 = 24 | 11111111.11111111.11111111.00000000 | |
| Wildcard | 0.0.0.255 | 00000000.00000000.00000000.11111111 | |
| Network | 192.168.1.0/24 | 11000000.10101000.00000001.00000000 | |
| Broadcast | 192.168.1.255 | 11000000.10101000.00000001.11111111 | |
| HostMin | 192.168.1.1 | 11000000.10101000.00000001.00000001 | |
| HostMax | 192.168.1.254 | 11000000.10101000.00000001.11111110 | |
| Hosts/Net | 254 | ||
| Decimal | 3,232,235,777 | ||
| Hex | 0xC0A80101 | ||
| Class | Class C (legacy) | ||
| Type | Private (RFC 1918) | ||
| Reverse DNS | 1.1.168.192.in-addr.arpa | ||
■ network bits ■ host bits
Need to split this network? Use the subnet calculator.
| Compressed | ||
|---|---|---|
| Expanded | ||
| Network | ||
| Last address | ||
| Addresses | ||
| Reverse zone |
For prefixes and /64 splitting, open the IPv6 subnet calculator.
Runs entirely in your browser. Nothing you enter is sent to a server.
What the IP calculator shows
Enter an IPv4 address, with or without a prefix or mask, to see it in dotted decimal, binary, a single decimal integer and hexadecimal. The calculator also shows the network it belongs to, the broadcast address, the usable host range, the legacy address class and whether the address is private, public or reserved. IPv6 addresses are detected automatically. Nothing you enter leaves your browser.
Example: 192.168.1.1/24 in binary
Address: 192.168.1.1 11000000.10101000.00000001. 00000001
Netmask: 255.255.255.0 11111111.11111111.11111111. 00000000
Network: 192.168.1.0 11000000.10101000.00000001. 00000000
Broadcast: 192.168.1.255 11000000.10101000.00000001. 11111111
HostMin: 192.168.1.1
HostMax: 192.168.1.254
Hosts/Net: 254 Private (RFC 1918)Converting an IP address to decimal
Multiply each octet by its place value and add: 192 × 16,777,216 + 168 × 65,536 + 1 × 256 + 1 = 3,232,235,777. In hexadecimal, 192.168.1.1 is 0xC0A80101.
IP address classes (legacy)
Classes are obsolete since CIDR (1993) but still appear in exams.
| Class | First octet | Default mask | Notes |
|---|---|---|---|
| A | 1 – 126 | 255.0.0.0 (/8) | 127 is loopback |
| B | 128 – 191 | 255.255.0.0 (/16) | |
| C | 192 – 223 | 255.255.255.0 (/24) | |
| D | 224 – 239 | — | Multicast |
| E | 240 – 255 | — | Reserved |
FAQ
How do I convert an IP address to binary?
Convert each octet to an 8-bit binary number. 192 is 11000000, 168 is 10101000, 1 is 00000001, so 192.168.1.1 is 11000000.10101000.00000001.00000001.
What class is 172.16.0.1?
Class B (first octet 128–191). It is also in the private range 172.16.0.0/12.
What is 192.168.1.1 as a number?
3,232,235,777 in decimal, or 0xC0A80101 in hex.
Is 10.x.x.x a public IP?
No. 10.0.0.0/8 is a private range (RFC 1918) and is not routed on the internet.
What is the difference between the IP calculator and the subnet calculator?
The IP calculator focuses on one address: its binary, decimal, class and type. The subnet calculator focuses on the network and on splitting it into subnets.