Hex to IP Converter
Convert a hexadecimal value to an IPv4 address. Accepts 0xC0A80101, C0A80101, and dotted hex C0.A8.01.01 — with the per-byte math shown step by step.
100% client-side · zero network requests · batch modeIPv4 address
Per-byte calculation
| Byte | Hex | Math | Decimal | Binary |
|---|
| Input | IPv4 | 0x hex | Decimal | Class / scope |
|---|---|---|---|---|
| Paste values and press “Convert all”. | ||||
Worked examples
| Hex input | IPv4 address | Per-byte math | Note |
|---|---|---|---|
| 0xC0A80101 | 192.168.1.1 | C0=192, A8=168, 01=1, 01=1 | Private (RFC 1918), Class C |
| FFFFFFFF | 255.255.255.255 | FF=255 × 4 | Limited broadcast |
| 0x0 | 0.0.0.0 | 00=0 × 4 | Unspecified (this host) |
| 0x7F000001 | 127.0.0.1 | 7F=127, rest 0/0/1 | Loopback (localhost) |
| AC10041C | 172.16.4.28 | AC=172, 10=16, 04=4, 1C=28 | Private (RFC 1918), Class B |
| C0.A8.00.01 | 192.168.0.1 | C0=192, A8=168, 00=0, 01=1 | Dotted-hex input form |
| E0000001 | 224.0.0.1 | E0=224, rest 0/0/1 | Multicast, Class D |
| A9FE0001 | 169.254.0.1 | A9=169, FE=254, 00=0, 01=1 | Link-local (APIPA) |
How hex becomes an IP address
An IPv4 address is a 32-bit number, and 32 bits are exactly 8 hex digits — 2 digits per byte. The converter splits the hex into four pairs, turns each pair into decimal with 16 × high + low (A=10 … F=15), and joins the four decimals with dots. So 0A0002FE becomes bytes 0A 00 02 FE = 10, 0, 2, 254, i.e. 10.0.2.254. Hex shows up instead of dotted decimal in packet captures, firewall logs, firmware dumps, and socket APIs — this tool decodes it back to the familiar form.
Frequently asked questions
What hex formats does this converter accept?
Four notations: 0x-prefixed (0xC0A80101), plain 8-digit (C0A80101), dotted hex (C0.A8.01.01), and lowercase (c0a80101). Spaces and line breaks are ignored. Input shorter than 8 digits is left-padded with zeros, so FF becomes 000000FF, which is 0.0.0.255. Input longer than 8 digits or containing non-hex characters is rejected with an exact error position.
Is the hex input case-sensitive?
No. Uppercase and lowercase hex digits are treated identically: c0a80101 and C0A80101 both convert to 192.168.1.1. The tool normalizes everything to uppercase before splitting it into bytes.
What is 0xC0A80101 as an IP address?
0xC0A80101 is 192.168.1.1. The math per byte: C0 = 16 x 12 + 0 = 192, A8 = 16 x 10 + 8 = 168, 01 = 1, 01 = 1. As a 32-bit decimal integer it is 3232235777. The converter above shows this per-byte breakdown automatically for any input.
What IP address is FFFFFFFF? What about 7F000001?
FFFFFFFF is 255.255.255.255, the IPv4 limited broadcast address — every bit is set. 7F000001 is 127.0.0.1, the standard loopback (localhost) address. Two more landmarks: 00000000 is 0.0.0.0 (unspecified / this host) and E0000001 is 224.0.0.1 (a multicast address).
What happens if my hex string is shorter than 8 digits?
It is left-padded with zeros to 8 digits, matching how hex editors and packet captures treat short values. For example, ABC becomes 00000ABC, which converts to 0.0.10.188 (0A = 10, BC = 16 x 11 + 12 = 188). A single 0 becomes 00000000, which is 0.0.0.0.
How is this different from a decimal-to-IP converter?
The input base differs. This tool reads base-16 (hexadecimal) like C0A80101. A decimal-to-IP converter reads a base-10 32-bit integer like 3232235777, which is the same value written in decimal. Both produce 192.168.1.1. If your value looks like 3232235777 rather than C0A80101, use the Decimal to IP tool instead.
How is each byte of the IP calculated from hex?
Each pair of hex digits is one byte: decimal = 16 x (high digit) + (low digit), where A=10 through F=15. For AC10041C: AC = 16 x 10 + 12 = 172, 10 = 16, 04 = 4, 1C = 16 x 1 + 12 = 28, giving 172.16.4.28. The per-byte steps table under the result shows this arithmetic for every octet.
What do the class and scope labels mean?
Class is the legacy A/B/C/D/E grouping by first octet (A: 1-126, B: 128-191, C: 192-223, D: multicast, E: reserved). Scope is the practical meaning: Private (RFC 1918) covers 10.x.x.x, 172.16.x.x-172.31.x.x, and 192.168.x.x; Loopback is 127.x.x.x; Link-local is 169.254.x.x; Multicast is 224.x.x.x-239.x.x.x; plus broadcast, unspecified, CGNAT shared space, and public unicast.
Can I convert many hex values to IP at once?
Yes. Open the Batch tab and paste one hex value per line — any accepted notation works per line. The tool builds a table with the IPv4 address, 0x hex, 32-bit decimal, and class/scope for each line, flags invalid lines with their error, and lets you copy the whole table as tab-separated values for spreadsheets.
Is this hex to IP converter private? Does it send my data anywhere?
Yes, it is fully private. All conversion happens in JavaScript inside your browser — nothing you type is sent to any server. The page makes zero network requests for conversion, so it keeps working even if you disconnect from the internet after it loads.
Related tools
Free tool by NRTechStudio