Skip to content
uencoder
TASK

Convert between IPv4 and IPv6 address formats

Convert IP addresses between dotted-decimal, hex, binary, and IPv6 representations. Understand IPv4-mapped IPv6 addresses.

  1. 1

    IPv4 addresses are 32-bit values shown as four decimal octets (192.168.1.1). IPv6 are 128-bit shown as eight hex groups (2001:db8::1). IPv4 can be embedded in IPv6 as ::ffff:192.168.1.1 (IPv4-mapped). Understanding these formats is essential for network configuration and debugging.

  2. 2
    IP Address Info →

    Look up an IP address to see its type (IPv4/IPv6), class, and range information. This helps identify whether an address is private, public, loopback, or multicast.

  3. 3
    Hex Encoder →

    Convert an IPv4 address to its hexadecimal representation. 192.168.1.1 → 0xC0A80101. This is useful for packet analysis and low-level network programming.

  4. 4
    Binary Encoder →

    Convert an IP address to binary. 192.168.1.1 → 11000000.10101000.00000001.00000001. This reveals the network/host boundary and is useful for subnet calculation.

Frequently asked questions

What is an IPv4-mapped IPv6 address?
It is an IPv6 address that embeds an IPv4 address: ::ffff:a.b.c.d (e.g., ::ffff:192.168.1.1). This allows IPv6 sockets to communicate with IPv4 hosts during the IPv6 transition. The first 80 bits are zero, next 16 are 1 (ffff), last 32 are the IPv4 address.
Why are there both IPv4 and IPv6?
IPv4 has 4.3 billion addresses, which are exhausted. IPv6 has 3.4×10^38 addresses, solving the shortage. IPv6 also has simplified header structure, no need for NAT, and built-in security (IPsec). The transition is ongoing — most networks support both (dual-stack).

Workflows that solve this

Convert Base32 to Hex
Decode Base32 and re-encode as hex for debugging.
PIPELINE
Convert Base64 to Hex
Decode a Base64 string into raw bytes and re-encode it as hexadecimal for inspection or interop.
PIPELINE
Convert Binary to Hex
Decode a binary (base-2) string into its byte value and re-encode as hexadecimal.
PIPELINE
ChaCha20 Encrypt then Hex
ChaCha20 encrypt then hex-encode the ciphertext.
PIPELINE
Hex encode then decode round-trip
Encode text to hexadecimal and decode it back to verify the round-trip preserves the original data.
PIPELINE
Hex-encode text and analyze
Convert text to its hexadecimal representation then compute character statistics on the hex output.
PIPELINE
Convert Multibase to Hex
Decode multibase and re-encode as plain hex.
PIPELINE
Convert Octal to Binary
Decode an octal (base-8) number into its numeric value and re-encode as a binary string.
PIPELINE
Convert Octal to Hex
Decode octal and re-encode as hex for compact representation.
PIPELINE
Reverse text and show hex encoding
Reverse a string then inspect its hexadecimal representation — useful for debugging byte-order issues and encoding puzzles.
PIPELINE
SHA-512 Hash then Hex Encode
Compute SHA-512 hash then encode as hex for readability.
PIPELINE
Decode URL and show hex bytes
Percent-decode a URL-encoded string then view its hexadecimal byte representation for low-level analysis.
PIPELINE
Encode a text payload for URL transport
Percent-encode text then show its hex representation for safe URL parameter transport.
PIPELINE
XXencode then Hex
XXencode text then hex-encode the result.
PIPELINE

Learn more

Want to understand why?

Related tools