IP to Hex Converter – Convert IP Addresses Instantly

April 27, 2026

💻 IP to Hex Converter

Convert IPv4 and IPv6 addresses to hexadecimal, binary, decimal and more — with full octet-by-octet breakdown

⚡ Quick Presets
⚙️ Conversion Settings
✅ Conversion Results
📊 Decimal to Hex Reference (All 256 Values)
00
Dec 0 → Hex
0A
Dec 10 → Hex
80
Dec 128 → Hex
FF
Dec 255 → Hex
C0
Dec 192 → Hex
A8
Dec 168 → Hex
01
Dec 1 → Hex
FE
Dec 254 → Hex
📋 Common IPv4 Addresses — Decimal & Hex
IP Address Hex (0x Prefix) Hex (Dotted) Purpose
192.168.1.10xC0A80101C0.A8.01.01Home Router Default Gateway
192.168.0.10xC0A80001C0.A8.00.01Alternate Home Router
10.0.0.10x0A0000010A.00.00.01Private Class A Gateway
172.16.0.10xAC100001AC.10.00.01Private Class B Gateway
255.255.255.00xFFFFFF00FF.FF.FF.00Subnet Mask /24
255.255.255.2550xFFFFFFFFFF.FF.FF.FFBroadcast (All Hosts)
0.0.0.00x0000000000.00.00.00Wildcard / Default Route
127.0.0.10x7F0000017F.00.00.01Localhost / Loopback
8.8.8.80x0808080808.08.08.08Google Public DNS
1.1.1.10x0101010101.01.01.01Cloudflare DNS
🔧 Subnet Masks — CIDR, Decimal & Hex
CIDR Decimal Mask Hex Mask Usable Hosts
/8255.0.0.00xFF00000016,777,214
/16255.255.0.00xFFFF000065,534
/24255.255.255.00xFFFFFF00254
/25255.255.255.1280xFFFFFF80126
/26255.255.255.1920xFFFFFFC062
/27255.255.255.2240xFFFFFFE030
/28255.255.255.2400xFFFFFFF014
/30255.255.255.2520xFFFFFFFC2
/32255.255.255.2550xFFFFFFFF1 (Host Route)
🗺 IPv4 Address Classes — Ranges & Hex
Class Range (Decimal) Hex Start Hex End
Class A1.0.0.0 – 126.255.255.2550x010000000x7EFFFFFF
Class A Private10.0.0.0 – 10.255.255.2550x0A0000000x0AFFFFFF
Class B128.0.0.0 – 191.255.255.2550x800000000xBFFFFFFF
Class B Private172.16.0.0 – 172.31.255.2550xAC1000000xAC1FFFFF
Class C192.0.0.0 – 223.255.255.2550xC00000000xDFFFFFFF
Class C Private192.168.0.0 – 192.168.255.2550xC0A800000xC0A8FFFF
Loopback127.0.0.0 – 127.255.255.2550x7F0000000x7FFFFFFF
Multicast224.0.0.0 – 239.255.255.2550xE00000000xEFFFFFFF
📐 Hex Digit Reference
Hex Digit Decimal Binary (4-bit) Note
000000Zero nibble
1 – 91 – 90001 – 1001Same as decimal
A101010First letter digit
B111011 
C121100 
D131101 
E141110 
F151111Max nibble value
FF25511111111Max octet (8-bit)
0x prefixN/AN/ADenotes hex notation
💡 Conversion Tip: Each IPv4 octet (0–255) converts to exactly 2 hex digits. The full IPv4 address becomes 8 hex characters (32 bits). Divide the decimal value by 16: the quotient is the first hex digit, the remainder is the second. For example: 192 ÷ 16 = 12 remainder 0, so C0 in hex.
💡 IPv6 Hex Tip: IPv6 addresses are already expressed in hexadecimal notation as eight groups of four hex digits separated by colons (e.g. 2001:0db8:85a3::8a2e:0370:7334). Expanding compressed IPv6 (with ::) requires filling in omitted groups of 0000 until you have exactly 8 groups (32 hex digits total).

Convert IP address to Hex form is surprisingly easy, when one understands the process. For instance, 192.168.1.1 turns to C0A80101 in Hex. Yes it seems weird at first sight, but everything clears up, if one divides it part by part.

Here the basic idea: split your IP address in four separate parts. Each of those one calls an octet. Later, one converts every octet from decimal to two-digit Hex value.

How to Convert an IP Address to Hex

When the Hex result has only one figure, one adds a zero before it, so that everything stays at two signs. Then, one ties all four Hex values in one string with eight characters.

Allow me show it with 192.168.1.1. We start with 192: share it by 16, and one receives 12 with remainder 0, so C0 in Hex. Then comes 168.

Sharing by 16, gives 10 and 8, what becomes A8. Later the 1: because it is under 16, simply add a zero in fornt, making 01. Tie everything, and done: C0A80101.

Free online converters do all this trouble for you for free. Simply enter your IP address in the field, click the button, and get the Hex match almost right away. No cost, no limit, nothing stops you.

Many of those tools go even further: they also give conversions too decimal, binary or octal, if you need it in other form.

The most handy tools work both ways. You can enter a Hex IP and receive the usual dot separated decimal format back. Some converters accept Hex IP with dots, like 7f.00.00.01, while others prefer it as one long sequence, for instance 0x7f000001.

Either way, good tools handle both.

Here something notable: every number between those dots shows one byte. That byte ranges between 0 and 255 in decimal, or between 00 and FF in Hex thinking. Actually, some say, that forms like C0:A8:00:01, the Hex version of 192.168.0.1; stay better in the mind than the decimal form.

It is simply preference, at the end of the day.

One could write an IP address as whole binary, only a long chain of ones and zeros. Or even as one huge decimal number. But Hex hits that nice middle point, because it is shorter than binary, but still very useful for programming and network tasks.

In Python one can handle such conversions easily, with built-in functions, that split the IP, change every part, and later tie everything. It helps web builders andprogrammers, that find it surprisingly handy.

IP to Hex Converter – Convert IP Addresses Instantly

Related posts

Leave a Comment