$cidr-range 10.0.1.0/24 --list

CIDR to IP Range Calculator

CIDR to IP Range Calculator. Enter a CIDR block and click Calculate Range in this CIDR to IP range calculator to get the first IP, last IP and address count.

Input

Quick Examples:

IP Range Details

Complete IP Range
-
First IP (Network)
-
Last IP (Broadcast)
-
Total Addresses
-
Usable Hosts
-
First Usable
-
Last Usable
-

IP Address List

#IP AddressType

Enter any CIDR block to instantly convert it into a complete IP address range showing the first IP, last IP, and total number of addresses. Browse the full list of IPs in your subnet range, export results, and verify your CIDR to IP range conversions for firewall rules, access control lists, and network allocation planning.

A CIDR to IP Range Calculator converts any CIDR notation or subnet mask into the exact block of usable IP addresses it represents — instantly. Instead of manually converting slash notation to a network mask and counting bits by hand, you get the network address, broadcast address, and full usable host range the moment you enter an address. Whether you're carving up a /24 in a cloud VPC or double-checking a /28 before deploying a firewall rule, this network range calculator turns a manual process into a two-second lookup, and it works for both IPv4 and IPv6 blocks.

What Is a CIDR to IP Range Calculator, and How Does CIDR Notation Work?

Classless Inter-Domain Routing (CIDR) is the addressing scheme that replaced the old class-based system of ip addressing across the internet protocol address space. A CIDR block is written as an IP address followed by a slash and a number — the routing prefix — that tells you how many of the address's leading bits are fixed as the network prefix and how many remain free to identify individual hosts. Everything before the slash is the network portion; everything after is the host portion, sometimes called the host identifier or rest field. Each device on a network interface pulls its address from within that boundary, and routers use that same prefix to decide where ip packets should be forwarded next across a tcp/ip network. Once you understand that split, every ip subnet you carve out this way follows the exact same rules, no matter how large or small the block is.

You'll see this same tool called by different names depending on the site — an ip subnet calculator, a subnet mask calculator, a network calculator, a cidr converter, or simply a subnetting tool. Whatever the label, it performs the same underlying slash-to-range conversion.

How This IP Subnet Calculator Converts CIDR Notation Into an IP Range

Using this CIDR to IP Range Calculator takes two inputs and returns everything you need to configure a subnet in seconds.

Enter the CIDR notation, subnet mask, or network class

You can start from whichever format you already have on hand — the calculator reads the prefix length either way and works out the binary subnet mask behind it automatically. Three common starting points:

  • CIDR notation (e.g., 192.0.2.0/24)
  • A subnet mask (e.g., 255.255.255.0)
  • A preferred class (Class A, B, or C) paired with the subnet you want

Class A, Class B, and Class C cover the vast majority of everyday allocations, while Class D is reserved for multicasting and Class E remains set aside for future use.

Read the network address, broadcast address, and host range

The result gives you a complete ip address range, not just a single address:

  • Network Address — the first address in the block, shared by every host in that ip subnet.
  • Broadcast — the last address, used to send data to every host on the subnet at once.
  • Usable Hosts — the total number of addresses left over once the network and broadcast address are excluded, giving you the full usable host range.
  • Wildcard Mask — the inverse of the subnet mask, used by access control lists to match a range of hosts.

The Subnet Mask Formula Behind Every CIDR Calculation

Under the hood, this calculator is just doing bitwise arithmetic against the octets of your address. If A is the IP address, M is the subnet mask, and W is the wildcard mask, the network address and broadcast address come from two bitwise operations:

$$ \text{Network Address} = A \; \text{AND} \; M $$ $$ \text{Broadcast Address} = \text{Network Address} \; \text{OR} \; W $$

Every subnet mask is really a bit mask — a run of 1s followed by a run of 0s, laid out in binary format and then expressed in the familiar dot-decimal notation (255.255.255.0) so you don't have to read raw mask bits by hand. A /24, for instance, sets the first three octets to 255 and leaves the last one open, which is why 192.0.2.0/24 and 255.255.255.0 describe exactly the same network mask.

Wildcard Masks, Gateways, and Access Control Lists

