Antpact Toolbox
中文
Home › Network Tools › CIDR Calculator

CIDR Calculator

Input an IP and prefix length to compute network/broadcast addresses, usable range, and subnet mask.

Privacy: this tool runs entirely in your browser — files are never uploaded, and data is gone when you close the page.

How to use

  1. Enter the IP and prefix length (e.g. 192.168.1.10/24).
  2. View network/broadcast/usable range/host count.
  3. Adjust the prefix to recalculate.

FAQ

What is CIDR?

CIDR (Classless Inter-Domain Routing) uses IP/prefix-length to represent a network segment.

How is usable host count calculated?

Usable hosts = 2^(32-prefix) - 2 (/31 and /32 are special cases).

Is anything sent to a server?

No — everything runs locally in your browser.

About this CIDR Calculator

All computation happens locally in your browser. Enter the IP and prefix to get network, broadcast, usable host range and count. Special cases for /31 and /32 are handled.