Cette page n’est pas encore traduite en français : elle s’affiche en anglais.

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.

Mis à jour le

Vos données ne quittent jamais votre ordinateur. Tout le traitement se fait localement dans votre navigateur.

Comment utiliser : 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.

Aussi recherché comme : cidr calculator, ip subnet calculator, subnet mask calculator, ipv4 calculator, ipv6 subnet calculator, network calculator, wildcard mask, private ip ranges.

Outils complémentaires : Subnet Calculator

  • WireGuard Config Generator — Set up a WireGuard VPN in minutes.
  • Vérificateur de ports — Vérifiez si un serveur accepte les connexions sur des ports spécifiques — Web (80/443), messagerie (25/587/993), SSH, bases de données ou bureau à distance — et identifiez ceux qui sont ouverts, fermés ou filtrés par un pare-feu.
  • Test de ping — Mesurez la vitesse de réponse d'un serveur : saisissez un nom d'hôte pour obtenir la latence aller-retour, la gigue et le nombre de tentatives infructueuses sur plusieurs ping — mesurés depuis notre serveur à l'aide d'un ping TCP vers le port de votre choix.
  • Number Base Converter — Type a number in any base and see it in all the others instantly.

Questions fréquentes

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.
Puis-je installer Subnet Calculator en tant qu’application web et l’utiliser hors ligne ?
Oui. Subnet Calculator est une application web installable (PWA) : elle s’installe depuis votre navigateur, sans passer par une boutique d’applications. Cliquez sur « Installer l’application » en haut de cette page dans Chrome ou Edge (Windows, macOS, Linux, ChromeOS) ; sur Android, utilisez « Partager » → « Ajouter à l’écran d’accueil » sur iPhone et iPad ; ou « Fichier » → « Ajouter au Dock » dans Safari 17+ sur Mac. L’application s’ouvre alors dans sa propre fenêtre avec sa propre icône, et comme elle s’exécute entièrement dans votre navigateur, elle continue de fonctionner hors ligne. Firefox sur ordinateur de bureau ne permet pas d’installer d’applications web. Comment fonctionne l’installation.

Outils similaires