IP / CIDR / Subnet Calculator

Enter an IP address or CIDR to get the network, broadcast, usable host range and subnet mask instantly. Split networks (VLSM), convert ranges to CIDR and check IP lists — for both IPv4 and IPv6.

On-device・No uploadMobile friendlyWorks offline

Your files and input are processed only inside your browser on this device and are never uploaded to our servers.

e.g. 192.168.1.10/24, 10.0.0.1 255.255.255.0, 2001:db8::/48

26
The address you entered is not the network address (host bits are set). The network is 192.168.10.64/26.
Network (CIDR)
192.168.10.64/26
Address entered
192.168.10.77
Network address
192.168.10.64
Broadcast address
192.168.10.127
Usable host range
192.168.10.65 – 192.168.10.126
Usable hosts
62
Total addresses
64
Subnet mask
255.255.255.192
Wildcard mask (ACL)
0.0.0.63
Class (legacy)
C
Network (decimal integer)
3232238144
Network (hex)
0xc0a80a40
Mask value (hex)
0xffffffc0
Type
Private address (internal / home LAN)(192.168.0.0/16 · RFC 1918)
Reverse DNS zone
64.10.168.192.in-addr.arpa

Binary view

Address11000000.10101000.00001010.01001101
Mask11111111.11111111.11111111.11000000
Network11000000.10101000.00001010.01000000

Blue bits are the network part, grey bits the host part.

IPv4 subnet mask cheat sheet
PrefixSubnet maskHostsAddresses
/32255.255.255.25511
/31255.255.255.25422
/30255.255.255.25224
/29255.255.255.24868
/28255.255.255.2401416
/27255.255.255.2243032
/26255.255.255.1926264
/25255.255.255.128126128
/24255.255.255.0254256
/23255.255.254.0510512
/22255.255.252.01,0221,024
/21255.255.248.02,0462,048
/20255.255.240.04,0944,096
/19255.255.224.08,1908,192
/18255.255.192.016,38216,384
/17255.255.128.032,76632,768
/16255.255.0.065,53465,536
/15255.254.0.0131,070131,072
/14255.252.0.0262,142262,144
/13255.248.0.0524,286524,288
/12255.240.0.01,048,5741,048,576
/11255.224.0.02,097,1502,097,152
/10255.192.0.04,194,3024,194,304
/9255.128.0.08,388,6068,388,608
/8255.0.0.016,777,21416,777,216
/7254.0.0.033,554,43033,554,432
/6252.0.0.067,108,86267,108,864
/5248.0.0.0134,217,726134,217,728
/4240.0.0.0268,435,454268,435,456
/3224.0.0.0536,870,910536,870,912
/2192.0.0.01,073,741,8221,073,741,824
/1128.0.0.02,147,483,6462,147,483,648
/00.0.0.04,294,967,2944,294,967,296

How to use

  1. In “Subnet calculator”, enter something like 192.168.1.10/24 (a mask such as “10.0.0.1 255.255.255.0” also works).

  2. See the network, broadcast, host range, host count and masks. Hex and decimal-integer forms are listed too. Move the slider to change the prefix length instantly.

  3. To divide a network, use “Split · VLSM”: equal-size subnets, or enter the hosts each team needs. Save the plan as CSV.

  4. In “Range ⇔ CIDR · Summarise”, convert a start–end range to CIDRs or merge a messy list into the minimal CIDR set.

  5. In “Check IP list”, test many IP addresses against a list of networks such as an allow-list.

What it does

IPv4 and IPv6

IPv6 is shown in RFC 5952 compressed and fully expanded forms, and huge counts such as a /64 are exact (shown as 2^64). Zone IDs (%eth0) and IPv4-mapped addresses are understood.

See the network bits

Address, mask and network are shown in binary with network and host bits coloured. Hex and decimal-integer forms can be copied. You are told when the address entered is not the network address. /31 point-to-point and /32 are handled correctly.

VLSM planning with CSV export

List the hosts each subnet needs; subnets are allocated largest first on block boundaries, with anything that does not fit and the unused blocks shown. Equal splits list up to 4,096 subnets.

Range ⇔ CIDR and summarisation

Convert ranges like “192.168.1.10 - 192.168.1.20” into the minimal CIDR list, and merge overlapping or adjacent networks into the fewest CIDRs — handy for tidying firewall rules.

Address type at a glance

