IP Address Today

IP address converter

Paste an address in any form — dotted quad, a 32-bit integer, hex or binary — and the tool works out which it is and shows all the others.

Try:
Dotted quad
8.8.8.8
Decimal
134,744,072
Hexadecimal
0x08080808
Binary
00001000 00001000 00001000 00001000
Octal
01002004010
IPv6 mapped(RFC 4291)
::ffff:8.8.8.8
Address type
Public

How the conversion works

Each of the four numbers in a dotted quad is one byte, and the address is those four bytes in order. So the integer value is simplya×16777216 + b×65536 + c×256 + d— the same 32 bits, read as one number instead of four.

Hexadecimal is the most direct view of that: each octet is exactly two hex digits, so 192.168.1.1 is C0.A8.01.01, written 0xC0A80101. This is why hex shows up in packet captures and kernel logs.

The same address, five ways

192.168.1.1 expressed in each supported notation
Notation192.168.1.1
Dotted quad192.168.1.1
Decimal3232235777
Hexadecimal0xC0A80101
Octal030052000401
Binary11000000 10101000 00000001 00000001
IPv6 mapped::ffff:192.168.1.1

Storing addresses as integers

Geolocation data is published as integer ranges precisely because “which block contains this address?” becomes a singleBETWEENcomparison. That is how our own lookups resolve an address to a network in constant time.

A caution when doing this yourself: in languages with signed 32-bit integers, any address from 128.0.0.0 upward has the top bit set and comes out negative. Store it in a 64-bit integer, or an unsigned type.

Frequently asked

What is the decimal form of an IP address?
An IPv4 address is 32 bits, which can be read as a single unsigned integer between 0 and 4,294,967,295. 192.168.1.1 becomes 3,232,235,777. Databases often store addresses this way because integer comparison makes range queries fast.
Why do some links use a decimal IP address?
Browsers accept the integer form, so http://3232235777/ reaches the same host as http://192.168.1.1/. Phishing has used this to disguise a destination, which is why seeing a bare integer in a URL is worth a second look.
Why does this tool reject 010.1.1.1?
A leading zero is ambiguous. Some libraries read 010 as octal 8, others as decimal 10, and the disagreement has caused real security bypasses where a filter and the network stack resolved the same string differently. Rather than guess, the tool rejects it.
What is the IPv6-mapped form?
IPv6 can carry an IPv4 address inside the ::ffff:0:0/96 range, written ::ffff:192.0.2.1. Dual-stack sockets use it so an IPv6 listener can accept IPv4 connections and report the peer address consistently.

Doing this for thousands of addresses?

These calculators run in your browser and never send us your input. When you need geolocation, ASN and network data for addresses in bulk, the API answers in one call — no key required to try it.

curl https://api.ipaddresstoday.com/api/v1/8.8.8.8

Other free tools