Hex to IP Converter
Convert an 8-digit hex value into a dotted IPv4 address — the format routing tables, firewall rules, and packet captures often store addresses in.

Built by
Swapnil SanghviFull-Stack Web Developer & WordPress Developer
Swapnil Sanghvi is a full-stack web and WordPress developer, UI designer, and full-time freelancer who builds and maintains Hex Calculator.
Further reading: IPv4 — Wikipedia
How to Convert Hex to an IP Address
An IPv4 address is just a 32-bit number, conventionally split into four 8-bit bytes (octets) written in decimal and separated by dots. Converting from hex means splitting the 8 hex digits into four 2-digit pairs — each pair is one byte — and converting each pair to its decimal value.
Hex to IP Example, Step by Step
0xC0A80101 = 192.168.1.1
0xC0A80101 -> 192.168.1.1
Hex: C0 A8 01 01 Decimal: 192 168 1 1
| Step | Description | Result |
|---|---|---|
| Split into 4 byte pairs | C0, A8, 01, 01 | 4 bytes |
| Convert each byte to decimal | 0xC0=192, 0xA8=168, 0x01=1, 0x01=1 | 192, 168, 1, 1 |
| Join with dots | in the same order as the hex bytes | 192.168.1.1 |
This is exactly how 192.168.1.1 — a very common private-network address — is represented as a single 32-bit hex value.
Where Hex to IP Actually Comes Up
Reading a Packet Capture in Hex
Raw packet dumps and some network debugging tools show source and destination addresses as hex bytes — converting to dotted decimal makes them recognizable at a glance.
0x08080808 -> 8.8.8.8
Decoding a Firewall or Routing Table Entry
Some configuration formats and low-level routing tables store IP addresses in hex for compactness — converting back to dotted decimal is often the first step in auditing a rule.
hex address field -> readable IP
Cross-Referencing a DNS or Socket API Value
Low-level networking APIs sometimes expose an IPv4 address as a raw 32-bit integer (often shown or logged in hex) — converting it back to dotted decimal makes it recognizable against known hosts.
0x7F000001 -> 127.0.0.1 (localhost)
Why Use This Calculator Instead of Doing It by Hand
- Handles the byte-splitting and hex-to-decimal conversion for all 4 octets at once
- Automatically pads shorter hex values to the full 4 bytes
- Runs entirely in your browser — nothing you type gets sent anywhere
- Catches invalid input (too many digits) instead of producing a wrong address silently
Limitations
- Reads the hex value as big-endian (most significant byte first) — if the source system stored it little-endian, swap the byte order first with the Endianness Tools.
- Supports IPv4 only — IPv6's 128-bit address space isn't handled by this converter.
Frequently Asked Questions
How do you convert hex to an IP address?
Split the hex value into 4 bytes (2 hex digits each), then convert each byte to decimal — those four decimal numbers, in order, are the dotted IPv4 address.
Why do routers and firewalls show IP addresses in hex?
Hex is a compact, fixed-width way to represent the 32-bit IPv4 address space, which is easier to scan in logs and configuration files than four separate decimal octets.
What if my hex value has fewer than 8 digits?
It's padded with leading zeros to 8 digits first — 0x7F becomes 0x0000007F, which converts to 0.0.0.127.
Does byte order (endianness) matter here?
Yes — this converter reads the hex value as big-endian (most significant byte first, the standard network byte order). If the result looks reversed, the source system may have stored it little-endian; try the Hex Little Endian Converter first to swap the byte order.
Can this handle IPv6 addresses?
No — this converts the 32-bit IPv4 address space only. IPv6 uses 128-bit addresses with their own hex-colon notation, which this tool doesn't parse.