Skip to content
Hex Calculator

Hex to IPv4 Converter

Convert an 8-digit hex value into a dotted IPv4 address — explicitly IPv4, as distinct from the 32-digit IPv6 address space.

IPv4 address
192.168.1.1
Swapnil Sanghvi

Built by

Swapnil Sanghvi

Full-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.

Hex to IPv4 Converter tool preview card from Hex Calculator
Share preview: this is the card that appears when you share the Hex to IPv4 Converter page on social media.

Further reading: IPv4 — Wikipedia

How to Convert Hex to IPv4

An IPv4 address is a 32-bit number 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 decimal.

Where Hex to IPv4 Actually Comes Up

Reading an IPv4 Address From a Packet Capture

Raw packet dumps show source and destination IPv4 addresses as hex bytes — converting to dotted decimal makes them recognizable.

0x08080808 -> 8.8.8.8

Decoding a Firewall Rule's Hex-Stored Address

Some configuration formats store IPv4 addresses in hex for compactness — converting back to dotted decimal is often the first step in auditing a rule.

hex address field -> readable IPv4

Distinguishing IPv4 From an IPv6-Mapped Address

When working with dual-stack systems, explicitly converting the IPv4 portion confirms you're reading the correct 32-bit value rather than accidentally treating it as part of a longer IPv6 address.

confirm 8 hex digits, not 32

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) — use the Hex Little Endian IP Converter if the source stored it little-endian.
  • Supports IPv4 only — see Hex to IPv6 for the 128-bit address space.

Frequently Asked Questions

Why does this page specify "IPv4" instead of just "IP"?

To be explicit that this handles the 32-bit IPv4 address space (8 hex digits), as distinct from IPv6's much larger 128-bit space (32 hex digits) — see Hex to IPv6 for that instead.

How do you convert hex to an IPv4 address?

Split the 8 hex digits into 4 byte pairs, then convert each pair to its decimal value — those four numbers, joined with dots in order, are the IPv4 address.

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 matter?

Yes — this converter reads the hex value big-endian (most significant byte first). If the result looks reversed, try the Hex Little Endian IP Converter instead.