๐Ÿฆ IP Animals
๐Ÿงฎ Subnetting & IP Math

IPv4 to Hexadecimal Converter

Convert any IPv4 address to hexadecimal โ€” per octet and as one full 32-bit value like 0xC0A80001 โ€” and decode hex right back to a dotted IP. All in your browser, nothing uploaded.

Accepts a leading 0x, dots between octets, or 8 bare hex digits.

IPv4 in base 16

Hexadecimal is a base-16 numbering system that maps neatly onto bytes: two hex digits cover every value from 00 to FF, which is exactly the 0โ€“255 range of a single IPv4 octet. That makes hex a compact, unambiguous way to write addresses, and it is why you will see IPs in hex inside packet captures, memory dumps and low-level networking code.

To convert, take each octet and write it as two hex digits, padding with a leading zero when needed. For 192.168.0.1: 192 is C0, 168 is A8, 0 is 00 and 1 is 01. Concatenated that gives the full 32-bit value 0xC0A80001, or per-octet C0.A8.00.01.

๐Ÿ” Where you will meet hex IPs

Tools like Wireshark, tcpdump and hex editors display addresses in hexadecimal because it lines up cleanly with the raw bytes on the wire. Recognising C0A80001 as 192.168.0.1 is a handy skill when reading packet headers.

Decoding hex back to an IP

The reverse is straightforward: strip any 0x prefix, dots or spaces, confirm you have eight hex digits, then split them into four pairs and read each pair as a byte. This converter is forgiving about formatting so you can paste hex however you copied it.

New to addressing in general? The guide on what an IP address is sets the scene, while IPv4 vs IPv6 explains why IPv6 leans on hexadecimal even more heavily. To see the same address in other forms, try the IP โ†’ Binary converter or the IP โ†’ Decimal converter. Every calculation here is client-side, so nothing you enter ever leaves your device.

Frequently asked questions

How do you convert an IP address to hexadecimal?

Convert each octet (0โ€“255) to two hexadecimal digits and join them. For 192.168.0.1 the octets become C0, A8, 00, 01, giving the full value 0xC0A80001 or per-octet C0.A8.00.01.

Why is each octet always two hex digits?

One octet is a single byte holding 0โ€“255, which always fits in two hex digits (00 to FF). Each octet is padded to two digits for a clean, fixed-width result.

Can I paste hex with or without 0x?

Yes. The reverse converter accepts hex with a leading 0x, with dots between octets, or as eight bare hex digits, stripping separators before decoding.

Does anything get uploaded?

No. Every conversion runs in your browser using JavaScript. Nothing you enter is transmitted or stored anywhere.

Want the theory? Read the guides โ†’ ยท Visit the zoo โ†’