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.

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

  1. Choose IPv4 or IPv6 mode with the tab buttons.
  2. Enter an IP address in dotted-decimal (IPv4) or colon-hex (IPv6) notation.
  3. Each octet or 16-bit group is converted to its hexadecimal equivalent.
  4. The hex segments are joined to produce the compact hex string.
  5. Binary bits for each segment are shown so you can trace the conversion step by step.
  6. 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