footer-logofooter-logo

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.

Loading...

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

Bits de red Bits de hostEl divisor marca el límite entre red y host en la longitud del prefijo.

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

Loading...

Tabla de referencia CIDR

Cada longitud de prefijo IPv4 con su máscara de subred, máscara wildcard y número de hosts.

Tabla de referencia CIDR
CIDRMáscara de subredWildcardTotal de hostsHosts utilizables
/00.0.0.0255.255.255.2554,294,967,2964,294,967,294
/1128.0.0.0127.255.255.2552,147,483,6482,147,483,646
/2192.0.0.063.255.255.2551,073,741,8241,073,741,822
/3224.0.0.031.255.255.255536,870,912536,870,910
/4240.0.0.015.255.255.255268,435,456268,435,454
/5248.0.0.07.255.255.255134,217,728134,217,726
/6252.0.0.03.255.255.25567,108,86467,108,862
/7254.0.0.01.255.255.25533,554,43233,554,430
/8255.0.0.00.255.255.25516,777,21616,777,214
/9255.128.0.00.127.255.2558,388,6088,388,606
/10255.192.0.00.63.255.2554,194,3044,194,302
/11255.224.0.00.31.255.2552,097,1522,097,150
/12255.240.0.00.15.255.2551,048,5761,048,574
/13255.248.0.00.7.255.255524,288524,286
/14255.252.0.00.3.255.255262,144262,142
/15255.254.0.00.1.255.255131,072131,070
/16255.255.0.00.0.255.25565,53665,534
/17255.255.128.00.0.127.25532,76832,766
/18255.255.192.00.0.63.25516,38416,382
/19255.255.224.00.0.31.2558,1928,190
/20255.255.240.00.0.15.2554,0964,094
/21255.255.248.00.0.7.2552,0482,046
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122
/32255.255.255.2550.0.0.011

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.

Need IP space for your project?

Serverside dedicated servers come with full root access and both IPv4 and IPv6 allocations, on a network with always-on DDoS protection, room to subnet and segment however your workload needs.

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