Conversion Tools100% Client-Side

Hexadecimal to IPv4 Converter

Convert a hexadecimal representation of IPv4 to four dotted decimal octets. The tool accepts a packed hexadecimal value with an optional 0x prefix, or four hex groups separated by dots. In the packed form the first pair of a padded eight-digit value corresponds to the first octet. This is useful when a fixture or diagnostic log represents addresses as raw bytes rather than dotted decimal.

Input
11 chars•1 lines
Output

Reverse tool

IPv4 to Hex

Convert dotted-decimal IPv4 addresses to eight hexadecimal digits with a 0x prefix. Inspect byte pairs and copy packed values for fixtures or diagnostics.

Open IPv4 to Hex
Example input
192.168.1.1
Example output
0xc0a80101

How to Use the Hex to IPv4 Online

  1. 1Paste a packed hexadecimal number within the unsigned IPv4 range, or paste four groups separated by dots.
  2. 2Use only hexadecimal digits in the address. With dotted input, use values from 00 through FF for each group.
  3. 3Put multiple values on their own lines and compare the four resulting decimal octets with the original byte order.
  4. 4Copy the address after checking it with IPv4 to Hex if you need to verify the packed form.

Input & Output Examples

The packed prefixed value decodes to 192.0.2.10.

Input Sample
0xc000020a
Expected Output
192.0.2.10

The four dotted hex groups are decoded separately to produce 203.0.113.16.

Input Sample
cb.00.71.10
Expected Output
203.0.113.16

Practical Developer Workflows

  • Read the dotted form of an IPv4 address printed as hex in a diagnostic output.
  • Check that the bytes in a test fixture map to the expected display address.
  • Compare the packed and dotted forms used by two parts of a data conversion workflow.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

Use whichever representation the source provides. A line with four dotted groups decodes one byte at a time. A line without dots is read as one hexadecimal integer, which is then divided into four octets.

Explore Other Tools

12 suggested tools

View all tools