Esta página ainda não foi traduzida para o português, por isso aparece em inglês.

Subnet Calculator — IPv4 & IPv6 CIDR

Enter an IP with a prefix (10.0.0.0/22) or a subnet mask (192.168.1.10 255.255.255.0) to get the network, broadcast, usable hosts and binary breakdown — and split it into subnets.

Atualizado em

Seus dados nunca saem do seu computador. Todo o processamento acontece localmente no navegador.

Como usar: Subnet Calculator

  1. Type an address with a prefix (/24) or with a dotted subnet mask.
  2. Read the network, broadcast and usable host range.
  3. Enter a longer prefix under Split into subnets to list every subnet of that size.

How subnetting works

An IPv4 address is 32 bits. The prefix length (the number after the slash in CIDR notation) says how many of those bits identify the network; the rest identify hosts. A /24 leaves 8 host bits: 256 addresses, of which the first is the network address and the last the broadcast address, leaving 254 usable hosts.

CIDR cheat sheet

PrefixSubnet maskAddressesUsable hosts
/8255.0.0.016,777,21616,777,214
/16255.255.0.065,53665,534
/22255.255.252.01,0241,022
/24255.255.255.0256254
/26255.255.255.1926462
/28255.255.255.2401614
/30255.255.255.25242
/31255.255.255.25422 (point-to-point, RFC 3021)
/32255.255.255.25511 (single host)

Private and special ranges

  • 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 — private networks (RFC 1918), not routed on the internet.
  • 100.64.0.0/10 — carrier-grade NAT shared space.
  • 169.254.0.0/16 — link-local, used when DHCP fails.
  • 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 — reserved for documentation.

Wildcard masks and cloud networks

A wildcard mask is the inverse of the subnet mask (0.0.0.255 for a /24) and is used in Cisco ACLs and OSPF. When planning AWS VPCs or Azure VNets, remember that the cloud reserves extra addresses: AWS keeps five per subnet (network, router, DNS, future use and broadcast).

IPv6

IPv6 addresses are 128 bits. Networks almost always use a /64 per LAN; ISPs hand out /48 or /56 blocks to customers, giving 65,536 or 256 LANs. Enter an IPv6 CIDR above to see the expanded form and range. Look up which addresses a name resolves to with the DNS lookup, or find your own public IP with What is my IP.

Private IP address ranges

These ranges are reserved for private networks (RFC 1918) and other special uses, so they’re never routed on the public internet. Paste any of them into the calculator above to see their full host range.

RangeCIDRAddressesUsed for
10.0.0.0 – 10.255.255.25510.0.0.0/816,777,216Private networks (RFC 1918) — large companies, cloud VPCs
172.16.0.0 – 172.31.255.255172.16.0.0/121,048,576Private networks (RFC 1918) — Docker’s default bridge uses 172.17.0.0/16
192.168.0.0 – 192.168.255.255192.168.0.0/1665,536Private networks (RFC 1918) — home and office routers
100.64.0.0 – 100.127.255.255100.64.0.0/104,194,304Carrier-grade NAT (RFC 6598), also Tailscale
169.254.0.0 – 169.254.255.255169.254.0.0/1665,536Link-local (automatic addresses when DHCP fails)
127.0.0.0 – 127.255.255.255127.0.0.0/816,777,216Loopback (localhost)
fc00:: – fdff:ffff:…fc00::/7—IPv6 unique local addresses (the IPv6 private range)
fe80:: – febf:ffff:…fe80::/10—IPv6 link-local

To see the public address your network uses on the internet, open What Is My IP.

Também pesquisado como: cidr calculator, ip subnet calculator, subnet mask calculator, ipv4 calculator, ipv6 subnet calculator, network calculator, wildcard mask, private ip ranges.

Ferramentas que combinam com: Subnet Calculator

  • WireGuard Config Generator — Set up a WireGuard VPN in minutes.
  • Verificador de Portas — Teste se um servidor aceita conexões em portas específicas — web (80/443), e-mail (25/587/993), SSH, bancos de dados ou área de trabalho remota — e veja quais estão abertas, fechadas ou sendo filtradas por um firewall.
  • Teste de ping — Mede a velocidade de resposta de um servidor: digita um host e vê a latência de ida e volta, o jitter e as tentativas fracassadas ao longo de vários pings — medidos a partir do nosso servidor com um ping TCP para a porta que você escolher.
  • Number Base Converter — Type a number in any base and see it in all the others instantly.

Perguntas frequentes

What are the private IP address ranges?
The RFC 1918 private ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Carrier-grade NAT uses 100.64.0.0/10, and the IPv6 equivalent is fc00::/7. The full table is above.
How many hosts are in a /24?
256 addresses, 254 usable: the first is the network address and the last is the broadcast address.
What is the difference between a subnet mask and CIDR?
They express the same thing. 255.255.255.0 has 24 one-bits, so it is written /24 in CIDR notation.
Why does /31 have 2 usable hosts?
RFC 3021 allows /31 networks for point-to-point links, where no network or broadcast address is needed.
What does the wildcard mask mean?
It is the inverted subnet mask, used by Cisco ACLs: 0 bits must match, 1 bits are ignored.
Posso instalar o Subnet Calculator como um aplicativo da web e usá-lo offline?
Sim. O Subnet Calculator é um aplicativo da web instalável (PWA) — instalado a partir do seu navegador, não baixado de uma loja de aplicativos. Clique em “Instalar aplicativo” na parte superior desta página no Chrome ou no Edge (Windows, macOS, Linux, ChromeOS) ou, no Android, use “Compartilhar” → “Adicionar à tela inicial” no iPhone e no iPad, ou “Arquivo” → “Adicionar ao Dock” no Safari 17+ em um Mac. Em seguida, ela se abre em uma janela própria com seu próprio ícone e, como é executada inteiramente no seu navegador, continua funcionando offline. O Firefox no desktop não permite a instalação de aplicativos da web. Como funciona a instalação.

Ferramentas relacionadas