Convert IPv4 addresses to and from hexadecimal
This tool converts a dotted-decimal IPv4 address into several hexadecimal formats and can reverse an eight-digit hexadecimal value back into IPv4. The output includes one hex byte per octet, a continuous 32-bit form and a 0x-prefixed form.
Hexadecimal is common in debugging, packet analysis, APIs, logs and low-level systems because one hex digit represents four bits. If you need the binary view instead, use the IPv4 ↔ binary converter.
How to use the IPv4 hexadecimal converter
Select the direction you need. In IP → Hex mode, enter a normal IPv4 address such as 192.168.10.1. In Hex → IP mode, enter eight hexadecimal digits such as C0A80A01. Separators and an optional 0x prefix are normalized before conversion.
The tool validates both inputs. An IPv4 address must contain four valid octets, and the hexadecimal representation must contain exactly 32 bits, which means eight hex digits after separators are removed.
Example: 192.168.10.1
The four decimal octets convert independently: 192 becomes C0, 168 becomes A8, 10 becomes 0A, and 1 becomes 01. The address can therefore be written as C0.A8.0A.01, C0:A8:0A:01, C0A80A01 or 0xC0A80A01.
The numeric value is the same in every form. Only the textual representation changes. For standalone base conversion, use the decimal/binary/hex converter.
Why hexadecimal maps cleanly to bytes
One byte contains eight bits and therefore maps to exactly two hexadecimal digits. The byte range 0–255 corresponds to hex 00–FF. This compact relationship makes hexadecimal much easier to scan than a 32-character binary IPv4 representation while still exposing byte boundaries.
It is the same reason IPv6 addresses use hexadecimal as their standard textual notation. The IPv6 guide explains how that idea scales to 128-bit addresses.
Where IPv4 hex values appear
You may encounter hexadecimal addresses in diagnostic output, binary file formats, packet decoders, programming interfaces or older configuration syntax. Some systems accept alternative numeric forms even when dotted decimal is the normal display format. Converting the value manually helps verify that two different strings actually represent the same address.
For operational network configuration, dotted decimal plus CIDR is usually the clearest notation. Hex is most valuable as a representation and troubleshooting aid rather than a replacement for standard IPv4 notation.
Input normalization and validation
The converter accepts common separators between hex bytes and ignores an initial 0x. It then requires exactly eight valid hexadecimal characters. This prevents partial or oversized values from being silently interpreted as a different address.
IPv4 input is checked against the normal 0–255 range in every octet. If you are unsure whether an address belongs to a specific network, use the IP-in-subnet checker after conversion.
When comparing outputs from different systems, remember that byte order and display conventions can matter in binary protocols. This page deliberately converts the normal network-address value one octet at a time, so the textual hex form follows the same left-to-right order as dotted decimal. If another application shows a different integer representation, verify its endianness and formatting rules before assuming the address itself is different. The converter is intended for transparent address notation, not for decoding arbitrary packed structures.
Frequently asked questions
Why does an IPv4 address need eight hexadecimal digits?
IPv4 contains 32 bits. Each hex digit represents four bits, so 32 bits require eight hexadecimal digits.
Are C0A80A01 and 0xC0A80A01 the same value?
Yes. The 0x prefix simply indicates hexadecimal notation.
Can I use lowercase hex?
Yes. Input is case-insensitive and results are normalized to uppercase.
Does hexadecimal change the IP address?
No. It is only another textual representation of the same 32-bit value.
Next step
Use the converter when a tool or log exposes IPv4 in hexadecimal, then return to CIDR-based tools when you need to calculate network boundaries or routing ranges.