Skip to content
UniKit

IP address and CIDR toolkit

IPv4 / IPv6 and CIDR subnet maths: parse an address, derive the network and broadcast address, count usable hosts, test subnet containment, convert between bases and build reverse-DNS (ip6.arpa) names, following RFC 4291 / 4632 / 1918 / 3596.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

IP / CIDR / range

Accepts IPv4, IPv6, CIDR (address/prefix), ranges joined with - or ~, and 0x / 0b / 0o / decimal integer forms.

Only used when the input is a bare address without a prefix: 24 treats 10.0.0.1 as 10.0.0.1/24. IPv4 allows 0–32, IPv6 allows 0–128.

Parsed result

Follows RFC 4291 (IPv6), RFC 4632 (CIDR), RFC 1918 (private ranges) and RFC 3596 (ip6.arpa reverse names). Everything is computed locally.

Enter an IP, a CIDR block or a range to see the parsed result

Addresses: 0 · Usable hosts: 0

What this tool does

  • Confirm the network address, broadcast address, netmask and usable host count of a CIDR block before writing firewall, security-group or route rules (192.168.1.0/24 gives 254 usable hosts).
  • Convert an address to decimal, hex or binary, or build the reverse-DNS (PTR) name for DNS troubleshooting.
  • Check whether a specific address falls inside a subnet or address range.

Example

Input

192.168.1.0/24 (second field: 192.168.1.10)

Output

version: IPv4
kind: ipv4-cidr
address: 192.168.1.0
integer: 3232235776
hex: 0xc0a80100
binary: 0b11000000101010000000000100000000
octal: 0o30052000400
classification: private
reverse-dns: 0.1.168.192.in-addr.arpa
prefix: /24
netmask: 255.255.255.0
wildcard: 0.0.0.255
network: 192.168.1.0
broadcast: 192.168.1.255
addresses: 256
usable-hosts: 254
contains 192.168.1.10: yes

The second field is only used for the containment check; leave it empty and the trailing "contains" line is omitted.

Frequently asked questions

Which input forms are supported?

Bare IPv4 or IPv6 addresses, CIDR (address/prefix), ranges joined with - or ~, and IPv4 written as 0x, 0b, 0o or a plain integer (3232235776 equals 192.168.1.0). IPv4 short forms with 1–4 groups also work (127.1 equals 127.0.0.1).

How is the usable host count computed?

Addresses = 2^(32-prefix) and usable hosts = addresses - 2, dropping the network and broadcast addresses. Edge prefixes such as /31 and /32 have no host range to spare, so the address count itself is reported. Explicit ranges are counted by length without subtracting the endpoints.

What do the private / loopback / link-local labels mean?

For IPv4 they follow RFC 1918 (10/8, 172.16/12, 192.168/16) and the special ranges of RFC 6890 (127/8 loopback, 169.254/16 link-local, 224/4 multicast, 240/4 reserved). For IPv6 they cover ::1 loopback, fc00::/7 unique-local, fe80::/10 link-local and ff00::/8 multicast; ::ffff:0:0/96 mapped addresses are classified with the IPv4 rules.

Does it query whois or reverse DNS?

No. Everything is computed locally from the RFC rules. The reverse-dns line only assembles the ip6.arpa / in-addr.arpa name according to RFC 3596; no DNS request is made and no geolocation is looked up.

Why is the address count for 2001:db8::/64 so large?

IPv6 has no broadcast address, so a /64 contains 2^64 = 18446744073709551616 addresses. When a value exceeds JavaScript's safe integer range the numeric statistic is clamped to 9007199254740991, but the address, mask and range text stay exact.

Keywords:ipv4 subnet calculatorcidr calculator

Related tools