IP Parser

Parse and analyze IPv4 and IPv6 addresses. Show type, decimal and binary representation, address class, public/private range, and CIDR subnet calculations.

IPv4 & IPv6 CIDR Subnet Auto-Detect

How to Use IP Parser

1

Enter IP Address

Type an IPv4 or IPv6 address. You can optionally append CIDR notation (e.g., /24) for subnet calculations.

2

Instant Analysis

The address is parsed to show its type, class, scope (public/private), and decimal and binary representations.

3

Subnet Details

When CIDR notation is provided, view the network address, broadcast, host range, and total host count.

What is an IP Address?

An IP (Internet Protocol) address is a numerical label assigned to each device on a computer network. IPv4 uses 32-bit addresses (e.g., 192.168.1.1) while IPv6 uses 128-bit addresses (e.g., 2001:db8::1). IP addresses enable devices to identify and communicate with each other on the network.

IPv4

32-bit addresses in dotted decimal notation (e.g., 192.168.1.1). Supports classes A through E and CIDR subnetting.

IPv6

128-bit addresses in hexadecimal notation (e.g., 2001:db8::1). The next-generation protocol with a vastly larger address space.

CIDR Notation

Classless Inter-Domain Routing (e.g., 192.168.1.0/24) specifies an IP address and its associated routing prefix for subnet calculations.

Frequently Asked Questions

Does it support both IPv4 and IPv6?

Yes. The tool auto-detects and parses both IPv4 (e.g., 192.168.1.1) and IPv6 (e.g., 2001:db8::1) addresses. It handles shortened IPv6 notation with double colons (::) and expanded forms.

Can it calculate CIDR subnet ranges?

Yes. Enter a CIDR notation like 192.168.1.0/24 to see the network address, broadcast address, first and last host, and total usable host count. CIDR calculation is supported for IPv4 addresses.

Does it detect private vs public IPs?

Yes. The tool identifies RFC 1918 private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback addresses (127.x.x.x), and link-local addresses (169.254.x.x) for IPv4, and equivalent ranges for IPv6.

Which IPv4 ranges are private or reserved?

RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 for private networks. Also special: 127.0.0.0/8 (loopback), 169.254.0.0/16 (link-local, including the address you see when DHCP fails), 100.64.0.0/10 (carrier-grade NAT, RFC 6598), and 192.0.2.0/24 with 198.51.100.0/24 (documentation examples). This parser labels which category an address falls into.

How do I convert an IPv4 address to decimal or binary?

Treat the address as four unsigned bytes: 192.168.1.1 = 192x256^3 + 168x256^2 + 1x256 + 1 = 3232235777. In binary each byte is 8 bits: 11000000 10101000 00000001 00000001. Databases sometimes store IPs as this 32-bit integer - this parser shows both forms plus the hex representation.

What does CIDR notation like /24 mean?

The prefix length says how many leading bits are fixed: /24 pins the first 24 bits, leaving 8 for hosts - 256 addresses, 254 usable after subtracting the network and broadcast addresses. /30 holds 4 addresses (2 usable); /16 holds 65,536. The parser computes the network address, broadcast, and usable range for any prefix length.

Which IPv6 addresses are special?

::1 is loopback, the IPv6 localhost; fe80::/10 is link-local (auto-configured per interface); fc00::/7 is unique-local, the private range from RFC 4193; and 2000::/3 covers global unicast. You will also see :: - the unspecified address - in DHCPv6 solicit messages. IPv6 writes 128 bits as eight colon-separated hex groups, with one :: abbreviation allowed.

What is the difference between a public and a private IP address?

Public addresses are globally routable on the internet; private ones exist only inside a local network and reach the outside world through NAT. A device typically holds a private address (say 192.168.1.42) on its LAN while the router holds the single public address. This distinction powers home networks, container networks, and office LANs - and is why the same private addresses appear in millions of networks worldwide.

{-- * External Resources Component(#18 Phase 3b 内容佐证工程) * 工具页「权威引用」区块:RFC / W3C / WHATWG / ECMA / IANA / 官方规范站 / Wikipedia。 * * - 接受 :slug 属性 → 经 config/tool-sources.php 家族矩阵渲染该工具的权威引用 * - slug 未命中映射时不渲染(无权威来源的工具静默跳过) * - 链接 title 保持英文(引用源专名);description 经 * common.resources.descriptions.{key} 本地化,lang 未命中回退英文(线上不裸奔) * - 链接保持 dofollow(rel="noopener noreferrer") * * @param string|null $slug --}}