IP Calculator

Inspect an IPv4 address: class, scope, integer, hex, binary, octal and reverse-DNS name.

  • Runs locally in your browser
  • No upload required

Try it

Address
8.8.8.8
Integer
134744072
Hexadecimal
0x08080808
Binary
00001000000010000000100000001000
Octal
0o1002004010
Class
A
Scope
Public
Private
no
Reverse DNS
8.8.8.8.in-addr.arpa
Address: 8.8.8.8
Integer: 134744072
Hex: 0x08080808
Binary: 00001000000010000000100000001000
Reverse DNS: 8.8.8.8.in-addr.arpa

Supported formats

Input
text
Output
text, number

Privacy

Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.

Processing
In your browser
Privacy level
Browser only

8.8.8.8 is a class A address in Public.

How it works

  • Parsed the four octets and combined them into one unsigned 32-bit integer.
  • Rendered that integer in decimal, hexadecimal, binary and octal.
  • Classified the address by its first octet and its documented special-use range.
  • Reversed the octets to build the in-addr.arpa reverse-DNS name.
textSelect to copy
value = (((o1 × 256 + o2) × 256 + o3) × 256 + o4)
  • Class labels are legacy (pre-CIDR) and do not imply routing policy.
  • Leading-zero octets are rejected because they are ambiguous between decimal and octal.

Methodology

  1. Parse the address with a strict dotted-quad grammar.
  2. Combine the octets into one unsigned 32-bit integer without signed-shift overflow.
  3. Render the integer in decimal, hexadecimal, binary and octal.
  4. Classify by first octet and documented special-use range, then build the reverse-DNS name.

Usage

  1. Enter an IPv4 address.
  2. Run the calculation.
  3. Read or copy the address properties.

Examples

These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.

A public DNS resolver

jsonSelect to copy
{
  "address": "8.8.8.8"
}

A private address

jsonSelect to copy
{
  "address": "192.168.1.1"
}

The loopback address

jsonSelect to copy
{
  "address": "127.10.20.30"
}

Limitations

One integer, many notations

An IPv4 address is a 32-bit number. The dotted quad is a human-readable way of writing four bytes, but the address also has a decimal integer, a hexadecimal and a binary form. Systems disagree about which one to store, so being able to see all of them is useful.

The reverse-DNS name is built from the same bytes: the octets are reversed and appended to in-addr.arpa so the lookup tree reads most-specific first.

Frequently asked questions

Is a 10.x address always private?
The whole 10.0.0.0/8 block is reserved for private use by RFC 1918, so yes; the same applies to 172.16.0.0/12 and 192.168.0.0/16.
Why is the reverse-DNS name reversed?
Reverse DNS records live under in-addr.arpa with the octets reversed, so the most specific part of the address comes first.

Sources

  1. RFC 791: Internet Protocol — IETF
  2. RFC 1918: Address Allocation for Private Internets — IETF