ToolBox.Online

Hex to IP Converter - Convert Hexadecimal to IP Address

Convert hexadecimal values to IP addresses online for free. Transform hex strings back to standard IPv4 dotted notation.

What is Hex to IP?

Converting hexadecimal values to IP addresses is the reverse of IP-to-hex conversion. It takes a 32-bit number expressed in hexadecimal format and translates it back to the familiar dotted-decimal IPv4 notation that humans can easily read and recognize. This conversion is commonly needed when working with network packet captures, protocol analyzers like Wireshark, firewall logs, or system memory dumps where IP addresses are stored and displayed as raw hexadecimal values. In these contexts, you might see an address like C0A80101 and need to quickly identify that it represents 192.168.1.1. The hex format is also used in many programming contexts: network socket APIs, raw packet construction, and embedded systems firmware often work with IP addresses as 32-bit integers in hex notation rather than dotted-decimal strings.

How to Use Hex to IP

Enter a hexadecimal value (e.g., C0A80101 or 0xC0A80101) in the input field. Click "Convert" to get the corresponding IPv4 address in dotted-decimal notation. The tool accepts hex values with or without the 0x prefix and shows the breakdown of each octet. Copy the result with one click.

How Hex to IP Works

The conversion process reverses the IP-to-hex operation: 1. Remove the 0x prefix if present 2. Validate the hex string is exactly 8 characters (32 bits) 3. Split into 4 pairs of 2 hex digits: C0, A8, 01, 01 4. Convert each pair from hexadecimal to decimal: • C0 → 192 (12 × 16 + 0) • A8 → 168 (10 × 16 + 8) • 01 → 1 (0 × 16 + 1) • 01 → 1 (0 × 16 + 1) 5. Join with dots: 192.168.1.1 The tool uses network byte order (big-endian), which is the standard byte order for IP addresses in network protocols. The first hex pair represents the most significant byte of the address.

Common Use Cases

  • Decoding IP addresses from Wireshark packet captures or tcpdump output
  • Interpreting hex addresses found in firewall logs, ACL rules, or security alerts
  • Converting hex values from memory dumps or debugger output to readable IP addresses
  • Working with network programming code that stores addresses as 32-bit hex integers
  • Reading embedded systems firmware that references network addresses in hexadecimal
  • Studying for networking certifications that test hex-to-IP conversion skills

Frequently Asked Questions

What hex format is accepted?

You can enter hex values with or without the 0x prefix. The input should be exactly 8 hex digits for a valid IPv4 address (e.g., C0A80101 or 0xC0A80101). Both uppercase and lowercase hex digits are accepted.

How does hex to IP conversion work?

The 8-digit hex string is split into 4 pairs of 2 digits. Each pair is converted from hexadecimal to decimal to form the four octets of the IP address. For example, C0A80101 → C0=192, A8=168, 01=1, 01=1 → 192.168.1.1.

What if my hex value is less than 8 digits?

The tool pads shorter hex values with leading zeros to reach 8 digits. For example, "1" becomes "00000001" which converts to 0.0.0.1. However, for accurate results, always provide the full 8-digit hex value.

Can I identify the network class from the hex value?

Yes. The first hex digit pair determines the IP class: 00-7F = Class A, 80-BF = Class B, C0-DF = Class C. For example, C0A80101 starts with C0 (192), which is a Class C address.

What byte order does this tool use?

This tool uses network byte order (big-endian), which is the standard for TCP/IP. The most significant byte comes first. If your hex value is in little-endian format (from a memory dump), you will need to reverse the byte pairs before converting.

Does this work with IPv6 hex values?

This tool is specifically for IPv4 (32-bit, 8 hex digits). IPv6 addresses are 128-bit and already use hexadecimal notation (like 2001:db8::1). They do not need hex-to-IP conversion.

Related Tools