IP to Hex

Convert IPv4 and IPv6 addresses into hexadecimal format and back online. Supports automatic direction detection, dot or colon delimiters, and 0x prefixes.

Private • In-browser processing • Zero server uploads

Interactive workspace loading...

How to Use IP to Hex

1
Enter IP or Hex
Type or paste an IPv4 (e.g. 192.168.1.1), IPv6 (e.g. 2001:db8::1), or hex string.
2
Configure Delimiters
Select your desired delimiter (dot, colon, none) and hex casing (UPPERCASE or lowercase).
3
Copy Result
The converted IP or Hexadecimal address is rendered immediately.

Key Features

Bidirectional Conversion
Seamlessly converts IPv4 or IPv6 to Hex, and Hex back to valid IP addresses.
IPv4 & IPv6 Support
Encodes standard 32-bit IPv4 octets into 8 hex characters, and 128-bit IPv6 into 32 hex characters.
Auto-Detection
Automatically detects whether input is an IP address or a hex string without manual toggling.
Format Customization
Delimit with dots, colons, spaces, or clean continuous streams with optional 0x prefixes.

Common Use Cases

  • Network troubleshooting, firewall rule configuration, and routing table analysis.
  • Decoding hex-encoded client IP addresses in server access logs and packet captures.
  • Converting IP addresses for binary database storage and index optimization.
  • Cybersecurity investigations and digital forensics.

Frequently Asked Questions

Each of the 4 decimal octets (0–255) is converted to a 2-digit hexadecimal number. For example, 192.168.1.1 becomes C0 (192), A8 (168), 01 (1), 01 (1) -> C0A80101.

Yes! The tool automatically expands abbreviated IPv6 addresses (like '::1' or '2001:db8::1') into their full 128-bit representations before generating the 32 hex characters.

Yes! Enter an 8-character hex string for an IPv4 address, or a 32-character hex string for an IPv6 address, and it will decode back to the dotted-decimal or colon-hex IP.