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.

Why IP Address Representation Formats Matter in Computing & Databases

At its core (RFC 791), an IPv4 address is simply an unsigned 32-bit binary integer. While dotted-decimal notation (e.g., 192.168.1.1) was designed for human readability, computing engines, database indexes, and network cards process IP addresses as raw 32-bit numbers.

Storing IP addresses as 32-bit integers in SQL databases (such as PostgreSQL inet or MySQL INT UNSIGNED with INET_ATON()) drastically reduces memory footprint, accelerates B-tree indexing, and optimizes geolocation IP range queries.

How to Convert IP Addresses in 3 Steps

  1. Enter an IP or Integer

    Type any standard IPv4 address (e.g. 8.8.8.8 or 192.168.1.1), 32-bit decimal integer, or hexadecimal string.

  2. Auto-Convert Across All Formats

    The tool automatically detects input format and converts in real time across Dotted Decimal, Integer, Hexadecimal, Binary, and IPv4-mapped IPv6.

  3. Copy Formats with 1-Click

    Copy integer decimal for database indexes, hexadecimal for packet captures, or binary for subnet masking.

IPv4 Address Encoding Formats Compared

Inspect the syntax, standards, and practical use cases for alternative IP representations:

Encoding FormatBase / RFCExample (8.8.8.8)Primary Use Case
Dotted DecimalRFC 7918.8.8.8Standard human-readable IPv4 notation
32-bit Integer / DecimalBase 10134744072Ultra-fast database index and range queries
HexadecimalBase 160x08080808Wireshark packet filters and memory inspection
Binary (32-bit)Base 200001000.00001000.00001000.00001000Subnet masking, bitwise AND routing logic
IPv4-Mapped IPv6RFC 4291::ffff:8.8.8.8Dual-stack network transition & socket migration

Frequently Asked Questions About IP Conversion

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?

An IPv4-mapped IPv6 address (defined in RFC 4291) embeds a 32-bit IPv4 address into the lower 32 bits of a 128-bit IPv6 address with the prefix ::ffff:0:0/96 (e.g., ::ffff:192.168.1.1 or ::ffff:c0a8:0101). Dual-stack operating systems use this format to handle both IPv4 and IPv6 over a single socket API.

Why do database architects store IP addresses as integers?

Storing an IP address as a 32-bit unsigned integer requires only 4 bytes of storage compared to up to 15 bytes for a VARCHAR(15) string. Furthermore, numerical indexing and subnet range queries (BETWEEN start_int AND end_int) execute orders of magnitude faster in MySQL, PostgreSQL, and SQLite.

Related Subnetting & Network Tools

📐 Subnet & CIDR Calculator🏷️ MAC & OUI Vendor Lookup📑 Bulk IP Lookup & CSV🛠️ View All All 28 Network Tools →