Network

IP Class Calculator

Identify the classful class (A, B, C, D or E) of an IPv4 address, its default subnet mask, and whether it is private or public.

Last reviewed by the Radiatus Cloud team

Identify the classful class of an IPv4 address and its default subnet mask.

Need this monitored 24/7?

Radiatus delivers managed cloud & network operations.

Discuss managed ops

Identify the class of an IPv4 address

Before CIDR, IPv4 addresses were divided into classes based on the value of the first octet, each with a fixed default subnet mask. This calculator identifies the class of any address: class A covers first octets from 0 to 127 with a /8 mask, class B covers 128 to 191 with a /16 mask, class C covers 192 to 223 with a /24 mask, class D from 224 to 239 is reserved for multicast, and class E from 240 to 255 is reserved and experimental. It also reports whether the address is a private RFC 1918 address, a loopback address, or public.

The result shows the first octet value so you can see exactly why the address falls into its class.

Classful addressing today

Although the internet moved to classless CIDR routing long ago, address classes are still taught because they explain the historical structure of the address space and appear constantly in certification exams. The default masks also remain useful shorthand, and the private ranges defined within the classes are very much in active use on home and office networks.

Private addresses, the 10, 172.16 to 172.31, and 192.168 ranges, are reserved for internal use and are not routed on the public internet, which is why recognising them matters for network design. All calculation happens locally in your browser.

Related tools

  • Port Scanner — Check which common ports respond on a host and understand what each exposed service means. Scan only systems you are authorised to test.
  • DNS Misconfiguration — Analyze DNS records (TXT, SPF) for security gaps.
  • TLS Compat Tester — Check client-server compatibility for TLS versions.
  • Firewall Rule Risk — Evaluate firewall rules for over-permissive exposure.

Frequently Asked Questions

How is an IP class determined?

By the value of the first octet. Ranges 0 to 127 are class A, 128 to 191 class B, 192 to 223 class C, 224 to 239 class D, and 240 to 255 class E.

What is the default mask for each class?

Class A uses /8, class B uses /16 and class C uses /24. Classes D and E are reserved for multicast and experimental use and have no host mask.

Are address classes still used?

Routing is now classless with CIDR, but classes are still taught for background and exams, and the default masks remain handy shorthand.

What are private addresses?

The ranges 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are reserved by RFC 1918 for internal networks and are not routed on the public internet.

Why is 127 special?

The entire 127.0.0.0/8 block is reserved for loopback, letting a host send traffic to itself, with 127.0.0.1 being the familiar localhost address.

Privacy & Security

Everything runs in your browser; nothing is uploaded.

Data: None
Client-side-Side
Active
v1.0

How to Use

Enter an IPv4 address to identify its class and default mask.

Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.