IP Subnet Mask & CIDR Calculator (IPv4)
Instant IPv4 subnetting calculator for network engineers and DevOps: compute subnet mask, wildcard mask, network/broadcast addresses, usable host IP range, and binary representation for /1 through /32.
| Usable Host IP Range | |
| Wildcard Mask | |
| IP Class & Scope | |
| Binary Subnet Mask |
Embed "IP Subnet Mask & CIDR Calculator (IPv4)" on Your Website
Copy and paste the snippet below into WordPress, Webflow, Ghost, or any HTML page to offer this interactive calculator to your visitors.
Live Embed Preview (How it looks on an external website):
IP Subnet Mask & CIDR Calculator (IPv4) — How to Use
-
01
Enter an IPv4 address (e.g. `192.168.1.10`) and choose a CIDR prefix (`/1` to `/32`).
-
02
Inspect the Network ID, Broadcast IP, First & Last Usable Host, and Total Usable Hosts.
-
03
Copy the subnet summary or 32-bit binary mask.
Frequently Asked Questions
How many usable hosts are in a /24 subnet?
A `/24` block has `2^(32-24) - 2 = 254` usable host addresses (excluding network and broadcast addresses).
What are RFC 1918 private IPv4 ranges?
`10.0.0.0/8`, `172.16.0.0/12`, and `192.168.0.0/16` are reserved for private local networks.
What is a wildcard mask?
The bitwise inverse of the subnet mask (e.g. `0.0.0.255` for `/24`), commonly used in router ACLs and OSPF.
Recommended tools for your next task
JSON Formatter & Validator
Format, validate and minify JSON instantly in your browser
Text & Code Diff Checker
Compare two texts or code blocks side-by-side to highlight added and removed lines
JSON ↔ CSV Converter
Convert JSON arrays to Excel-ready CSV or turn CSV tables into JSON
Regex Tester & Debugger
Test Regular Expressions live with match highlighting, capture groups & common presets
HTML, CSS & JS Minifier
Minify HTML, CSS and JavaScript code to reduce file size and boost page speed
Markdown Live Editor & HTML Converter
Write Markdown with real-time preview and convert it to clean HTML markup
Related Guides & Articles
5 min read
The Complete Guide to Free Browser-First Developer, Media & SEO Tools
Discover how browser-side utilities for JSON formatting, image compression, YouTube downloading, and SEO meta tag generation speed up your daily workflow without sacrificing privacy.
1 min read
Why Digital Privacy Matters More Than Ever
1 min read