IP to Hexadecimal Converter

Convert IPv4 and IPv6 addresses to hexadecimal format instantly. Supports batch conversion, CIDR notation, subnet masks, and detailed network analysis.

Supported IP Formats: IPv4 (e.g., 192.168.1.1) and IPv6 (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334)

Hexadecimal Format: IPv4 converts to 8-digit hex, IPv6 converts to 32-digit hex

Single IP Conversion
Batch IP Conversion
IPv4
IPv6
Enter an IPv4 address with optional CIDR notation (e.g., /24 for subnet mask)
192.168.1.1
10.0.0.1
172.16.0.1
8.8.8.8 (Google DNS)
/24 Subnet
Leave blank if using CIDR notation
Show Advanced Options
Converting...

Understanding IP Addresses and Hexadecimal

Hexadecimal (base-16) representation of IP addresses is commonly used in network programming, configuration files, and security analysis. It provides a more compact and readable format compared to binary.

IPv4 Hexadecimal Formats:

Dotted Hex: C0.A8.01.01 (each octet converted to two hex digits)

Continuous Hex: C0A80101 (8-character string)

0x Notation: 0xC0A80101 (commonly used in programming)

IPv6 is already in hexadecimal format, but can be converted to different representations for analysis.

Hexadecimal Number System

Decimal Binary Hexadecimal Example IP Octet
0 0000 0 0.0.0.0
1 0001 1 0.0.0.1
10 1010 A 0.0.0.10
15 1111 F 0.0.0.15
192 11000000 C0 192.0.0.0
255 11111111 FF 255.255.255.255

Common Uses of Hexadecimal IP Representation

1

Network Programming: Hexadecimal IP addresses are often used in socket programming and network packet analysis tools like Wireshark.

2

Configuration Files: Some network devices and software use hexadecimal notation in configuration files for compact representation.

3

Security Analysis: Hexadecimal representation is useful for analyzing memory dumps, log files, and reverse engineering network protocols.

Converter Features:

  • Supports both IPv4 (8-digit hex) and IPv6 (32-digit hex) addresses
  • Multiple output formats: dotted, continuous, colon-separated, 0x notation
  • Batch conversion for multiple IP addresses at once
  • IPv4 subnet calculations with CIDR notation
  • Hexadecimal visualization with color-coded digits
  • Download results as text file
  • Detailed statistics for batch conversions

Frequently Asked Questions

Hexadecimal representation is more compact than binary and easier to read than long binary strings. It's commonly used in network programming, debugging, security analysis, and low-level system configurations where memory addresses and data are often represented in hex.

Dotted hex (e.g., C0.A8.01.01) separates each octet with dots, making it easy to correlate with the original IP address. Continuous hex (e.g., C0A80101) removes separators, creating a compact 8-character string for IPv4. Continuous format is often used in programming and database storage.

Yes! IPv6 addresses are natively represented in hexadecimal, but our converter can transform them into different formats. It can expand compressed IPv6 addresses, normalize them to full 32-digit hex, or convert to other formats like continuous hex without colons.

The decimal representation (e.g., 3232235777 for 192.168.1.1) is the 32-bit integer value of the IPv4 address. This is calculated by concatenating the four octets into a single 32-bit number. It's useful in programming contexts where IP addresses need to be stored or compared as integers.

The conversion is mathematically precise. Each octet (0-255) is converted to its exact two-digit hexadecimal equivalent. For IPv6, each 16-bit segment is converted to its exact four-digit hexadecimal equivalent. The converter handles all edge cases including zero-padding for consistent formatting.