Skip to main content

DigitalCalculators.net

IP Address Calculator

Last updated By the DigitalCalculators.net team Free, no sign-up

Convert an IPv4 or IPv6 address to decimal, hex and binary, or turn a number back into an address. Shorten or expand IPv6, check whether an address is private or public, get its reverse DNS name, and see whether it’s inside a network.

Results

IP address
ItemValue
IPv4 addresses are 32-bit numbers and IPv6 addresses are 128-bit numbers. Address types come from the IANA special-purpose registries (as read on November 30, 2026), IANA’s IPv6 address space list, RFC 1112 and RFC 4291. If an address is in more than one listed block, the calculator uses the smallest. Public means the address isn’t on those lists. It doesn’t mean the address is in use or can be reached. This calculator doesn’t look up your own IP address, its location, its owner or any live DNS records. IPv4 parts can’t have leading zeros. If an IPv6 address has a zone, such as %eth0, remove it first.

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:0db8:0000:0000:0000:0000:0000:0001 to 2001:db8::1.

Last updated: 30 November 2026 ·How we calculate this: addresses as 32-bit or 128-bit numbers

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

  1. Enter an IP address, or a decimal or 0x hex number.
  2. For a plain number, choose how to read it.
  3. Add a network, second address or number to move by if you need to.
  4. Press Calculate or Enter.
  5. 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.

BlockNameGlobally reachable
10.0.0.0/8Private-UseNo
100.64.0.0/10Shared Address SpaceNo
127.0.0.0/8LoopbackNo
169.254.0.0/16Link LocalNo
172.16.0.0/12Private-UseNo
192.0.2.0/24Documentation (TEST-NET-1)No
192.168.0.0/16Private-UseNo
198.18.0.0/15BenchmarkingNo
240.0.0.0/4ReservedNo
::1/128Loopback AddressNo
::ffff:0:0/96IPv4-mapped AddressNo
2001:db8::/32DocumentationNo
3fff::/20DocumentationNo
fc00::/7Unique-LocalNo
fe80::/10Link-Local UnicastNo

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:0DB8:0000:0000:0001:0000:0000:0001 becomes 2001:db8::1:0:0:1. It has two runs of two zero groups, so the first is shortened. You can use :: only once, because using it twice would make it unclear how many zeros each one stands for. To get the full form back, replace :: with enough zero groups to make eight, then fill each group to four digits. For IPv4-mapped addresses, this calculator keeps the IPv4 part readable, such as ::ffff:192.0.2.1.

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

SourceUsed ForLink
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

Cite or share this calculator

DigitalCalculators.net. (2026, November 30). IP Address Calculator. https://digitalcalculators.net/ip-address-calculator/