Quick Answer
To turn an IPv4 address into one decimal number, multiply its four parts by 16,777,216, 65,536, 256 and 1, then add the results. For 192.168.1.10, that gives 3,232,235,786, or 0xC0A8010A in hex. It’s in 192.168.0.0/16, a private block. In IPv6, you can shorten 2001:
Embed this calculator
Adjust the size if needed, then copy the code below into your page or blog. The calculator will load in an iframe and stay updated automatically.
Table of Contents
- IP Address Calculator
- Quick Answer
- Related Calculators
- How This IP Address Calculator Works
- How to Use the IP Address Calculator
- Core Formulas
- Key Terms
- Worked Example
- Real-Life Examples
- IPv4 vs IPv6 Addresses
- Special IP Address Blocks
- How to Shorten an IPv6 Address
- What the Address Type Tells You
- Common Mistakes to Avoid
- Frequently Asked Questions
- References & Sources
How This IP Address Calculator Works
An IP address is a number written in a way that is easier for people to read. An IPv4 address has 32 bits, usually shown as four decimal parts from 0 to 255. An IPv6 address has 128 bits, shown as eight groups of hexadecimal digits. This calculator reads the address as one number, then shows it in other forms: decimal, hex, binary and its reverse DNS name.
You can also enter a decimal number, a hex number that starts with 0x, or an IPv4 address in binary (four groups of eight bits separated by dots). Some numbers fit both versions, so choose which one you want. Add a network to check whether the address is inside it. Add a second address to count how many there are between them, or move forward or back by any number. To work out a whole IPv4 subnet, use the Subnet Calculator. For ranges and lists, use the CIDR Calculator.
Quick explanation:
- IPv4: 32 bits in four parts, such as 192.168.1.10.
- IPv6: 128 bits in eight groups, such as 2001:db8::1.
- Type: found by matching the address to blocks listed by IANA, the organization that manages these lists.
How to Use the IP Address Calculator
- Enter an IP address, or a decimal or 0x hex number.
- For a plain number, choose how to read it.
- Add a network, second address or number to move by if you need to.
- Press Calculate or Enter.
- Read the results, then save them or share a link.
Core Formulas
- IPv4 to decimal: a × 256³ + b × 256² + c × 256 + d, for the address a.b.c.d
- Decimal to IPv4: divide by 256 again and again. The remainders are the parts, from last to first
- Addresses in a range: last − first + 1
- Inside a network: first address in the network ≤ address ≤ last address in the network
- IPv4 reverse DNS name: d.c.b.a.in-addr.arpa
Key Terms
- IPv4: the Internet Protocol version with 32-bit addresses.
- IPv6: the Internet Protocol version with 128-bit addresses.
- Reverse DNS name: the name used to find the host name for an IP address.
- IPv4-mapped address: an IPv6 form that holds an IPv4 address, such as ::ffff:192.0.2.1.
- Multicast: sending one message to a group of devices.
Worked Example
Convert 192.168.1.10 to decimal, hex and binary.
- 192 × 16,777,216 = 3,221,225,472
- 168 × 65,536 = 11,010,048
- 1 × 256 = 256, and the last part adds 10
- Total: 3,232,235,786
- Hex: 192 = C0, 168 = A8, 1 = 01 and 10 = 0A, so it’s 0xC0A8010A
- Binary: 11000000.
10101000. 00000001. 00001010 - Reverse DNS name: 10.1.168.192.in-addr.arpa
Real-Life Examples
- Databases: 3232235786 stored as one number is 192.168.1.10.
- DNS work: the reverse name for 192.0.2.25 is 25.2.0.192.in-addr.arpa.
- Logs: write IPv6 addresses the same way before you compare them.
- Access rules: 10.1.2.3 is in 10.0.0.0/8, but 11.1.2.3 isn’t.
- Counting: there are 107 addresses from 10.0.0.200 to 10.0.1.50, counting both.
IPv4 vs IPv6 Addresses
- Size: IPv4 has 2³² = 4,294,967,296 addresses, and IPv6 has 2¹²⁸.
- How they’re written: IPv4 uses decimal parts and dots. IPv6 uses hex groups and colons.
- Short form: IPv6 can use :: once for zero groups. IPv4 has no standard short form like it.
Special IP Address Blocks
From the IANA special-purpose registries, read on November 30, 2026. The calculator checks the full lists.
| Block | Name | Globally reachable |
|---|---|---|
| 10.0.0.0/8 | Private-Use | No |
| 100.64.0.0/10 | Shared Address Space | No |
| 127.0.0.0/8 | Loopback | No |
| 169.254.0.0/16 | Link Local | No |
| 172.16.0.0/12 | Private-Use | No |
| 192.0.2.0/24 | Documentation (TEST-NET-1) | No |
| 192.168.0.0/16 | Private-Use | No |
| 198.18.0.0/15 | Benchmarking | No |
| 240.0.0.0/4 | Reserved | No |
| ::1/128 | Loopback Address | No |
| ::ffff:0:0/96 | IPv4-mapped Address | No |
| 2001:db8::/32 | Documentation | No |
| 3fff::/20 | Documentation | No |
| fc00::/7 | Unique-Local | No |
| fe80::/10 | Link-Local Unicast | No |
How to Shorten an IPv6 Address
RFC 5952 recommends one short form, so the same address is always written the same way. First, use lowercase letters and remove the zeros at the start of each group. A group of all zeros becomes a single 0. Then replace the longest run of two or more zero groups with a double colon (::). If two runs are the same length, shorten the first one. Don’t use :: for just one zero group.
For example, 2001:
What the Address Type Tells You
- Private-Use: IPv4 addresses for networks such as homes and offices.
- Shared Address Space: 100.64.0.0/10 isn’t globally reachable.
- Link Local: traffic to or from these addresses isn’t forwarded by routers.
- Documentation: blocks set aside for examples.
- Unique-Local: IPv6 addresses in fc00::/7 that aren’t normally globally reachable.
Common Mistakes to Avoid
- Reading the parts as one long decimal number. Each part has a different value, based on powers of 256.
- Using :: twice. It’s allowed only once in an IPv6 address.
- Thinking all 172.x addresses are private. Only 172.16.0.0 to 172.31.255.255 are.
- Adding leading zeros to IPv4 parts. Some programs may read them as octal.
- Thinking public means reachable. The address may be unused or blocked.
Frequently Asked Questions
Multiply the four IPv4 parts by 16,777,216, 65,536, 256 and 1, then add the results.
3232235786.
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.
No. It’s in 100.64.0.0/10, the Shared Address Space, which isn’t globally reachable.
Use lowercase, remove leading zeros in each group, and replace the longest run of two or more zero groups with ::.
It’s the address written backward for a DNS lookup. For 192.0.2.25, it’s 25.2.0.192.in-addr.arpa.
Enter the address and the network in CIDR form. The result says yes or no.
No. It only works with addresses you enter.
No. It doesn’t look up locations or owners.
Yes. Enter a decimal number or a hex number that starts with 0x, then choose IPv4 or IPv6.
It’s the IPv6 loopback address, which a device uses to talk to itself.
Yes. Save each set by name in this browser.
Yes. Use Compare: keep as A.
Yes. Use Share link or Print.
References & Sources
| Source | Used For | Link |
|---|---|---|
| IANA IPv4 Special-Purpose Address Registry | Private, loopback, link-local, documentation and other special IPv4 blocks. | https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml |
| IANA IPv6 Special-Purpose Address Registry | Special IPv6 blocks and whether each one is globally reachable. | https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml |
| IANA Internet Protocol Version 6 Address Space | Global unicast (2000::/3), multicast, unique local, link-scoped and reserved space. | https://www.iana.org/assignments/ipv6-address-space/ipv6-address-space.xhtml |
| RFC 4291, IP Version 6 Addressing Architecture | How IPv6 addresses and prefixes are written, and the main address types. | https://www.rfc-editor.org/rfc/rfc4291 |
| RFC 5952, A Recommendation for IPv6 Address Text Representation | Lowercase letters, no leading zeros, and how to use :: in the short form. | https://www.rfc-editor.org/rfc/rfc5952 |
| RFC 1112, Host Extensions for IP Multicasting | IPv4 multicast (host group) addresses run from 224.0.0.0 to 239.255.255.255. | https://www.rfc-editor.org/rfc/rfc1112 |
| RFC 1035, Domain Names | IPv4 reverse names under IN-ADDR.ARPA. | https://www.rfc-editor.org/rfc/rfc1035 |
| RFC 3596, DNS Extensions to Support IP Version 6 | IPv6 reverse names under IP6.ARPA, using one hex digit at a time. | https://www.rfc-editor.org/rfc/rfc3596 |
| Python documentation, ipaddress | Used to check this calculator’s results. It also rejects leading zeros in IPv4 addresses, to avoid confusion with octal numbers. | https://docs.python.org/3/library/ipaddress.html |