tools

Subnet / CIDR Calculator

Network, broadcast, host range and mask for an IPv4 CIDR block, splitting into smaller subnets, and IPv6 prefixes.

[loading tool…]

How it works

A CIDR prefix /n keeps the first n bits as the network:

network   = address AND mask
broadcast = network OR NOT mask
hosts     = 2^(32 − n) − 2

The two reserved addresses (network and broadcast) don’t apply to /31 point-to-point links (RFC 3021) or /32 single hosts. The wildcard mask is the inverse, as used in Cisco ACLs and OSPF.

Split divides the network into equal subnets with a longer prefix: a /24 gives 4 × /26 of 62 hosts each.

IPv6

IPv6 addresses are 128 bits. The tool expands and compresses them in the RFC 5952 canonical form (lowercase, no leading zeros, the longest run of zero groups as ::). Ordinary LANs are always /64.

References

esc
All tools
ADC / DAC Resolution Calculator[embedded]
Base64 Encoder / Decoder[dev]
Battery Runtime Calculator[hardware]
Chmod Calculator[dev]
CRC Calculator[embedded]
Cron Expression Builder[dev]
CSV ⇄ JSON Converter[dev]
Duty-Cycle Battery Life[embedded]
Generator Wattage Calculator[hardware]
Hash Generator[dev]
HTML Entity Encoder[dev]
JSON Formatter & Validator[dev]
JSONPath Tester[dev]
JWT Decoder[dev]
LED Resistor Calculator[embedded]
LLM Memory / VRAM Estimator[ai]
Lorem Ipsum Generator[text]
Markdown Preview[text]
Markdown Table Generator[text]
Number & Float Inspector[embedded]
Number to Words[text]
Ohm's Law Calculator[embedded]
Password Generator[dev]
Quantization Size Calculator[ai]
RC / LC Filter Calculator[embedded]
Regex Tester[dev]
Register / Bitfield Viewer[embedded]
Resistor Color Code[embedded]
Roman Numeral Converter[text]
Solar Battery Bank Sizing[hardware]
Solar Panel Output[hardware]
SQL Formatter[dev]
Subnet / CIDR Calculator[dev]
Tensor Shape Calculator[ai]
Timer / PWM Calculator[embedded]
UART Baud Rate Error[embedded]
Unix Timestamp Converter[dev]
UPS Runtime Calculator[hardware]
URL Encoder & Parser[dev]
UUID Generator & Inspector[dev]
Voltage Divider Calculator[embedded]
Voltage Drop Calculator[hardware]
Wire Size Calculator[hardware]
XML Formatter[dev]
YAML Validator & Converter[dev]
Commands
Toggle theme (auto → light → dark)
Copy link to this page
Go to all tools
Lire en français
↑↓ move↵ open⌘↵ new tab