IPv4 / IPv6 subnet calculator

Calculate network prefixes, address ranges, IPv4 masks and usable addresses from CIDR notation.

Workspace (EN)

Calculated in your browser. No address is sent to a server.

IPv4 / IPv6 subnet calculator

A CIDR prefix gives the number of fixed network bits. IPv4 networks up to /30 exclude the network and broadcast addresses from the usual host count; /31 is a point-to-point convention and /32 is a single address. IPv6 has no broadcast address; the total count is not a claim that every address is assignable.

Learn →

RFC 4632 — CIDR

Explore network tools

Address conversions & privacy signals

Conversion

IP range to CIDR converter

Convert an inclusive IPv4 or IPv6 address range into the smallest exact set of CIDR blocks, locally in your browser.

Open tool
Conversion

CIDR to IP range converter

Find the first and last IPv4 or IPv6 addresses and exact address count for a CIDR prefix.

Open tool
Conversion

IPv4 to binary, hex and decimal converter

Convert dotted IPv4 notation into 32-bit binary, hexadecimal and unsigned decimal without a network request.

Open tool
Conversion

IPv6 expand and compress

Expand an IPv6 address into eight hexadecimal groups or compress it into canonical RFC 5952 notation.

Open tool
Diagnostic

IPv4 and IPv6 address validator

Check IP address syntax, normalized notation, address family and special-use scope without sending the address to a server.

Open tool
Privacy

Browser privacy signals inspector

Inspect a limited set of browser settings locally, including languages, display size, time zone and privacy preference signals.

Open tool
Diagnostic

HTTP request header inspector

See a limited allowlist of headers received by InspectMyIP when you explicitly request this diagnostic.

Open tool
Conversion

IPv4 netmask converter

Convert a contiguous IPv4 subnet mask to CIDR prefix, wildcard mask and binary.

Open tool
Subnetting

CIDR overlap checker

Find containment or intersection of two IPv4 or IPv6 CIDR networks.

Open tool
Subnetting

IP network splitter

Split an IPv4 or IPv6 CIDR network into equal-sized child prefixes.

Open tool
Subnetting

VLSM subnet calculator

Allocate non-overlapping IPv4 subnets for different host requirements, largest group first.

Open tool
Diagnostic

IPv6 address analyzer

Inspect IPv6 notation, address scope, example prefix, reverse DNS name and mapped IPv4.

Open tool
Privacy

IP prefix masking tool

Mask the host bits of an IPv4 or IPv6 address before sharing an example or report.

Open tool
Lookup

MAC address analyzer and offline vendor lookup

Analyze a MAC address and match its longest assignment prefix against an IEEE CSV that you supply locally.

Open tool