Calculadora de Red IP / CIDR
Ingrese una dirección IPv4 con un prefijo CIDR o máscara de subred para calcular la dirección de red, difusión, rango de hosts, comodín y desglose binario.
Acerca de esta herramienta
Ingrese una dirección IPv4 y ya sea una longitud de prefijo CIDR (p. ej. /24) o una máscara de subred en notación decimal con puntos (p. ej. 255.255.255.0). La herramienta calcula al instante la dirección de red, la dirección de difusión, el primer y último host utilizable, el recuento total de hosts, el recuento de hosts utilizables, la máscara de subred, la máscara comodín y la clase IP (A a E). Una tabla binaria muestra los cuatro octetos de la IP, la dirección de red, la máscara de subred y la dirección de difusión alineados en grupos de 8 bits para que pueda ver exactamente qué bits definen las porciones de red y host.
Cómo usar
- 1 Ingrese una dirección IPv4 en el primer campo (p. ej. 192.168.1.0).
- 2 Ingrese la longitud del prefijo CIDR (p. ej. 24) o una máscara de subred en notación decimal con puntos (p. ej. 255.255.255.0).
- 3 Haga clic en Calcular (o presione Enter) para ver el desglose completo de la red.
- 4 Revise la tabla binaria en la parte inferior para visualizar los límites de bits de red y host.
What a subnet calculation answers
An IPv4 address like 192.168.1.0 is only half the picture. The other half is the prefix (written as /24) or its equivalent subnet mask (255.255.255.0), which decides how many of the 32 bits identify the network and how many identify individual hosts on it. From those two inputs this tool derives everything you need to plan or troubleshoot a network: the network address, the broadcast address, the usable host range, the total and usable host counts, the wildcard mask, the address class, and a binary breakdown.
The bit math behind every result
An IPv4 address is really a single 32-bit number; 192.168.1.0 is just a readable way to write four 8-bit octets. The prefix /24 means the first 24 bits are the network portion. Internally the tool:
- Builds the subnet mask by setting the top 24 bits to 1 and the rest to 0, giving
255.255.255.0. - Computes the network address with a bitwise AND of the IP and the mask — this zeroes out the host bits.
- Computes the broadcast address by setting all host bits to 1 (an OR with the inverted mask, called the wildcard mask).
- Derives the host range as everything between network + 1 and broadcast − 1.
A worked example: 192.168.1.0/24
| Property | Value |
|---|---|
| Network address | 192.168.1.0 |
| Broadcast address | 192.168.1.255 |
| Subnet mask | 255.255.255.0 |
| Wildcard mask | 0.0.0.255 |
| First usable host | 192.168.1.1 |
| Last usable host | 192.168.1.254 |
| Total addresses | 256 |
| Usable hosts | 254 |
The host count comes from the formula 2^(32 − prefix). For a /24 that is 2^8 = 256 total addresses. Two are reserved — the network address itself and the broadcast address — leaving 254 usable for actual devices. That "minus two" rule is the single most important thing to remember when sizing a subnet.
The /31 and /32 edge cases
The minus-two rule breaks down at the extremes, and the tool handles this correctly. A /31 has only two addresses; reserving both would leave zero usable hosts, so by convention (RFC 3021) both are usable for point-to-point links between two routers. A /32 is a single address — one exact host, used for loopbacks and routing entries — so the tool reports no usable range rather than a negative number.
Why the binary view matters
The binary table colors the network bits one way and the host bits another, lined up across all four octets. This makes the boundary between network and host visible, which is the concept people most often get wrong with non-byte-aligned prefixes like /26. A /26 mask is 255.255.255.192 — the boundary falls inside the last octet, splitting it into a 2-bit network part and a 6-bit host part, yielding four subnets of 64 addresses (62 usable) each. Seeing the bits makes that far clearer than the dotted-decimal mask alone.
Use cases
- Planning a network. Decide how to carve a block into subnets that each hold enough hosts, without wasting addresses.
- Writing firewall and ACL rules. Many systems express ranges in CIDR (
10.0.0.0/8) or wildcard form (Cisco ACLs); the tool gives you both. - Troubleshooting connectivity. If two devices can't talk, confirming they share the same network and broadcast address often reveals a mismatched mask.
- Studying for certifications. CCNA and similar exams lean heavily on fast subnetting; the step-by-step values and binary view reinforce the method.
Tips and common mistakes
- The mask must be contiguous. Valid masks are an unbroken run of 1s followed by 0s. Something like
255.255.0.255is invalid, and the tool rejects it rather than producing a nonsense result. - Enter the network address, or any host in it. You can type any address in the range — the tool ANDs it with the mask to find the true network address, so
192.168.1.37/24still resolves to the192.168.1.0network. - Class is informational only. The old A/B/C classes were replaced by CIDR decades ago; the tool reports the class for reference, but the prefix you supply, not the class, governs the actual subnet.
- Don't forget the reserved addresses when counting capacity. A /24 holds 254 devices, not 256 — plan for the two-address overhead on every standard subnet.
Privacy
Every calculation is plain integer bit-math done in your browser. The addresses you enter are never transmitted or logged, and the tool runs entirely offline once the page has loaded.
Preguntas frecuentes
Formatea, valida y minifica JSON — con señalización exacta de errores de sintaxis.
Descomponga cualquier URL en sus componentes o ensamble una URL a partir de partes — con un editor de parámetros de consulta en vivo.
Analice y explique expresiones cron en español simple — vea los próximos 10 tiempos de ejecución programados.