Skip to content
ZeroServer.tools

IP to Hex Converter

Convert a dotted-decimal IPv4 address to an 8-digit hex string, and back.

Hex Result
C0A80101
Per-Octet Breakdown
Octet 1
192
0xC0
Octet 2
168
0xA8
Octet 3
1
0x01
Octet 4
1
0x01
0xC0A80101

How IP to Hex conversion works

An IPv4 address is four decimal octets (0–255) separated by dots, such as 192.168.1.1. Each octet fits in a single byte, so it can be written as exactly two hex digits (00–FF). Converting an IP to hex means converting each octet to its two-digit hex form and concatenating them in order — no separators — to produce an 8-digit hex string that represents the full 32-bit address, e.g. 192.168.1.1 becomes C0A80101.

This format is used in DHCP client identifiers, router and firewall logs, some URL-encoding tricks, and low-level network debugging where addresses are represented as raw 32-bit hex values. This tool also converts in the opposite direction — paste an 8-digit hex string to recover the dotted-decimal IPv4 address. All conversion happens entirely in your browser; nothing is sent anywhere.

Private & free — this tool runs entirely in your browser.

Recommended: IndieKit Ship your Next.js startup in days.affiliate

Related Converters tools