Hex to IP Address Converter

Hex to IP Address Converter. Enter your value into Hex Input and the Hex to IP Address Converter instantly returns its IPv4 Address Output. When a dump shows pairs of hex digits, a hex to text converter translates each pair into its character.

Your values

Enter an 8-digit hex number (0x prefix optional, upper or lower case) or four hex pairs separated by dots, colons or dashes. Shorter hex numbers are padded with leading zeros. Put each address on its own line to convert several at once.

Result

IP address (dot-decimal)
—
  1. Enter your values
  2. Copy the result
  • Runs 100% in your browser
  • Results update as you type
  • No sign-up, nothing you type is uploaded

Staring at a value like AC1F0A2D in a packet capture and wondering which device it points to? This hex to IP address converter reads that 8-digit hex value and returns the dotted decimal notation of the address stored inside it, so you can recognize the machine at a glance. Hex is a compact base-16 representation of the same value that networking and programming tools print as four decimal numbers, and switching between the two formats takes seconds.

Using the Hex to IP Address Converter

The tool needs one input and one click. Because this online hex to IP converter responds instantly, you can paste values straight out of a log or a debugger. Follow these steps with any value you have on hand:

  1. Paste your hex string into the box, with or without the 0x prefix.
  2. Check that it holds eight valid hexadecimal characters, the digits 0-9 and the letters A-F.
  3. Press the Convert button.
  4. Read the four decimal numbers in the result, joined by dots in the dot-decimal IP form you know from routers and settings screens.

The tool is case insensitive, so ac1f0a2d and AC1F0A2D give the same answer. A dot-separated entry such as AC.1F.0A.2D is read pair by pair in exactly the same way. If something is wrong with your entry, an on-screen message tells you what to fix before you try again.

Whenever you need to convert hexadecimal to IP notation by hand, the method is the same one a hexadecimal to IP converter follows, and the sections below walk through it so you can verify any result yourself.

How a Hex IP Address Stores an IPv4 Address

An IP address is a numerical label that identifies a device on a computer network that speaks the Internet Protocol. An IPv4 address is 32 bits long and is normally written as four numbers from 0 to 255 separated by dots. Each of those numbers is one octet, an eight-bit value. Type a string of 0s and 1s into the binary to decimal converter to get its decimal equivalent along with the working steps.

The hexadecimal number system uses sixteen symbols, 0-9 and A-F, so two hex digits cover exactly the 256 values one byte can hold. That is why a hexadecimal IP address always runs to eight characters: four octets multiplied by two digits each. Engineers favor this layout because every hex digit lines up with four binary digits, which makes the underlying bit pattern easy to read. The pair AC, for instance, is 1010 1100 in binary, and the pair 1F is 0001 1111.

A hexadecimal string is therefore nothing more than the raw bytes of the address written in a different numbering system. Decimal, hexadecimal and binary all describe the same quantity; only the notation changes, and a computer stores the binary version regardless of how a person chooses to view it.

How to Convert Hex to IP: Step-by-Step Method

You can do the whole job with a pencil. Take the example AC1F0A2D and work through it in three moves. Engineers building a network protocol message can check each integer field against a decimal to little endian hex converter before they write the firmware code.

Split the Hex String Into Each Octet

Split the eight characters into four pairs, reading from left to right: AC, 1F, 0A and 2D. Each pair is one byte of the address, and the order never changes.

Convert Each Pair With Place Values

Convert each pair to a decimal number by multiplying the left digit by 16 and adding the right digit. The left digit sits in the 16^1 place and the right digit in the 16^0 place, so the rule for a pair is:

$$\text{value} = (d_{1} \times 16) + (d_{0} \times 1)$$

Letters carry the values A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15. Applying the rule to every pair of the example gives the numbers below.

Convert Each Pair With Place Values
PositionHex pairCalculationDecimal value
1AC(10 × 16) + 12172
21F(1 × 16) + 1531
30A(0 × 16) + 1010
42D(2 × 16) + 1345

Combine the Values in Dotted Decimal Notation

Combine the four results with dots and you get 172.31.10.45. That is the whole conversion: split, convert, join. Because the second number is 31, this address falls in the 172.16.0.0 to 172.31.255.255 block that standards reserve for private networks, so it will never appear on the public internet.

Three-step flow showing the hex string AC1F0A2D split into AC, 1F, 0A and 2D, converted to 172, 31, 10 and 45, and joined as the IPv4 address 172.31.10.45
Splitting AC1F0A2D into pairs, converting each pair, and joining the results gives 172.31.10.45.

Want the single 32-bit integer instead? Weight each decimal value by a power of 256 and add the results:

$$N = (172 \times 256^{3}) + (31 \times 256^{2}) + (10 \times 256) + 45 = 2{,}887{,}715{,}373$$

Short Hex IP Values and Leading Zeros

The converter expects exactly eight characters, so a full address always needs eight, and a shorter entry has lost its zeros somewhere. A value like A0B1C is only five characters long. Pad it with leading zeros until it reaches eight digits (000A0B1C), and only then split it into pairs. The padded value reads 0.10.11.28, which shows why the zeros matter: without them every pair shifts and you land on a completely different address.

