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.
FAQ
- Q: What results does the tool show?
- A: Network address, broadcast address, subnet mask, wildcard mask, available host range, number of usable hosts, IP address class (A/B/C/D/E), and binary/hexadecimal notation for all values.
- Q: What is the difference between network address and broadcast address?
- A: The network address (all host bits = 0) identifies the subnet itself and cannot be assigned to a host. The broadcast address (all host bits = 1) is used to send packets to all hosts in the subnet. Neither counts as a usable host address.
- Q: What is a wildcard mask and where is it used?
- A: A wildcard mask is the bitwise complement of the subnet mask (e.g. /24 β wildcard 0.0.0.255). It is used in Cisco ACLs, OSPF network statements, and firewall rules to specify which bits of an address must match.
- Q: Can I enter both CIDR and subnet mask formats?
- A: Yes. Enter CIDR (e.g. 192.168.1.0/24) or IP + subnet mask separately. If both are provided, CIDR takes precedence.
- Q: Does this tool send my IP addresses to a server?
- A: No. All calculations are done entirely in the browser. No IP addresses or subnet masks are sent to any server.
