CIDR Calculator
Enter an IP address and prefix length or subnet mask to instantly calculate subnet details.
Last updated: May 29, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is CIDR Calculator?
CIDR Calculator computes all subnet information from a CIDR (Classless Inter-Domain Routing) notation. Given an IPv4 address and either a prefix length (/24) or dotted subnet mask (255.255.255.0), it calculates the network address, broadcast address, first and last usable host, number of usable hosts, wildcard mask, and binary representations. Supports all prefix lengths from /0 to /32.
How to Use CIDR Calculator
Enter an IPv4 address.
Enter a prefix length (e.g. 24) or subnet mask (e.g. 255.255.255.0).
Results appear instantly.
Common Use Cases
- Planning IP address allocation for a network segment.
- Verifying subnet boundaries when configuring firewalls or routers.
- Learning subnetting and CIDR notation for networking certifications.
- Checking how many hosts fit in a given subnet before provisioning.
Example Input and Output
CIDR /24 calculation for 192.168.1.0.
IP: 192.168.1.0
Prefix: /24Network: 192.168.1.0
Broadcast: 192.168.1.255
Hosts: 192.168.1.1 – 192.168.1.254
Usable: 254Privacy
All calculations run locally in the browser.
Frequently Asked Questions
What is CIDR notation?
CIDR (Classless Inter-Domain Routing) notation expresses a network as an IP address followed by a slash and prefix length (e.g. 192.168.1.0/24). The prefix length indicates how many bits are in the network portion of the address.
Can I enter a subnet mask instead of a prefix?
Yes. Enter the subnet mask in dotted-decimal format (e.g. 255.255.255.0) in the Prefix field. The calculator converts it to a prefix length automatically.
What are /31 and /32 subnets?
/32 is a host route (single IP, no broadcast). /31 is a point-to-point link (2 addresses, both usable per RFC 3021).
Is my data uploaded?
No. All calculation runs in your browser.
Related Tools
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from text.
Checksum Calculator
Calculate CRC-32, Adler-32, MD5, SHA-1, SHA-256, SHA-384, and SHA-512 checksums from text, hex, or Base64 input.
Bitwise Calculator
Calculate all bitwise operations — AND, OR, XOR, NAND, NOR, XNOR — with decimal, binary, hex, and octal input and output.
Number Base Converter
Convert numbers between binary, decimal, hexadecimal, octal, and any custom base — with bit grouping, signed integers, and step-by-step explanation.
JavaScript Tester
Run and test JavaScript code directly in your browser — see console.log output, errors, and execution time instantly.
Integer Range Generator
Generate a sequence of integers from a start to end value with a custom step, prefix, suffix, and separator — copy or use in scripts.

