IPv4 Subnet Calculator
Enter an IP address with CIDR notation (e.g., 192.168.1.0/24) to calculate the network address, subnet mask, broadcast address, host range, and total usable hosts. Binary representation included.
Frequently Asked Questions
What is CIDR notation?▼
CIDR (Classless Inter-Domain Routing) notation combines an IP address with a prefix length to define a network range. For example, 192.168.1.0/24 means a network with a 24-bit subnet mask (255.255.255.0), giving 254 usable host addresses.
How many hosts does a /24 subnet have?▼
A /24 subnet has 256 total addresses (2^8 = 256), minus 2 for the network address and broadcast address, leaving 254 usable host addresses.
What is the difference between network address and broadcast address?▼
The network address (first address) identifies the subnet itself and cannot be assigned to a host. The broadcast address (last address) is used to send packets to all hosts on the subnet and also cannot be assigned.
What is a subnet mask?▼
A subnet mask is a 32-bit number that divides an IP address into network and host portions. /24 corresponds to 255.255.255.0, /16 to 255.255.0.0, and /8 to 255.0.0.0.
Looking for more free developer tools?
Browse All Free Tools →Related Products
on GumroadDeveloper Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →Premium Workflow Pack
Production-grade workflows, architecture guides, and deployment scripts for teams that ship. 10 advanced CI/CD workflows (blue-green, canary, E2E, security), 5 architecture deep-dives, code review checklist, PR process guide, and 5 battle-tested Bash deployment scripts.
Buy on Gumroad →GitHub Actions CI/CD Templates Pack
12 production-ready GitHub Actions workflow templates covering Node.js, Python, Docker, multi-environment deployments, security scanning, and auto-changelog. Copy, paste, ship.
Buy on Gumroad →You Might Also Need
Infrastructure Cost Calculator
Compare and estimate monthly infrastructure costs for AWS EC2, Azure VMs, and Google Compute Engine. Add storage and data transfer for total monthly cloud cost.
Open free tool →
chmod Calculator
Calculate Unix/Linux file permissions visually. Toggle read/write/execute checkboxes and instantly see octal notation (755), symbolic (rwxr-xr-x), and the ready-to-run chmod command.
Open free tool →
Docker Compose Generator
Generate docker-compose.yml configurations visually in your browser. Add services, ports, volumes, environment variables, and networks. Export production-ready YAML instantly. Free Docker tool.
Open free tool →
More Free Tools
Related Articles
AWS CDK vs Terraform vs Pulumi: Infrastructure as Code Comparison 2026
Complete comparison of AWS CDK, Terraform, and Pulumi for infrastructure as code in 2026 — language support, state management, multi-cloud, community, and when to use each.
Backstage Internal Developer Portal: Complete Setup Guide 2026
Learn how to set up Backstage IDP from scratch. Covers software catalog, TechDocs, plugins, CI/CD integration, and building a self-service developer platform your team will actually use.
Ansible vs Chef vs Puppet: Configuration Management Tools Compared 2026
Ansible vs Chef vs Puppet — compare agentless vs agent-based architecture, YAML vs Ruby DSL, scalability, Windows support, and cloud integration. Find the right config management tool for 2026.
Chmod Calculator: Understand Linux File Permissions Without Memorizing Octal
Use a chmod calculator to set Linux file permissions correctly. Convert between symbolic and octal notation, understand rwx bits, and avoid common permission mistakes.
Cron Expression Generator: Build and Understand Cron Schedules
Learn cron expression syntax, build schedules visually, and avoid common mistakes. Includes a cron expression generator tool and reference for every cron format.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →