Skip to content

Hex to IP Converter

Decode hexadecimal values, in the forms you find in dumps and code, back to IPv4 or IPv6 addresses.

Processed locally in your browser

Options
Accepts 0xC0A80101, C0A80101, C0:A8:01:01, C0.A8.01.01, \xC0\xA8\x01\x01. Up to 8 digits = IPv4, up to 32 = IPv6.0 chars · 0 lines
The result will appear here.

What is Hex to IP Converter?

A hexadecimal IP is the raw address written in base 16: 8 digits for IPv4 (0xC0A80101) or 32 digits for IPv6. It shows up in packet captures, memory dumps, router configs, SQL columns and source code, usually without dots or colons.

This tool accepts the common notations: 0xC0A80101, C0A80101, C0:A8:01:01, C0.A8.01.01, C0 A8 01 01 and C-style \xC0\xA8\x01\x01. Up to 8 digits are read as IPv4 (shorter values are zero-padded on the left) and up to 32 as IPv6, printed in compressed RFC 5952 form or fully expanded. Each result gets its address type, such as private, loopback or documentation.

How does it work?

  1. Paste one hex value per line, in any of the accepted notations.
  2. Leave the family on Auto, or force IPv4 or IPv6, for example to read 0x1 as ::1.
  3. For IPv6, choose the compressed or the fully expanded output.
  4. Copy the addresses, or use the table to see the family and type of each line.

Common use cases

  • Decoding the source or destination address from a hex dump of a packet.
  • Reading IP values stored as hex in a database or a log.
  • Turning constants like 0x7F000001 in source code into readable addresses.
  • Converting a 32-digit hex value from an API back to an IPv6 address.

Examples

Try this input in the tool above:

Input
0xC0A80101
c0:a8:01:01
7f000001
20010db8000000000000000000000001
Output
192.168.1.1
192.168.1.1
127.0.0.1
2001:db8::1

Privacy

Hex to IP Converter runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.

Limitations

The digits are read as a big-endian (network order) number. If a debugger shows a little-endian dump, reverse the bytes first: 0101A8C0 must become C0A80101.

Frequently asked questions

How does it decide between IPv4 and IPv6?

In Auto mode, up to 8 hex digits are IPv4 and 9 to 32 digits are IPv6. Force a family when a short value should be IPv6, for example 1 meaning ::1.

Which separators and prefixes are allowed?

You can use 0x before the value or before every byte, and colons, dots, dashes, commas or spaces between groups. Groups must all be the same size: 2, 4 or 8 digits.

How is this different from the decimal to IP tool?

Decimal to IP reads big integers, with 0x only as an alternative. This tool is built for hex text: byte-separated forms, \x escapes and 32-digit IPv6 values.

More tools in Network Tools →