Back to top

← All tools

IP Calculator

Plan, inspect and optimize IPv4 and IPv6 address space. Calculations run locally in your browser.

No network addresses or plans are sent to the server. Export a plan to save your work.

IPv4 · CIDR ⇄ subnet mask
Examples: 192.168.10.45/26 or 2001:db8:1234::1/64
Have a subnet mask but not the CIDR?

Find the equivalent prefix instantly. Select a row to use it in the calculator.

CIDR ⇄ Netmask
View IPv4 CIDR / subnet mask reference table

IPv4 contiguous subnet masks
CIDRNetmaskAddressesSelect
/00.0.0.04.294.967.296
/1128.0.0.02.147.483.648
/2192.0.0.01.073.741.824
/3224.0.0.0536.870.912
/4240.0.0.0268.435.456
/5248.0.0.0134.217.728
/6252.0.0.067.108.864
/7254.0.0.033.554.432
/8255.0.0.016.777.216
/9255.128.0.08.388.608
/10255.192.0.04.194.304
/11255.224.0.02.097.152
/12255.240.0.01.048.576
/13255.248.0.0524.288
/14255.252.0.0262.144
/15255.254.0.0131.072
/16255.255.0.065.536
/17255.255.128.032.768
/18255.255.192.016.384
/19255.255.224.08.192
/20255.255.240.04.096
/21255.255.248.02.048
/22255.255.252.01.024
/23255.255.254.0512
/24255.255.255.0256
/25255.255.255.128128
/26255.255.255.19264
/27255.255.255.22432
/28255.255.255.24016
/29255.255.255.2488
/30255.255.255.2524
/31255.255.255.2542
/32255.255.255.2551

The address count includes network and broadcast where applicable. /31 and /32 have special use cases.

Result

Ready