The wildcard mask matters most once you start writing routing protocols configs like OSPF or access control lists — both use it to match a whole block of addresses in one rule instead of listing every host individually. It's also worth remembering that a subnet's gateway (the router that forwards traffic leaving the subnet) sits inside the usable host range, not at the network or broadcast address.

CIDR Prefix Length Reference Table for IPv4 Subnetting

This is the same prefix-to-mask relationship the calculator applies automatically, laid out for the ranges you'll hit most often:

Prefix SizeSubnet MaskUsable HostsNetwork Class
/8255.0.0.016,777,214Class A
/16255.255.0.065,534Class B
/22255.255.252.01,022—
/23255.255.254.0510—
/24255.255.255.0254Class C
/28255.255.255.24014—
/30255.255.255.2522—

This reference table mirrors the exact ranges the calculator returns automatically, from the broadest allocation down to a near-single-host /30.

IPv4 vs IPv6 Addressing in an IPv4 Subnet Calculator

An IPv4 address is 32 bits, written as four decimal octets; an IPv6 address is 128 bits, written in hexadecimal format as eight groups separated by colons. This calculator handles both: for an ipv4 subnet calculator lookup you get a network mask, network address, and broadcast address exactly like the table above; for an IPv6 address you get a prefix length instead of a subnet mask, since IPv6 has no broadcast concept and drops the class system entirely.

Every Field This Subnet Calculator Returns

  • IP Class — where the address falls among the standard address classes A through E; this doesn't apply to IPv6, since classless addressing is the default.
  • IP Type — whether the address is public (routable on the internet) or private (reserved for local networks).
  • Binary ID — the address written entirely in 0s and 1s.
  • Integer ID — the same address as a single decimal integer.
  • Hex ID — the address in hexadecimal format, the native representation for these addresses.
  • Full IP Address — the unabbreviated form, useful since addresses are usually shortened by omitting leading zeros.
  • Total IP Addresses — how many addresses the block contains, from a single host up to an entire /8.
  • Usable Host IP Range — the first and last assignable address, excluding the network and broadcast address.
  • Number of Usable Hosts — the usable host IP range minus those two reserved addresses.
  • In-addr.arpa — the reverse DNS name built from the address in reverse order, used to look up a hostname from an IP.
  • IPv4-Mapped Address — an IPv4 address represented inside the IPv6 space, prefixed with 80 zero bits and 16 set bits.
  • 6to4 Prefix — a transition address beginning with 2002, used to route IPv4 traffic across an IPv6 network during migration.

Why Network Administrators Rely on Subnetting and CIDR

Subnetting is standard practice in networking and network administration alike: instead of running one enormous flat network, a network breakout splits a large block into smaller subnetworks, each isolated from the others. That isolation does double duty. It contains broadcast traffic and improves network speeds by cutting down how far it has to travel, and it gives a network engineer a cybersecurity boundary — a compromised device on one subnetwork can't reach the rest of the network without passing through a gateway first. Even a simple ip calculator check before provisioning a new block can prevent costly address overlap.

Real-World Use Cases: Segmentation, Security, and Route Summarization

A cloud team uses this pattern to keep application servers, databases, and management interfaces on separate subnets so a breach in one tier doesn't automatically expose the others. Network operators use the reverse move — combining many smaller allocations back into one larger route via supernets, aggregating adjacent network number ranges under a single shorter prefix — so one routing announcement can summarize thousands of individual subnetworks instead of flooding the global route table, no matter how much traffic exchange happens between them. Either direction, the math is the same CIDR-to-range conversion this calculator does automatically.

Related Network Tools

Explore these related tools for subnet calculation and IP address management.

Additional networking calculators for IP address planning and network analysis.

About the author

Subash Geetha Krishnan

Tech Lead for Nimble Storage at HPE Services Storage Support

Subash Geetha Krishnan is a Tech Lead for Nimble Storage at HPE Services Storage Support, based in Singapore, with over 15 years of experience in enterprise storage solutions. He created SubnetCalculate so that accurate networking calculations are free and easy for everyone.

  • Content author: Subash Geetha Krishnan
  • Fact checked by: Subash Geetha Krishnan. Each calculator is built on industry-standard algorithms and tested against known results before it goes live.
  • Published Updated

Comments & Feedback

Share your experience or ask questions about this tool