Hex to IP Converter
Convert Hexadecimal strings back to standard IPv4 or IPv6 addresses.
About Hex to IP Converter
This tool allows you to convert hexadecimal strings back into their standard IPv4 or IPv6 address representations. It can be helpful for network analysis, interpreting logs, or any situation where IP addresses are stored or transmitted in hexadecimal format.
For IPv4, input an 8-character hexadecimal string (e.g., C0A80164
). The tool will convert each pair of hex characters into its decimal octet equivalent (e.g., 192.168.1.100
).
For IPv6, input a 32-character hexadecimal string. The tool will group these into eight 4-character segments and can output the address in full expanded form or a compressed form using the ::
abbreviation for consecutive zero segments.
You can specify if your input hex string uses separators and choose the desired output format for IPv6. All conversions are performed client-side.
How to Use This Tool
- Enter your hexadecimal string into the "Enter Hexadecimal String" input area.
- Select the "IP Type (Output)" you expect (IPv4, IPv6, or Auto-Detect based on hex length).
- Specify the "Input Hex Separator" if your hex string uses one (e.g., colons, dots). Choose "None" if it's a continuous string.
- If converting to IPv6, you can choose between "Compressed (with ::)" or "Full Expanded" output format.
- The converted IP address will appear in the "Output IP Address" area as you type or change options. You can also click "Convert to IP".
Frequently Asked Questions
How does Hex to IPv4 conversion work?
An 8-character hexadecimal string (e.g., C0A8010A
) is split into four 2-character pairs (C0
, A8
, 01
, 0A
). Each pair is converted from hex to its decimal equivalent, forming the four octets of an IPv4 address (e.g., 192.168.1.10
).
How does Hex to IPv6 conversion work?
A 32-character hexadecimal string is split into eight 4-character segments. These segments form the IPv6 address. The tool can then format this into the standard colon-separated notation and apply IPv6 compression rules (e.g., replacing the longest sequence of zero-segments with ::
).
What if my input hex string has separators?
Use the "Input Hex Separator" dropdown. The tool will attempt to remove these separators before processing the hex string. For example, if your input is C0:A8:01:0A
, select "Colon" as the separator.
What happens if my hex string is an incorrect length?
If "Auto-Detect" is chosen for IP Type, the tool infers IPv4 for 8 hex characters and IPv6 for 32 hex characters (after removing separators). If a specific IP type is chosen and the length doesn't match, or if the length is ambiguous, an error will be shown.