We use cookies to understand how the site is used and to display ads. Analytics and advertising only run after you accept. You can change your choice anytime. Privacy policy

Skip to content
devvkit

devvkit / calculators

CIDR Calculator

Calculate network, broadcast, hosts, and masks for any IPv4 or IPv6 CIDR block.

IPv4 (/0-/32) or IPv6 (/0-/128)
Enter a valid CIDR like 192.168.1.0/24 or 2001:db8::/32

share this tool

Calculate everything about a CIDR block: network address, broadcast, subnet mask, wildcard, first and last usable host, total addresses, and a visual binary breakdown. Supports IPv4 (/0-/32) and IPv6 (/0-/128).

>[x]Features
  • -Network, broadcast, mask, wildcard, and host ranges
  • -Total and usable address counts
  • -Color-coded binary network/host breakdown
  • -Full IPv6 support with shorthand expansion
  • -Preset buttons for common blocks
>>Use Cases
  • >Designing a VPC or subnet layout
  • >Checking whether an IP is inside a subnet
  • >Calculating host capacity before provisioning
  • >Converting between CIDR and mask notation

Frequently Asked Questions

>What is a /24??
A block with 8 host bits: 256 total addresses and 254 usable hosts. The tool computes these values for any prefix from /0 to /32 (IPv4) or /128 (IPv6).
>Why is the usable count always total minus 2??
The network address (all host bits zero) and broadcast address (all host bits one) are reserved. Exceptions: /31 point-to-point links and /32 single hosts.
>Does it support IPv6??
Yes: including shorthand (::) notation. IPv6 shows the network address, host bits, and total address count.