Calculate subnets, expand CIDR blocks, convert IP ranges, and merge networks, for free with our CIDR Calculator. Every sum is exact, with the working shown.
Enter any CIDR notation to get a full breakdown of network details. This includes the broadcast address, subnet mask, host range and IP class.
A collection of six specialized tools covers your common networking needs. They range from expanding CIDR blocks into IP lists to merging overlapping ranges into a minimal set.
Type your CIDR notation on the settings card. You can also paste blocks in the chat box, or pick a text file in the Text File box.
AIFreeForever's own code does every sum in your browser, and the AI only explains the result.
AIFreeForever's CIDR Calculator is free, and its settings card holds six tools for subnets, IP ranges and CIDR conversions. Our own code works out each result, with the full working and a details table.
| Detail | Information |
|---|---|
| Tool | CIDR Calculator by AIFreeForever |
| What it can do | Network details from a CIDR block, subnets, IP ranges and more |
| Tools | CIDR Calculator, Subnet Calculator, IP Range and more |
| Subnet masks | All 33, from /32 to /0 |
| Results | Network, broadcast, masks and more |
| Pricing | Free |
| Detail | Information |
|---|---|
| Step 1 | Choose a tool on the settings card |
| Step 2 | Enter a CIDR block, an IP or a range |
| Step 3 | Press Calculate |
| Step 4 | Copy or download the result |
| Detail | Information |
|---|---|
| Tools | CIDR Calculator, Subnet Calculator, IP Range and three more |
| Subnet masks | All 33, from /32 to /0 |
| Results | Network, broadcast, masks, host range, IP class, binary |
| Files | .txt, .csv, .tsv and .json in; .txt out |
| Powered by | Multiple AI models: Claude Haiku 5.5, Gemini 3.5 Flash-Lite, GPT-6 Luna and more |
See your subnet details as soon as you press Calculate. Just enter a CIDR block like 10.0.0.0/8 and click Calculate to see the full breakdown of network addresses, masks, and host counts.
Scan your results easily in the result card's table, with the main answer large at the top.
Binary representations of the subnet mask and network address are also included for those working at the bit level.
Beyond basic subnet calculation, you can use three additional tools for more complex CIDR tasks. Expand any CIDR block into a complete list of individual addresses, which you can then copy or download from the numbered panel. For large blocks, the display is limited to the first 1,024 addresses to ensure a smooth experience. If you have a start and end IP range, use the converter to find the smallest possible set of CIDR blocks that cover it exactly.
Aggregate multiple CIDR blocks into the smallest possible set by merging overlapping and adjacent ranges. This is perfect for cleaning up firewall rules or route tables that have accumulated redundant entries over time. Each merged block displays its IP range and host count so you can easily verify the results.
Since firewall rules sometimes use start and end IP addresses, our IP-to-CIDR converter helps you find the optimal CIDR representation for any pair. If a single block won't cover the range, the tool generates the smallest set of blocks that covers the space exactly without including extra addresses.
Each of the six tools on the settings card does one networking job. Open a tool to see what it works out.
CIDR Calculator takes a CIDR notation like 192.168.1.0/24 and computes the network address, broadcast address and subnet mask. It also finds the wildcard mask, the first and last usable host and the total hosts. The tool then shows the usable hosts, the IP class and whether the address is private or public. It also shows the binary representation of the subnet mask and network address.
Subnet Calculator computes network details from an IP address and a subnet mask selected from a dropdown. Choose any mask from /0 to /32, and the calculator shows the same full result set as the CIDR Calculator. This includes the network, the broadcast, the host range and the binary representations.
IP Range shows the full network details for a CIDR block, including the first and last address in the range. Enter a CIDR notation and see the network address, broadcast, host range, and total number of addresses at a glance.
CIDR to IP List expands a CIDR block into every individual IP address it contains. Enter a CIDR notation like 192.168.1.0/28 and the tool lists all 16 addresses from 192.168.1.0 through 192.168.1.15. For large blocks (more than 1,024 addresses), the list holds the first 1,024, and you can download them.
IP to CIDR converts a start and end IP address range into the smallest set of CIDR blocks that cover exactly that range. Enter the first and last IP and the tool computes the optimal CIDR representation. This is useful for converting firewall rules or access control lists from ranges to CIDR notation.
CIDR Merger takes a list of CIDR blocks and merges overlapping or adjacent ranges into the minimum number of CIDR blocks. Paste multiple CIDR notations (one per line or comma-separated) and the tool produces the aggregated result. This is useful for simplifying firewall rules, route tables, and access control lists.
AIFreeForever's CIDR Calculator does every sum with its own code, in your browser, so each answer is exact.
Choose AIFreeForever's CIDR Calculator for every network answer in one place, worked out exactly and explained in plain words.
Switch between CIDR Calculator, Subnet Calculator, IP Range, IP to CIDR and more.
Our own code runs the standard IPv4 subnet maths in your browser for exact answers.
Every result card shows the working line by line, so you can check each step.
See subnet mask, wildcard mask and broadcast address. You also get usable hosts, IP class and binary values.
Copy results, download IP lists as text files and merge overlapping CIDR blocks.
A short AI note under each card explains what the numbers mean for your network.
Use AIFreeForever's CIDR Calculator for exact network details, IP ranges and merged blocks, all worked out by code with the full working shown.
CIDR (Classless Inter-Domain Routing) notation combines an IP address with a prefix length separated by a slash. For example, 192.168.1.0/24 means the first 24 bits are the network portion and the remaining 8 bits are for host addresses.
Total hosts is the full count of addresses in the block (2 raised to the power of host bits). Usable hosts subtracts 2 for the network and broadcast addresses, except for /31 and /32 prefixes.
The calculations run in your browser with AIFreeForever's own code, so every answer is worked out on your device. The request and the result's facts are sent to the AI model to write the short note under the card, like any chat message. Chats are kept only when you connect an email, for the 3, 7, 14 or 30 days you choose.
Yes, pick a .txt, .csv or .tsv file in the Text File box on the settings card, up to 1 MB. You can also use a .json file. The CIDR Calculator, IP Range and CIDR to IP List tools read the first CIDR block in the file. IP to CIDR uses the first two IPs, and the CIDR Merger works with every block.
The Subnet Calculator lets you pick the subnet mask from a dropdown list instead of typing CIDR notation. Both tools produce the same output.
All 33 possible subnet masks from 255.255.255.255 (/32) down to 0.0.0.0 (/0) are listed in the dropdown.
It shows the network details with first and last usable hosts. To see every individual IP address, use the CIDR to IP List tool instead.
The display shows the first 1,024 IP addresses. You can download the displayed list as a text file. For blocks larger than /22, only the first 1,024 addresses are shown on screen.
Yes. Press Copy under the result to copy all displayed IP addresses to your clipboard, one per line.
A single CIDR block can only represent ranges where the size is a power of two and the start address is properly aligned. If your range does not meet these criteria, multiple CIDR blocks are needed to cover it exactly without including extra addresses.
Yes. Pick a text file with two IPs (start and end) on separate lines in the Text File box. The tool will read the first two lines as the start and end addresses.
Merging combines overlapping ranges and adjacent blocks. For example, 192.168.1.0/25 and 192.168.1.128/25 merge into 192.168.1.0/24 because they cover exactly the same space as the /24 block.
Yes. AIFreeForever's CIDR Calculator is free to use. No sign-up for first 3 messages. After that, you may be asked to verify your email with a one-time code.
Choose a tool, enter a CIDR block or an IP range, and get the network details from AIFreeForever's CIDR Calculator. The AI adds a short note that explains the result.
If you work with networks and development tools regularly, these resources complement your CIDR calculations:
By the AIFreeForever Research Team Last updated
Tell us if this AI content is offensive, harmful or wrong. We review every report and use it to improve our filters.