IPv4 Subnet Calculator
Enter an IPv4 address and prefix to get the network and broadcast addresses, usable host range, subnet and wildcard masks, and a binary view, then split the block into smaller subnets.
This calculator turns any IPv4 address and CIDR prefix into the numbers you actually need to configure a network. Type an address such as 192.168.10.0/24 and it works out the network address, broadcast address, the first and last usable host, the total and usable host counts, and both the subnet mask and its wildcard inverse.
It also shows the address in binary with a divider marking where the network bits end and the host bits begin, and it can split a block into equal smaller subnets, handy when you are carving a larger allocation into per-rack, per-VLAN, or per-service ranges.
- Dirección IP
- 192.168.1.1
- Dirección de red
- 192.168.1.0
- Dirección de broadcast
- 192.168.1.255
- Rango de hosts utilizable
- 192.168.1.1 – 192.168.1.254
- Total de hosts
- 256
- Hosts utilizables
- 254
- Máscara de subred
- 255.255.255.0
- Máscara wildcard
- 0.0.0.255
- Notación CIDR
- 192.168.1.0/24
- Tipo de IP
- Privada (RFC 1918)
ID binario
Detalles adicionales
- Clase de IP
- C
- Corta
- 192.168.1.1/24
- Máscara de subred binaria
- 11111111.11111111.11111111.00000000
- ID entero
- 3,232,235,777
- ID hexadecimal
- 0xC0A80101
- in-addr.arpa
- 1.1.168.192.in-addr.arpa
- IPv6 mapeada a IPv4
- ::ffff:192.168.1.1
- Prefijo 6to4
- 2002:c0a8:0101::/48
Subdividir esta red
Tabla de referencia CIDR
Cada longitud de prefijo IPv4 con su máscara de subred, máscara wildcard y número de hosts.
| CIDR | Máscara de subred | Wildcard | Total de hosts | Hosts utilizables |
|---|---|---|---|---|
| /0 | 0.0.0.0 | 255.255.255.255 | 4,294,967,296 | 4,294,967,294 |
| /1 | 128.0.0.0 | 127.255.255.255 | 2,147,483,648 | 2,147,483,646 |
| /2 | 192.0.0.0 | 63.255.255.255 | 1,073,741,824 | 1,073,741,822 |
| /3 | 224.0.0.0 | 31.255.255.255 | 536,870,912 | 536,870,910 |
| /4 | 240.0.0.0 | 15.255.255.255 | 268,435,456 | 268,435,454 |
| /5 | 248.0.0.0 | 7.255.255.255 | 134,217,728 | 134,217,726 |
| /6 | 252.0.0.0 | 3.255.255.255 | 67,108,864 | 67,108,862 |
| /7 | 254.0.0.0 | 1.255.255.255 | 33,554,432 | 33,554,430 |
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
What is subnetting?
Subnetting is the practice of dividing one IP network into several smaller networks. Instead of putting every device on a single flat range, you borrow bits from the host portion of the address to create additional network segments, each with its own address space.
Teams subnet for a few practical reasons:
- Routing: routers forward between subnets, so segmentation keeps broadcast traffic local and makes routing tables predictable.
- Security: putting databases, management interfaces, and public-facing services on separate subnets lets you enforce firewall policy between them.
- Efficient addressing: right-sizing each subnet to the number of hosts it needs avoids wasting large blocks on small segments.
Understanding CIDR notation
CIDR (Classless Inter-Domain Routing) notation writes a network as an address followed by a slash and a number, such as 10.0.0.0/24. The number is the prefix length: how many leading bits identify the network. Everything after those bits identifies hosts within it.
Because an IPv4 address is 32 bits, the smaller the prefix number, the larger the block. A /24 leaves 8 host bits and covers 256 addresses; a /27 leaves 5 host bits and covers 32; a /16 leaves 16 host bits and covers 65,536. Each step of one in the prefix halves or doubles the block size.
Subnet mask vs. wildcard mask
A subnet mask marks the network bits with 1s and the host bits with 0s. For a /24 that is 255.255.255.0. The first three octets are network, the last is host.
A wildcard mask is the bit-for-bit inverse: 0s where the mask has 1s, 1s where it has 0s. The /24 wildcard is 0.0.0.255. Wildcard masks show up in Cisco-style ACLs and in OSPF network statements, where a 0 bit means "must match" and a 1 bit means "don't care", so the calculator surfaces both so you can copy whichever your platform expects.
Reading the binary view
The binary view expands the address into its 32 bits, grouped into the four octets, with a divider placed at the prefix boundary. Everything to the left of the divider is the network portion and is fixed for every host in the subnet; everything to the right is the host portion and varies from address to address.
Reading it left to right makes the structure obvious: the all-zeros host portion is the network address, the all-ones host portion is the broadcast address, and every combination in between is a usable host. It is the clearest way to see why a /26, for example, splits a /24 into four blocks at the third-from-last host bit.
Preguntas frecuentes
A /24 is a network with 24 network bits and 8 host bits, giving 256 total addresses. Its subnet mask is 255.255.255.0. Of those 256 addresses, 254 are usable for hosts because the first (network) and last (broadcast) are reserved. It is the most common size for a single LAN or VLAN.
Más herramientas
Calculadora de subredes IPv6
Expande, comprime y analiza cualquier prefijo IPv6: rango de direcciones, total de direcciones, número de /64, DNS inverso y división de prefijos.
Abrir herramientaBúsqueda de direcciones MAC
Identifica al fabricante detrás de cualquier dirección MAC o prefijo OUI, con detalles del bloque, detección de MAC aleatorias, conversiones de formato y búsqueda masiva.
Abrir herramientaLooking Glass
Ejecuta búsquedas de rutas BGP en vivo, pings y traceroutes desde nuestra propia red: comprueba cómo se enruta realmente un prefijo por Internet.
Abrir herramientaCalculadora de ancho de banda
Convierte la velocidad del puerto en transferencia de datos mensual y a la inversa (Gbps y Mbps a TB por mes, con la utilización) y compara la facturación por percentil 95, por volumen y de puerto plano.
Abrir herramientaConversor de CIDR a rango de IP
Expande un bloque CIDR en su primera y última dirección, o agrupa un rango de IP inicio-fin arbitrario en el conjunto más pequeño de bloques CIDR: en ambos sentidos, al instante.
Abrir herramienta