IP to Hex Converter

Convert an IPv4 address to its hexadecimal representation.

About IP to Hex Conversion

An IP address is essentially a 32-bit number. While we usually represent it in dotted-decimal format (e.g., 192.168.1.1) for readability, computers process it as binary or hexadecimal data.

How it Works

Each octet of an IP address (the numbers between the dots) represents 8 bits, or 1 byte. In hexadecimal, each byte ranges from 00 to FF.

  • Example IP: 192.168.1.1
  • 192 = C0
  • 168 = A8
  • 1 = 01
  • 1 = 01
  • Result: C0A80101 (or 0xC0A80101)

Common Uses

  • Programming: Low-level network programming often requires IP addresses in hex format.
  • Analyzing Packets: Network sniffers and packet analyzers display IP headers in hex.
  • Obfuscation: Sometimes used to represent IPs in URLs (though modern browsers may block this).