IP Subnet Calculator
Calculate network, broadcast, usable host range, netmask and wildcard for any IPv4 or IPv6 CIDR, and split it into subnets.
Open toolConvert IP ranges to the smallest list of CIDR blocks, merge overlapping CIDRs, expand a CIDR to its range and convert netmasks.
Four conversions in one tool. Range → CIDR turns a first and last address into the smallest exact list of CIDR blocks, ready for firewall rules and cloud security groups. Merge CIDRs takes a list of blocks and ranges (IPv4 and IPv6 together) and combines overlapping and adjacent ones into the shortest equivalent list. CIDR → range shows the first and last address and size of a block and tells you whether an address is inside it. Netmask ↔ prefix converts 255.255.252.0 to /22 and back, with the wildcard mask.
Non-contiguous netmasks are rejected and every result is exact, using 128-bit arithmetic for IPv6. Open a conversion directly with ?mode=range, merge, cidr or mask. Everything runs in your browser. What you paste is never uploaded, logged or stored.
Your code or text
IPv4, IPv6, CIDR, IP ranges
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Choose a conversion.
Enter the addresses, blocks or mask.
Copy or download the result.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Enter the addresses, blocks or mask.
Copy or download the result.
Calculate network, broadcast, usable host range, netmask and wildcard for any IPv4 or IPv6 CIDR, and split it into subnets.
Open toolLook up what a TCP or UDP port number is used for, or find the port for a service like SSH, PostgreSQL or Redis.
Open toolConvert MAC addresses between colon, hyphen, Cisco dot and plain formats in bulk, and see unicast/multicast and EUI-64 details.
Open toolPretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.
Open tool