Calculadora de Rede IP / CIDR
Insira um endereço IPv4 com um prefixo CIDR ou máscara de sub-rede para calcular o endereço de rede, broadcast, intervalo de hosts, wildcard e análise binária.
Sobre esta ferramenta
Insira um endereço IPv4 e um comprimento de prefixo CIDR (por exemplo, /24) ou uma máscara de sub-rede em decimal pontuado (por exemplo, 255.255.255.0). A ferramenta calcula instantaneamente o endereço de rede, endereço de broadcast, primeiro e último host utilizável, contagem total de hosts, contagem de hosts utilizáveis, máscara de sub-rede, máscara wildcard e classe IP (A a E). Uma tabela binária mostra todos os quatro octetos do IP, endereço de rede, máscara de sub-rede e endereço de broadcast alinhados em grupos de 8 bits para que você possa ver exatamente quais bits definem as porções de rede e host.
Como usar
- 1 Insira um endereço IPv4 no primeiro campo (por exemplo, 192.168.1.0).
- 2 Insira o comprimento do prefixo CIDR (por exemplo, 24) ou uma máscara de sub-rede em decimal pontuado (por exemplo, 255.255.255.0).
- 3 Clique em Calcular (ou pressione Enter) para ver a análise completa da rede.
- 4 Revise a tabela binária na parte inferior para visualizar os limites de bits de rede e 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.
Perguntas frequentes
Formate, valide e minifique JSON — com localização precisa de erros de sintaxe.
Divida qualquer URL em seus componentes ou monte uma URL a partir de partes — com um editor de parâmetros de consulta em tempo real.
Analise e explique expressões cron em português simples — veja os próximos 10 horários de execução agendados.