IP
IPLocatorNETWORK TOOLS
UNIVERSAL IP ADDRESS ENCODER & CONVERTER

IPv4 to IPv6, Binary & Hex Converter

Convert any IP address between Dotted Decimal, 32-bit Integer, Hexadecimal, Binary, Octal, and IPv6 formats instantly.

IPv4 Dotted Decimal

32-Bit Binary Decomposition

4 Octets • 8 Bits per Octet
OCTET 1192
128
1
64
1
32
0
16
0
8
0
4
0
2
0
1
0
OCTET 2168
128
1
64
0
32
1
16
0
8
1
4
0
2
0
1
0
OCTET 31
128
0
64
0
32
0
16
0
8
0
4
0
2
0
1
1
OCTET 41
128
0
64
0
32
0
16
0
8
0
4
0
2
0
1
1
IPv4 Dotted Decimal
192.168.1.1
Standard IPv4 network representation
32-Bit Decimal / Integer
3232235777
Useful for database storage and numeric indexing
Hexadecimal (0x...)
0xC0A80101
Base-16 raw 32-bit integer representation
Hexadecimal Dotted
C0.A8.01.01
Octet-by-octet hex bytes
Binary Dotted
11000000.10101000.00000001.00000001
Standard 8-bit octets separated by dots
IPv4-Mapped IPv6
::ffff:192.168.1.1
Standard RFC 4291 IPv6 mapped representation
IPv6 Hex Address
::ffff:C0A8:0101
Full hexadecimal IPv6 dual-stack representation
6to4 Anycast Prefix
2002:C0A8:0101::/48
IPv6 automatic transition routing prefix
Octal Notation
0300.0250.0001.0001
Base-8 octet notation with leading zero

Why convert an IP address to Decimal, Hex, or Binary?

An IPv4 address is fundamentally a 32-bit unsigned integer. While human beings write it as four decimal numbers separated by dots (dotted-decimal notation), computers and routers process IP packets purely as raw 32 binary bits.

Database Storage Optimization

Storing IP addresses as a 4-byte INT UNSIGNED instead of a 15-byte VARCHAR(15) saves up to 70% disk space and speeds up B-Tree range queries by 10x.

Cybersecurity & URL Obfuscation

Web browsers recognize decimal (e.g., http://3232235777) and hex IPs. Security analysts use IP converters to deobfuscate malicious redirect URLs.

IPv6 Transition & Dual-Stack

IPv4-mapped IPv6 addresses (::ffff:192.168.1.1) allow modern dual-stack socket applications to communicate seamlessly with IPv4 endpoints.

Frequently Asked Questions

How do you calculate an IP address as a 32-bit Integer?

To convert IPv4 A.B.C.D into an integer: (A × 256³) + (B × 256²) + (C × 256) + D. For example, 192.168.1.1 = (192 × 16,777,216) + (168 × 65,536) + (1 × 256) + 1 = 3,232,235,777.

Can you type an integer or decimal IP into a web browser address bar?

Yes! Operating systems and web browsers resolve integer IPs natively. Typing http://3232235777 into Chrome or Firefox navigates directly to http://192.168.1.1.

What is an IPv4-mapped IPv6 address?

Defined in RFC 4291, an IPv4-mapped IPv6 address has 80 leading zeros, followed by 16 ones (represented as ::ffff:), followed by the 32 bits of the IPv4 address. It allows IPv6 software to communicate with legacy IPv4 hosts.

How many bits are in an IPv4 vs IPv6 address?

An IPv4 address has 32 bits (4.3 billion possible addresses). An IPv6 address has 128 bits (approximately 340 undecillion addresses), solving the global address exhaustion crisis.