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
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
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.
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
- Parse the address with a strict dotted-quad grammar.
- Combine the octets into one unsigned 32-bit integer without signed-shift overflow.
- Render the integer in decimal, hexadecimal, binary and octal.
- Classify by first octet and documented special-use range, then build the reverse-DNS name.
Usage
- Enter an IPv4 address.
- Run the calculation.
- 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
{
"address": "8.8.8.8"
}A private address
{
"address": "192.168.1.1"
}The loopback address
{
"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
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.