GPT 5 Available DeepSeek V4 Available Kimi K2.6 Available GPT 5 Mini Available DeepSeek V3.2 Available GPT 5.4 Available GPT 5.4 mini Available Grok 4 Available Llama 3.1 Available Phi 4 Available GLM 5.2 by Z.ai Available Claude Haiku 5.5 Available
Free AI chat models, no sign upSee all chat models →
Buy me a coffee
GPT 5 Available DeepSeek V4 Available Kimi K2.6 Available GPT 5 Mini Available DeepSeek V3.2 Available GPT 5.4 Available GPT 5.4 mini Available Grok 4 Available Llama 3.1 Available Phi 4 Available GLM 5.2 by Z.ai Available Claude Haiku 5.5 Available
Free AI chat models, no sign upSee all chat models →
Free CIDR and subnet calculator

CIDR Calculator

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.

Choose a tool and CIDR block to calculate itChoose a tool
Tool
Subnet Mask
Quick tools you can choose from

Free Online CIDR Calculator

Free CIDR Calculator on AIFreeForever: the settings card set to CIDR Calculator with 192.168.1.0/24, and the result with the network, usable hosts and subnet mask

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.

How to use the CIDR calculator

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.

CIDR Calculator

Computes network address, broadcast and subnet mask from any CIDR notation. It also gives the wildcard mask, host range and IP class, with binary representation.

Subnet Calculator

Calculates the same network details from an IP address and a subnet mask selected from a dropdown with all 33 possible masks.

IP Range

Shows the complete address range for a CIDR block including first and last usable hosts and total address count.

CIDR to IP List

Expands a CIDR block into every individual IP address it contains, displayed in a numbered list with copy and download support.

IP to CIDR

Converts a start and end IP range into the smallest set of CIDR blocks that cover exactly that range with no overlap.

CIDR Merger

Merges overlapping and adjacent CIDR blocks into the minimum number of aggregated blocks for cleaner firewall rules and route tables.

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.

CIDR CalculatorMade by AIFreeForever
Calculate a CIDR block free
DetailInformation
ToolCIDR Calculator by AIFreeForever
What it can doNetwork details from a CIDR block, subnets, IP ranges and more
ToolsCIDR Calculator, Subnet Calculator, IP Range and more
Subnet masksAll 33, from /32 to /0
ResultsNetwork, broadcast, masks and more
PricingFree

Online CIDR Calculator with Subnet Details and IP Expansion

Subnet details from the free CIDR Calculator: 172.16.5.9 with the mask 255.255.240.0 is the network 172.16.0.0/20 with 4,094 usable hosts

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.

Subnet details and binary values

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.

Upload CIDR and IP Files

AIFreeForever's CIDR Calculator takes your addresses in three ways.
  • Paste CIDR blocks into the chat box, one per line.
  • You can also type them into the boxes on the settings card above the chat box, or pick a file in the Text File box.
  • The tool accepts .txt, .csv, .tsv and .json files up to 1 MB.
  • Each file is read in your browser, and its blocks fill the tool.
  • CIDR Merger takes every block, while the other tools use the first block or the first two IP addresses.

Subnet Mask Dropdown for Quick Selection

Quickly select from all 33 possible subnet masks, ranging from /0 to /32, using the dedicated dropdown.
  • Just pick a mask and enter an IP address to see the resulting network details.
  • This approach is often faster when you know the subnet mask but not the prefix length.
  • It also delivers the same comprehensive results as the main calculator.
The CIDR and Subnet Cheat Sheet, 2026Free PDF with a prefix and mask table, the private IPv4 ranges and the steps to work out a network by hand. Download free PDF

Expand, Convert, and Merge CIDR Blocks

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.

Merge Overlapping CIDR Ranges

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.

Convert IP Ranges to CIDR Notation

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.

CIDR Merger in the free CIDR Calculator: four blocks merged into 10.0.0.0/22 and 192.168.0.0/24, each with its IP range and address count

The Six Tools in the CIDR Calculator

Each of the six tools on the settings card does one networking job. Open a tool to see what it works out.

CIDR Calculator

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

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

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

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

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

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.

Your Network Data Stays Private in Your Browser

AIFreeForever's CIDR Calculator does every sum with its own code, in your browser, so each answer is exact.

  • The request the card writes and the result's facts go to the AI model, like any chat message. This way it can write the short note under the card.
  • Chats are kept only when you connect an email, for the 3, 7, 14 or 30 days you choose.
  • For a sensitive internal IP scheme, use example addresses or leave out the details you prefer to keep private.

Why Choose AIFreeForever's CIDR Calculator?

Choose AIFreeForever's CIDR Calculator for every network answer in one place, worked out exactly and explained in plain words.

Six Tools in One

Switch between CIDR Calculator, Subnet Calculator, IP Range, IP to CIDR and more.

Exact Sums

Our own code runs the standard IPv4 subnet maths in your browser for exact answers.

The Working Shown

Every result card shows the working line by line, so you can check each step.

Full Detail Table

See subnet mask, wildcard mask and broadcast address. You also get usable hosts, IP class and binary values.

Downloads for Real Work

Copy results, download IP lists as text files and merge overlapping CIDR blocks.

An AI Note

A short AI note under each card explains what the numbers mean for your network.

Why Use the CIDR Calculator?

Use AIFreeForever's CIDR Calculator for exact network details, IP ranges and merged blocks, all worked out by code with the full working shown.

  • Pills list every IP, show the IP range or merge blocks from the last result.
  • The tool runs on several AI models you can switch between and compare, such as Claude Haiku 5.5, Gemini 3.5 Flash-Lite, GPT-6 Luna and more.
  • 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.

CIDR Calculator FAQs

Calculate Your Network

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.

Related Networking and Developer Tools

If you work with networks and development tools regularly, these resources complement your CIDR calculations:

By the AIFreeForever Research Team Last updated