Dropped zeros also explain why the hex number for a low address looks short. The address 0.0.0.255 is stored as 000000FF, and many tools trim that to FF. Add the zeros back and the tool does the rest.

Troubleshooting a Hexadecimal IP Address That Will Not Convert

Most failed conversions come down to one of a few mistakes. The error messages are written to point straight at the cause:

  • Wrong length: anything other than eight hex characters is rejected, so check for a missing or extra digit.
  • Invalid characters: letters beyond F, spaces and stray symbols such as a trailing comma break the parse. Remove them first.
  • Wrong format: a plain number such as 2887715373 is in decimal format, so it needs a decimal-to-IP tool, because it is not hexadecimal at all.
  • IPv6 input: an IPv6 address uses 128 bits, far more than IPv4 offers, so it cannot be read as four octets.

Strip any 0x prefix or whitespace, count the characters, and run the value again. If you need to decode a longer dump, split it into eight-character chunks and process each one separately.

Decoding a Firewall Log Entry in Dot-Decimal IP Form

A support engineer at a small internet provider is reviewing a gateway log that prints source addresses in hex. One line stands out because it repeats 41 times in ten minutes: src=6440C807. Before touching any rule, the engineer wants to read that hex source field as an ordinary address and see whose traffic it is.

The value is pasted into the converter exactly as logged. The tool splits it into 64, 40, C8 and 07, then converts the pairs to 100, 64, 200 and 7. The converted address is 100.64.200.7, and its first two numbers fall inside the 100.64.0.0 to 100.127.255.255 block that RFC 6598 sets aside for carrier-grade NAT, so this is not a single customer's public address.

Decoding a Firewall Log Entry in Dot-Decimal IP Form
Logged valueConverted addressReference blockVerdict
6440C807100.64.200.7100.64.0.0/10 (64400000 to 647FFFFF)Shared NAT space

The converter's answer changes the plan. A deny rule on 100.64.200.7 would cut off every subscriber translated behind it, so the engineer uses the converted address to find the one NAT session responsible and blocks only that account.

Hex to Decimal Table of Private IPv4 Ranges

After the converter returns an address, compare its leading pair against these reserved private blocks, each of which has a recognizable hex signature. Spotting that pair tells you immediately whether a logged value belongs to an internal host.

Hex to Decimal Table of Private IPv4 Ranges
Private blockRangeHex range
10.0.0.0/810.0.0.0 to 10.255.255.2550A000000 to 0AFFFFFF
172.16.0.0/12172.16.0.0 to 172.31.255.255AC100000 to AC1FFFFF
192.168.0.0/16192.168.0.0 to 192.168.255.255C0A80000 to C0A8FFFF

The middle row is the one worth memorizing: anything that starts with AC1 followed by a digit from 0 to F is private, which is why the example above, AC1F0A2D, belongs to an internal LAN.

Bar over second-number values 0 to 255 showing the private range 16 to 31 and the hex IP example AC1F0A2D sitting at its top edge at 31
The second number 31 (hex 1F) is the last value of the private 172.16.0.0/12 block.

Why Developers Use Hex to IP Conversion

Hex addresses turn up wherever software works close to the wire, and the converter turns those raw values into readable addresses. Developers and programmers meet them in log files, debuggers and configuration dumps, while network engineers meet them in raw packets and IP headers, where each field is printed byte by byte. Firewall rules, routing tables and proxy settings sometimes store addresses in hex too, and embedded systems often keep hex as their default numeric style because it maps cleanly onto memory.

The same skill matters for low-level security work. In digital forensics and cybersecurity investigations, an analyst reads a hex address pulled from memory or a capture to learn which host was involved, and many protocols define their address fields as raw bytes.

Cross-Browser Testing With Hex Addresses

A web developer writing browser tests has one more reason to care. Many browsers accept an address in more than one spelling, so the dotted form 1.2.3.4 can also be typed as 0x01020304. Test cases that validate addresses should cover both forms, and a converter lets you generate the expected values and check your parser against them.

Going the other way is the reverse conversion. An IP to hex converter turns each of the four numbers into two hex digits, so 192.168.1.1 becomes C0A80101. If you only have the address as plain text, using an IP address to hex step first lets you check your work against this tool.

The same positional math powers the rest of the number base conversions you meet in networking. Hex to binary expands every digit into four binary digits, binary to hex does the opposite, and decimal to hex divides by 16 repeatedly. Hex to octal and hex to base64 follow the same grouping idea. Learn the pattern once and every one of these becomes routine.

About the author

Unnikrishnan P

Independent developer and designer

Unnikrishnan P is a banking and finance graduate and builds free, privacy-friendly web tools as an independent developer and designer. He wrote, built and checks the number base converters, encoders, bitwise calculators and color tools on HexCalculator.

  • Content author: Unnikrishnan P
  • Fact checked by: Unnikrishnan P. Each converter is checked against known test vectors and worked examples with known answers before it goes live.
  • Published Updated