Private, CGNAT, link-local, documentation, multicast, ULA and other IANA special-purpose ranges are labelled with their RFC.

Use cases

  • Check the network range and usable IPs before configuring a router, AWS VPC or server
  • Design subnets for each team or floor from the number of hosts they need (VLSM)
  • Turn IP ranges into CIDRs or wildcard masks for firewall rules and ACLs
  • Check whether IPs from access logs are inside the office network or an allow-list
  • Verify answers when studying for networking exams such as CCNA

Capability matrix

FeatureSupportNotes
IPv4 / IPv6 subnet calculationSupported—
Input with subnet or wildcard masksSupported—
Equal split, VLSM planning, CSV exportSupportedLists show up to 4,096 rows
Range ⇔ CIDR conversion and summarisationSupported—
Check, sort and de-duplicate IP listsSupportedUp to 10,000 IPs per check (up to 1,000 networks)
Reverse DNS zone names (in-addr.arpa / ip6.arpa)Supported—
Show my public IP, WHOIS, geolocation lookupsNot supportedNo external lookups are made

Limits & notes

  • IPv4 addresses are four numbers 0–255. Numbers with leading zeros (such as 010) are rejected because some devices read them as octal.
  • Equal splits list the first 4,096 subnets and range conversion returns up to 4,096 CIDRs. Up to 10,000 IPs can be checked at once, against up to 1,000 networks. The table shows the first 200 rows; the counts cover all of them.
  • VLSM host counts for IPv4 exclude the network and broadcast addresses (/31 and /32 are not used for allocation).
  • There is no lookup of who owns an IP or where it is (WHOIS / geolocation).
  • Works on phones too, but split tables and IP list checks are easier on a PC (PC recommended).

Privacy & safety

The IP addresses and lists you enter are calculated in your browser only. Nothing is sent to or stored on a server.

FAQ

What is the subnet mask of a /24 and how many hosts does it have?
A /24 has the mask 255.255.255.0 and 256 addresses, of which 254 are usable hosts (network and broadcast are excluded). The cheat sheet on this page lists /0 to /32.
How are the network and broadcast addresses calculated?
The network address is the IP AND the mask (all host bits 0); the broadcast address has all host bits set to 1. The binary view shows this bit by bit.
What is a wildcard mask?
The inverse of the subnet mask, used in Cisco ACLs and similar. For a /24 it is 0.0.0.255. You can also enter a wildcard mask here.
What are the private IP ranges?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918). 100.64.0.0/10 is shared address space for carrier-grade NAT, which is different from private space.
Are the IP addresses I enter sent anywhere?
No. Everything is calculated in your browser and nothing is sent to a server.

DNS Checker

Enter a domain and run it to see A, AAAA, CNAME, MX, TXT, NS, SOA, CAA, DS, DNSKEY and HTTPS records in a table. Queries do not pass through this site’s server: your browser sends them straight to Cloudflare’s or Google’s DNS-over-HTTPS.

Hosts Studio

Paste a hosts file to see its IP and host name pairs in a table, with format errors, duplicates and changed localhost lines flagged by line number. It checks the syntax of hosts entries (IP, whitespace-separated names, # comments). It does not resolve names or write to your system. Save the output file and place it in the system hosts location with administrator rights.

No upload

SSH Config Studio

Paste your ~/.ssh/config to see the settings for each Host and the values that actually apply when you connect to a host name you choose. The first value found wins, so a Host * placed first hides later settings, and this tool flags that. It does not read Include files. To check how names resolve, use Hosts Studio.

No upload

GIS Coordinate Tool

Convert latitude and longitude (decimal, DMS, degrees-minutes), the old Tokyo Datum, Japan plane rectangular coordinates, UTM, Web Mercator, regional mesh codes and geohash. Convert whole CSV or Excel columns at once, and calculate the distance and azimuth between two points.

No upload

SPF, DKIM and DMARC Checker

Enter a domain and run it to check MX, SPF, DMARC and DKIM. It follows SPF includes, counts DNS lookups (limit 10) and void lookups, and shows problems with their RFC sources. Queries do not pass through this site’s server: your browser sends them straight to Cloudflare’s or Google’s DNS-over-HTTPS.

Email Address Checker

Paste email addresses to check the writing rules (length, dots, characters), the domain’s DNS (MX, or A/AAAA), disposable domains, typos such as gmial.com, and role addresses such as info@. It cannot tell whether a mailbox really exists (no SMTP connection is made).

Last updated: