IP To Hex Converter
Convert any IPv4 or IPv6 address to hexadecimal (and back), with a full binary breakdown of each octet or group.
Enter 8 hex digits for IPv4, 32 for IPv6 (0x prefix optional)
Quick Examples
Enter an IP address or hex string to see the conversion.
IP Address
Hex (0x-prefixed)
Hex (plain)
Binary Breakdown (per octet)
Copied!
Summary
Convert any IPv4 or IPv6 address to hexadecimal (and back), with a full binary breakdown of each octet or group.
How it works
- Choose IPv4 or IPv6 mode with the tab buttons.
- Enter an IP address in dotted-decimal (IPv4) or colon-hex (IPv6) notation.
- Each octet or 16-bit group is converted to its hexadecimal equivalent.
- The hex segments are joined to produce the compact hex string.
- Binary bits for each segment are shown so you can trace the conversion step by step.
- To reverse, paste a hex string into the Hex field and the IP is reconstructed automatically.
Use cases
- Verify IP addresses encoded as hex strings in log files or packet captures.
- Convert IPv4 addresses for use in URL-encoded or hex-literal network code.
- Debug routing tables and access-control lists that store addresses in hex.
- Learn how IPv4 and IPv6 addresses map to binary and hex for networking exams.
- Cross-check subnet boundary calculations at the bit level.
- Inspect raw bytes in protocol headers that embed IP addresses in hex format.
Frequently Asked Questions
Last updated: 2026-06-10 ·
Reviewed by Nham Vu