Packetory

IP Subnet Calculator

Worked example

IPv4: 192.168.1.0/24
Network:
192.168.1.0
Broadcast:
192.168.1.255
First host:
192.168.1.1
Last host:
192.168.1.254
Subnet mask:
255.255.255.0
Reverse DNS zone:
1.168.192.in-addr.arpa.
IPv6: 2001:db8::/32
Compressed:
2001:db8::
Expanded:
2001:db8:0:0:0:0:0:0
First address:
2001:db8::
Last address:
2001:db8:ffff:ffff:ffff:ffff:ffff:ffff
Address count:
79228162514264337593543950336
Reverse DNS zone:
8.b.d.0.1.0.0.2.ip6.arpa.

Both examples use documentation-safe ranges — 192.168.1.0/24 is a private RFC 1918 range, and 2001:db8::/32 is the IANA-reserved IPv6 documentation prefix (RFC 3849) — so nothing here reveals a real network.

FAQ

Why do /31 and /127 show both addresses as usable?

RFC 3021 defines IPv4 /31 as a point-to-point link prefix with no broadcast address, so both addresses in the block are host-usable instead of one being reserved as network and the other as broadcast. IPv6 /127 follows the same convention. Every other prefix length keeps the ordinary network-address/broadcast-address-reserved behavior.

Why is the reverse-DNS zone sometimes shown with a note?

A clean reverse-DNS zone name only exists at whole-octet boundaries for IPv4 (/8, /16, /24, /32) or whole-nibble boundaries for IPv6 (every multiple of /4). When your prefix falls in between, the zone shown is truncated to the nearest fully covered boundary and flagged with an inline note — building the full classless-delegation name (RFC 2317) for in-between prefixes is out of scope for this tool.

What do the /48, /56, and /64 subdivision buttons do?

For IPv6 blocks between /48 and /64, the tool suggests common next-step subnet sizes. Clicking one replaces the CIDR input — and the URL — with the first available sub-block at that prefix length and recomputes the whole result for it, the same one-CIDR-in, one-result-out behavior as typing a new value directly. There's no separate drill-down view or back-to-parent history to manage.

Can I share a specific subnet result with a teammate?

Yes — every CIDR you enter, or subdivision you click, updates the page URL (for example /tools/subnet?cidr=192.168.1.0%2F24). Copy that URL and send it to anyone; opening it reproduces the exact same result immediately, with no login or setup required.

Does this tool send the CIDR I enter anywhere?

No. All subnet math runs entirely in your browser using native BigInt arithmetic — nothing you type is sent to a server or logged, and the CIDR value is deliberately kept out of analytics.