Hex to IP Converter

Hex to IP Converter calculator can be used to convert hexadecimal address blocks to IPv4 addresses, commonly used in networking and system administration.

Input Parameters

Enter a 32-bit hexadecimal number (8 characters) representing an IPv4 address in hex format.

Calculation Results

Calculation Formula

Hex to IP Conversion Formula:

Where:
IPv4 = (Hex Byte 1 << 24) + (Hex Byte 2 << 16) + (Hex Byte 3 << 8) + Hex Byte 4
Each hex byte represents a 8-bit segment of the IP address.

Converted IP Address

-- IP Address --

The resulting IPv4 address in standard dot-decimal notation.

Hex to IP Converter Calculator Usage Guide

Learn how to use the Hex to IP Converter calculator and its working principles for networking tasks.

How to Use This Calculator

  1. Enter a 32-bit hexadecimal number in the input field. The input should be exactly 8 characters long (representing 4 bytes) without the 0x prefix.
  2. For example, to convert the hex value 1a2f3b4c, simply type it in the input field.
  3. Click the "Calculate" button to convert the hex value to its equivalent IPv4 address.
  4. The result will be displayed in standard dot-decimal notation (e.g., 26.47.59.76).

Working Principle

This calculator performs a bit-wise conversion between hexadecimal and IPv4 addresses. Each 8-bit hexadecimal byte corresponds to a byte in the IPv4 address:

  • Hex Byte 1 becomes the first byte of the IP address
  • Hex Byte 2 becomes the second byte of the IP address
  • Hex Byte 3 becomes the third byte of the IP address
  • Hex Byte 4 becomes the fourth byte of the IP address

The conversion follows this formula: IPv4 = (Hex Byte 1 << 24) + (Hex Byte 2 << 16) + (Hex Byte 3 << 8) + Hex Byte 4

Example

Let's convert hex 1a2f3b4c to an IP address:

  1. Byte 1: 1a (hex) = 26 (dec)
  2. Byte 2: 2f (hex) = 47 (dec)
  3. Byte 3: 3b (hex) = 59 (dec)
  4. Byte 4: 4c (hex) = 76 (dec)

Resulting IP address: 26.47.59.76

Common Applications

This converter is useful for:

  • Network administration tasks
  • System configuration
  • Converting MAC addresses to IP ranges
  • Hexadecimal to decimal conversions in networking