Loading…
Calculate network, broadcast, and host range from CIDR. Use for subnet math; for geo lookup use ip-lookup. Input: IP/CIDR. Returns network details. 100% client-side.
IP Address Calculator is loading — interactive editor will appear here. Use examples below to try instantly once loaded.
Press ? for keyboard shortcuts
Calculates IPv4 subnet details from a CIDR notation or IP/mask input, showing network address, broadcast address, usable host range, and total host count. Detects address class (A/B/C) and type (private, public, loopback, etc.), displays a binary view of the address and mask, and supports subnetting/supernetting calculations. Also handles IPv6 expand and compress formatting.
Network engineers constantly need to compute subnet boundaries, host ranges, and addressing details, but doing binary math by hand is slow and error-prone. This tool automates subnet calculations with clear visual output and also handles IPv6 address formatting.
This tool is part of the DevStackIO platform — a collection of free online developer tools from DevStackIO. Browse more free developer resources on DevStackIO.
Network administrators planning IP allocations, DevOps engineers configuring VPC subnets, and students learning subnetting concepts.
Enter an IPv4 address with CIDR notation (e.g., 192.168.1.0/24) or a subnet mask (e.g., 255.255.255.0)
View the calculated network address, broadcast address, and usable host range
Check the class/type detection to see if the address is private, public, loopback, or reserved
Toggle the binary view to see the address and mask in binary format for learning or debugging
Use the subnet calculator to divide a network into smaller subnets (subnetting)
Switch to IPv6 mode to expand (::1 → 0000:0000:0000:0000:0000:0000:0000:0001) or compress an IPv6 address
Input: '192.168.1.0/24'. Output: Network: 192.168.1.0, Broadcast: 192.168.1.255, Usable: 192.168.1.1-192.168.1.254 (254 hosts), Class C, Private.Input: '10.0.0.0/8' subnet to /16. Output: 256 subnets, each with 65,534 usable hosts, network and broadcast listed per subnet.Does this work for IPv6 subnets?
The calculator handles IPv6 expand/compress; full subnet calculation is IPv4.
What is the difference between subnetting and supernetting?
Subnetting splits a network into smaller ones; supernetting combines multiple networks into a larger one.
How does class/type detection work?
It identifies Class A (1-126), B (128-191), C (192-223) and special ranges like private (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16).
Can I calculate the subnet for a host IP without CIDR?
Enter the IP and mask separately, e.g., 192.168.1.50 with mask 255.255.255.0.
Authoritative specifications, standards, and in-depth reading for IP Address Calculator.
Look up geolocation and ISP for any IP address. Use for geo data; for subnet math use ip-calculator. Input: IPv4/IPv6. Returns location and ASN. 100% client-side.
Calculate IPv6 subnets, expansion, and compression. Use for IPv6 planning; for IPv4 use ipv4-subnet-calculator. Input: IPv6/CIDR. Returns subnet details. 100% client-side.
Calculate IPv4 subnets, masks, and host counts. Use for IPv4 planning; for IPv6 use ipv6-calculator. Input: CIDR or mask. Returns subnet table. 100% client-side.
Convert IPv4 between dotted, hex, integer, and binary. Use for format shifts; for subnet math use ipv4-subnet-calculator. Input: IPv4 address. Returns all formats. 100% client-side.
Parse raw HTTP headers into readable name-value pairs. Use when debugging responses; for URL parts use url-parser. Input: header text ≤10MB. Returns table of headers. 100% client-side.
Split any URL into protocol, host, path, and query params. Use when inspecting URLs; for encoding query strings use url-encoder. Input: URL text. Returns component table. 100% client-side.
Parse user-agent strings into browser, OS, and device. Use when debugging traffic; for live device data use device-information. Input: UA string. Returns parsed fields. 100% client-side.
Look up DNS records for any domain. Use when checking DNS; for IP geo use ip-lookup. Input: domain name. Returns A, MX, TXT records. 100% client-side.
Learn the concepts behind this tool.
IP
Internet Protocol defines how packets are addressed and routed across networks using IPv4 or IPv6 addresses. Every device needs an IP to send and receive data on the internet.
View in glossary →TCP
Transmission Control Protocol provides reliable, ordered, error-checked delivery of byte streams over IP. It handles handshakes, retransmission, and flow control for web traffic.
View in glossary →UDP
User Datagram Protocol sends datagrams without guaranteed delivery, ordering, or connection setup. Its low overhead makes it ideal for DNS, video, and real-time applications.
View in glossary →