P
Guides
Language
Tools
Password & Security
P
Password Strength Checker
Score any password and estimate crack time
P
Password Generator
Create strong random passwords up to 128 chars
R
Random String Generator
Random tokens, IDs and keys with any charset
P
Passphrase Generator
Memorable multi-word passphrases (Diceware)
T
TOTP / 2FA Code Generator
Time-based one-time codes and otpauth secrets
P
Password Breach Checker
Check if a password appeared in known breaches
Hash & Crypto
S
SHA-256 Generator
Hash text to a 64-char SHA-256 digest
M
MD5 Generator
Compute the 32-char MD5 checksum of any text
S
SHA-1 Generator
Generate the 40-char SHA-1 hash of any input
S
SHA-512 Generator
Hash text to a 128-character SHA-512 digest
H
HMAC Generator
HMAC-MD5, SHA-1, SHA-256 & SHA-512 with secret key
B
bcrypt Generator / Checker
Hash passwords with bcrypt and verify hashes
P
PBKDF2 Key Derivation
Derive keys from a password with salt and iterations
A
AES Encrypt / Decrypt Text
Encrypt text with AES-256-GCM and a password
F
File Hash / Checksum
Compute SHA hashes of any file locally
Networking
I
IP Address Checker
Identify IPv4 vs IPv6, public/private and more
I
IPv4 Calculator
Network, broadcast, hosts, subnet mask & wildcard
I
IPv6 Calculator
Expand, compress and subnet IPv6 addresses
S
Subnet Calculator
CIDR ranges, wildcard masks and usable hosts
M
MAC Address Generator
Random valid MAC addresses, unicast or multicast
P
Port Checker
Learn what each TCP/UDP port number means
D
DNS Lookup
Resolve A, AAAA, MX, NS, TXT and CNAME records
W
WHOIS Lookup
Domain registration, expiry and registrar info
Web & HTTP
H
HTTP Header Analyzer
Security, caching & SEO headers explained
U
User-Agent Parser
Decode browser, OS and device from any UA
M
MIME Type Lookup
File extension to MIME type reference
H
HTTP Status Code Lookup
Every status code 1xx–5xx explained
U
URL Encoder / Decoder
Percent-encode URLs and parse query strings
C
Color Contrast Checker (WCAG)
Check text contrast against WCAG AA & AAA
Developer Utilities
U
UUID / ULID Generator
UUID v4, v7, ULID and NanoID in bulk
J
JWT Decoder & Signer
Decode, inspect and sign JSON Web Tokens
B
Base64 Encoder / Decoder
Encode and decode Base64, standard or URL-safe
Q
QR Code Generator
QR codes for links, Wi-Fi and vCards
J
JSON Formatter & Validator
Format, minify and validate JSON instantly
T
Unix Timestamp Converter
Convert Unix timestamps to dates and back
R
Regex Tester
Test regular expressions with live matches
D
Diff Checker
Compare two texts and highlight differences
L
Lorem Ipsum Generator
Placeholder paragraphs, sentences or words
N
Number Base Converter
Convert between binary, octal, decimal and hex
C
Color Converter (HEX / RGB / HSL)
Convert colors and copy HEX, RGB or HSL
C
CSV to JSON Converter
Convert CSV to JSON and JSON back to CSV
C
Case Converter & Slug Generator
camelCase, snake_case, kebab-case, Title & slug
W
Word & Character Counter
Words, characters, sentences and reading time
Networking

Subnetting & CIDR Explained

Subnetting splits a network into smaller ones. Once you see the network/host split, CIDR and subnet masks stop being magic.

Updated 16 September 2026 · 8 min read
Advertisement

The idea

An IPv4 address is 32 bits. Subnetting chooses how many of those bits identify the network and how many identify the host within it. That split is written in CIDR notation: 192.168.1.0/24.

Compute any of this with the free subnet calculator.

Network bits vs host bits

  • 192.168.1.0/24 → 24 network bits, 8 host bits.
  • 10.0.0.0/8 → 8 network bits, 24 host bits.

More network bits mean fewer hosts per subnet and more subnets.

CIDR to mask

CIDR Mask Addresses Usable hosts
/24 255.255.255.0 256 254
/25 255.255.255.128 128 126
/26 255.255.255.192 64 62
/30 255.255.255.252 4 2

Usable hosts = 2^(host bits) − 2 (network and broadcast addresses are reserved).

A worked example

Split 192.168.1.0/24 into four equal subnets using /26:

Subnet Range Usable
192.168.1.0/26 .0 – .63 .1 – .62
192.168.1.64/26 .64 – .127 .65 – .126
192.168.1.128/26 .128 – .191 .129 – .190
192.168.1.192/26 .192 – .255 .193 – .254

Each subnet has its own network and broadcast address.

Why subnetting matters

  • Organisation — separate teams, floors or VLANs.
  • Performance — smaller broadcast domains.
  • Security — segment sensitive systems.
  • Address efficiency — allocate exactly what you need.

Private ranges to remember

  • 10.0.0.0/8
  • 172.16.0.0/12
  • 192.168.0.0/16

These are not routable on the public internet. Check the class of any address with the IP address checker.

Beyond IPv4

IPv6 uses 128-bit addresses and a different structure, but the CIDR concept is identical. See the IPv6 calculator.

Practise

Enter any address and prefix into the subnet calculator to see the mask, range and host count instantly.

Advertisement
Help Center

Subnetting & CIDR Explained — FAQ

A CIDR prefix of 24 bits: the first 24 bits are the network and the last 8 are hosts, giving 256 addresses (254 usable).

254. There are 256 addresses, but the first is the network address and the last is the broadcast address.

The dotted-decimal form of the prefix length: /24 = 255.255.255.0. Ones mark the network bits; zeros mark the host bits.

Keep reading
Advertisement