Give the prefix only once
Keep the address and prefix on one line. A dotted mask such as 255.255.255.0 rewrites that prefix instead of leaving a second value beside it.
- A bare address never silently becomes a /24, /64 or classful network.
IP & Subnet Tools
Enter an IP with a CIDR prefix, or supply a separate prefix or IPv4 netmask. Compare the complete range with the selected host convention.
A dotted mask rewrites the prefix. 255.255.255.0 becomes /24.
192.168.1.10 belongs to 192.168.1.0/24.
Network / first address
192.168.1.0
Broadcast address
192.168.1.255
Usable range
192.168.1.1 – 192.168.1.254
Subnet mask
255.255.255.0
Inverse / wildcard mask
0.0.0.255
Addresses
256 · hosts 254
Binary
Network bits · Host bits
All calculations stay in this browser; input addresses are not queried or uploaded.
192.168.1.0/24 · 256 total addresses
Address family: IPv4 · Network bits / prefix /24 · Host bits 8
Conventional IPv4: exclude the network and directed broadcast for prefixes /0–/30. This is an arithmetic host count, not an availability check.
The subnet calculator helps you turn an interface address into the network it belongs to. An address ending in .130 can identify a host while the corresponding /26 network begins at .128.
When reviewing a route or access list, compare all covered addresses with the host range before copying the result. A number of addresses is not a count of online devices.
Keep the network boundary and the address-counting convention visible.
The subnet calculator preserves the address you entered and derives the containing block. For 192.168.1.130/26, the result begins at .128 and ends at .191; it does not start the range at .130.
An ordinary eight-address IPv4 subnet reserves its first and last addresses. A /31 point-to-point link instead uses both endpoints. The result states which convention produced the displayed count.
Keep the address and prefix on one line. A dotted mask such as 255.255.255.0 rewrites that prefix instead of leaving a second value beside it.
Keep conventional hosts for the usual IPv4 host range. Choose all addresses when you need the full set covered by an access rule; IPv6 always uses full-range semantics.
Moving the prefix or writing a mask updates the network and the usable range immediately. Examples and clear write at once, and undo restores the address, mask and counting mode.
The CIDR calculator accepts IPv4 prefixes /0–/32 and IPv6 prefixes /0–/128. Compressed IPv6 and embedded IPv4 tails are supported; an IPv4-mapped IPv6 address stays in the IPv6 address space.
Use the subnet mask calculator with 255.255.255.192 to obtain /26, or start with /26 to inspect that mask and the wildcard mask 0.0.0.63. Noncontiguous masks are rejected instead of rounded to a plausible prefix.
The IPv6 subnet calculator computes 2^(128−prefix) without enumerating addresses. Even the /0 count is exact. JSON uses strings for counts so downstream parsers do not round values above their integer precision limit.
Yes. In IPv4, /24 means the first 24 bits are the network part. The equivalent mask is 255.255.255.0. Type the mask and it rewrites the prefix, so the two forms stay the same.
There are 256 total addresses and 254 conventional IPv4 host addresses. The first and last are the network and directed broadcast. All-addresses mode instead counts all 256 for coverage; it is not a promise of 256 assignable machines.
A /31 contains exactly two addresses. For an IPv4 point-to-point link, both can be endpoints under RFC 3021. This tool displays that assumption rather than subtracting two and reporting zero hosts.
Yes, for IPv4. Enter a bare address and a contiguous mask such as 255.255.255.0 in the second field. For IPv6, use a numeric prefix length. A CIDR already containing a prefix may leave that field empty.
Yes, including compressed and embedded-IPv4 forms. The result gives the network, final address, masks and exact total. IPv6 has no broadcast address, and this tool does not turn the total into a deployment-specific usable-host count.
Still have a question?
Use the subnet calculator to review the prefix and counting convention together, then export the current result for your network notes.