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 via the footer link or your browser settings. Privacy policy

Skip to content
>_devvkit

calculators

CIDR Calculator

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

IPv4 (/0–/32) or IPv6 (/0–/128)
IPv4 192.168.1.0/24

Network address

192.168.1.0

Broadcast address

192.168.1.255

Subnet mask

255.255.255.0

Wildcard mask

0.0.0.255

First host

192.168.1.1

Last host

192.168.1.254

Total addresses

256

Usable hosts

254

Network (hex)

0xc0a80100

Binary breakdown
11000000.10101000.00000001.00000000
Network bits (24) Host bits (8)
//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.