IP Calculator
Calculate and analyze IPv4 and IPv6 addresses
About IP Calculator
Subnetting is one of those tasks that's simple in principle and error-prone in practice. Given an address and a prefix length, you need the network address, the broadcast address, the usable host range, and the total host count — and getting any of them wrong can mean an overlapping subnet, a firewall rule that's too broad, or a route that black-holes traffic. This calculator does the bit arithmetic for you and shows the result in binary, decimal, and hexadecimal so you can see exactly where the network and host boundaries fall.
Enter an IPv4 address with a CIDR prefix or subnet mask and the tool breaks down the network: it identifies the address class, the network and broadcast addresses, the first and last usable hosts, and how many hosts the subnet holds. For IPv6, it expands and compresses addresses, shows the prefix, and flags special-purpose ranges so you can tell a link-local address from a global unicast one at a glance.
Everything runs in your browser, so internal addressing plans and infrastructure details never leave your machine. That makes it safe to paste production CIDR blocks while planning a network, reviewing a security group, or debugging why two hosts can't reach each other.
How to use IP Calculator
Choose IPv4 or IPv6
Pick the tab for the address family you're working with. Each uses the conventions for that protocol — dotted-decimal for IPv4, colon-hex for IPv6.
Enter the address and prefix
Type an IPv4 address with a CIDR prefix (like 192.168.1.10/24) or a subnet mask, or an IPv6 address with its prefix length.
Read the breakdown
See the network and broadcast addresses, usable host range, host count, and address class, with binary, decimal, and hex views.
Check special ranges
The tool flags special-purpose addresses — private, loopback, link-local, multicast — so you can confirm an address is routable where you expect.
Frequently asked questions
Related developer tools
Timestamp Converter
Convert Unix timestamps (seconds/ms), ISO 8601 strings, and human-readable dates. View local time, relative time, and next cron times.
Hash Generator & Verifier
Generate MD5, SHA-1, SHA-256, SHA-512, and bcrypt hashes. Verify strings against known hashes.
UUID Generator & Validator
Generate v1 or v4 UUIDs, validate existing ones, detect versions, and inspect v1 timestamps.