Subnet Calculator (CIDR, IPv4 & IPv6)
Enter an address with a prefix (192.168.1.0/24) or a subnet mask and see everything about the network: network address, subnet and wildcard mask, first and last usable address, broadcast address, number of usable hosts, address class and type. Check whether another address falls inside the block. A second mode converts any start and end address into the shortest list of CIDR blocks. IPv4 and IPv6 are both supported, and everything runs in your browser.
Try:
How to use it
- Type an address with a prefix length, for example 192.168.1.0/24, or an address and a mask, for example 10.0.0.5 255.255.0.0.
- Read the network address, masks, first and last usable address, broadcast address and host counts.
- To test an address, type it into “Is this address inside it?” and read the answer.
- To turn a range into CIDR, open IP range to CIDR, enter the first and last address, and copy the list of blocks.
Frequently asked questions
What does /24 mean?
It is the prefix length: the number of bits at the start of the address that identify the network. A /24 fixes the first 24 of 32 bits, leaving 8 bits for hosts, so the block holds 256 addresses (254 usable). A larger number means a smaller network.
Why are two addresses not usable?
In a normal IPv4 subnet the first address is the network address and the last is the broadcast address, so neither can be given to a host. A /24 therefore has 254 usable addresses. A /31 (point-to-point link) and a /32 (one address) are special cases that this calculator handles.
What is a wildcard mask?
It is the subnet mask turned upside down: the bits that are free to vary. 255.255.255.0 has the wildcard 0.0.0.255. Cisco access lists and some routing configurations use it.
How many hosts does a /26 or /28 have?
A /26 holds 64 addresses (62 usable) and a /28 holds 16 (14 usable). Type any prefix above to see the exact figures.
How do I convert an IP range to CIDR?
Switch to IP range to CIDR and enter the first and last address. Because a CIDR block must start at a matching boundary, a range often needs several blocks. The tool gives the fewest blocks that cover exactly that range.
What is the standard IPv6 subnet size?
A /64. Each network (LAN) gets a /64, and providers usually give a home or business a /48 to /56, which can be split into many /64 networks.
Related tools
IP Address Converter & Validator
Check an IPv4 or IPv6 address and convert it to a number, hex, binary, the short or full IPv6 form and its reverse DNS name.
What Is My IP Address?
See your public IP address (IPv4 or IPv6), country and hostname right away, copy it, and check who owns it or whether it is blacklisted.
DNS Checker (DNS Records & Propagation)
Look up a domain's DNS records and check how a DNS change has spread across more than 20 public resolvers worldwide.
Chmod Calculator (Unix File Permissions)
Convert Unix file permissions between a checkbox grid, octal (755) and symbolic (rwxr-xr-x), and get the chmod command.
These tools run entirely in your browser and are provided free, without warranty. Check important results before using them in production.