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· Your data stays in your browser.
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?
- Paste one hex value per line, in any of the accepted notations.
- Leave the family on Auto, or force IPv4 or IPv6, for example to read 0x1 as ::1.
- For IPv6, choose the compressed or the fully expanded output.
- 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:
0xC0A80101 c0:a8:01:01 7f000001 20010db8000000000000000000000001
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.
Related tools
IP to Hex Converter
Turn IP addresses into their hexadecimal form, one address per line, for IPv4 and IPv6.
Network Tools
Decimal to IP Converter
Turn a decimal, 0x hexadecimal or 0b binary integer into the IPv4 or IPv6 address it represents.
Network Tools
IP to Decimal Converter
Get the integer behind an IP address, in decimal or hex, for one address or a whole list.
Network Tools
Binary to IP Converter
Paste a 32-bit binary number (with or without dots) and get the dotted-decimal IPv4 address back; 128 bits give IPv6.
Network Tools
IPv4 Address Validator
Paste one or many IPv4 addresses to see whether each is valid, why not if it is not, and what kind of address it is.
Network Tools
IPv6 Address Validator
Check an IPv6 address, then see its canonical short form, its full 32-digit form and what kind of address it is.
Network Tools
Hex to Decimal Converter
Read hexadecimal values as decimal numbers, unsigned or as signed two’s complement integers of 8 to 64 bits.
Developer Tools
Hex to Text Converter
Paste hex bytes from a dump, a log or a source file and read the text they spell.
Encoding & Decoding