IP Address Calculator
Calculate network information from CIDR notation or IP address + subnet mask
How to use
About this tool
Calculates and displays network address, broadcast address, available host range, IP address class, binary and hexadecimal notation, and more from CIDR notation (e.g., 192.168.1.0/24) or IP address + subnet mask in real time. All calculations are done in the browser.
How to use
Select input format (CIDR notation or IP address + subnet mask). For CIDR, enter like "192.168.1.0/24". For IP + subnet mask, enter the IP address (e.g., 192.168.1.0) and subnet mask (e.g., 255.255.255.0) separately. Results update in real time as you type; use each item's copy button to copy values.
Options
Input format: CIDR notation (e.g., 192.168.1.0/24) or IP address + subnet mask (e.g., 192.168.1.0 + 255.255.255.0). If both are entered, CIDR takes precedence. Results: Network address, broadcast address, subnet mask, wildcard mask, available host range, IP address class, binary notation, and hexadecimal notation are displayed.
Use cases
β’ Subnet calculations for network design β’ Firewall rule configuration (checking network and broadcast addresses) β’ Server and router setup (verifying available host ranges) β’ Network troubleshooting (IP address class and private/public determination) β’ Learning and education (understanding CIDR notation and subnet masks)
How it works
Uses bitwise operations (AND, OR, NOT) to calculate network address, broadcast address, and wildcard mask from IP address and prefix length (e.g., /24 in CIDR) or subnet mask. Network address is the AND of IP and subnet mask; broadcast address is the OR of network address and all host bits set to 1. Binary and hexadecimal notation convert each octet (0-255) to 8-digit binary or 2-digit hex. All calculations are implemented with JavaScript bitwise operations and complete instantly in the browser.
Privacy and data
All calculations are done in the browser; no IP addresses or subnet masks are sent to any server.
