Subnet calculator
IPv4 and IPv6: network, range, host count, masks and reverse-DNS pointers.
Runs entirely in your browser. Nothing you enter here is sent to the server.
IPv4 or IPv6, detected automatically. Without a prefix it assumes
/32 or /128. A dotted netmask works too:
10.0.0.1/255.255.0.0.
Reading the output
Pure arithmetic, done in this page. Nothing is looked up and nothing is sent anywhere — a subnet calculator that phones home is telling someone about your network layout.
- Prefix length
- How many leading bits are the network.
/24means the first 24 bits identify the network and the remaining 8 identify hosts. - Network address
- The address with every host bit set to zero. Names the subnet.
- Broadcast
- Every host bit set to one. IPv4 only — IPv6 has no broadcast, it uses multicast instead.
- Usable hosts
- For IPv4, the range minus the network and broadcast addresses,
which is why a
/24holds 254 hosts and not 256. A/31is the exception: it is two usable addresses, for point-to-point links. A/32is one single host. - Wildcard mask
- The netmask inverted. What Cisco ACLs and OSPF want.
- Reverse DNS
- The name a PTR lookup for this address uses.
IPv6 is not IPv4 with more digits
Both the compressed and the fully expanded form are shown. Compression follows RFC 5952:
lowercase, leading zeros dropped, and :: replacing the single longest run of
zero groups — the leftmost one if two runs tie. Tools that compress differently produce
strings that look wrong but mean the same address.
Host counts are exact, computed with big integers, so a /64 really does print
all twenty digits. A /64 is the standard size for one network segment, and a
/56 or /48 is what an ISP hands to a site.
Scope is reported too: global, unique-local (fc00::/7, the rough equivalent of
RFC 1918), link-local (fe80::/10, which never routes), loopback, multicast or
an IPv4-mapped address.
Other tools
- Code scanner — Read QR codes and barcodes with your camera or from an image. Every format ZXing knows.
- Code generator — Make a QR code, Data Matrix, Aztec, PDF417 or a linear barcode and download it.
- Link inspector — See where a link really goes before you open or shorten it: the real host, lookalike letters, hidden redirects and tracking parameters.
- Base converter — Encode and decode between text and Base2 through Base85, or convert integers between any two bases.
- Hash generator — MD5, SHA family, CRC32 and MySQL5 over text or a file. The file is read in your browser.
- JWT decoder — Read a JSON Web Token's header and claims, with every timestamp as a date. Decoded right here; the token is never sent or stored.
- SSH key fingerprint — SHA256 and MD5 fingerprints, key type and size, and SSHFP records for a public key. Private keys are refused unread.
- Password generator — Random passwords from a CSPRNG, with the character classes you pick.
- TOTP generator — Turn a TOTP secret or otpauth:// link into the current code. The secret stays on your device.
- Timestamp converter — Unix time to a calendar date and back, in every format at once. Live clock included.
- Image resizer — Resize and convert an image without it ever leaving your browser. Re-encoding drops EXIF and GPS.
- IP info — Your public IPv4 and IPv6, as this server sees them.
- PHP obfuscator — Wrap PHP so it self-decodes at runtime. Runs on the server; the code is never stored.