Home All Tools About Search Tools

IP to Hex Converter

Convert IPv4 addresses to hexadecimal format. Quickly convert a list of IP addresses to their hexadecimal representation.

Enter multiple IP addresses separated by new lines and click "Convert to Hex" to get the hexadecimal representations.
Need to convert hex to IP? Go to Hex to IP Converter →

IP to Hex Converter: Convert IPv4 Addresses to Hexadecimal

The IP to Hex Converter tool converts IPv4 addresses into their hexadecimal equivalents. This tool provides two output formats: dotted hexadecimal notation and concatenated hexadecimal with 0x prefix.

Supported Output Formats

1. Dotted Hexadecimal: C0.A8.01.01
2. Concatenated Hexadecimal: 0xC0A80101
Note: Results are shown in uppercase for consistency and readability.

Example Conversion: 192.168.1.1

Step-by-step conversion:
192 (decimal) = C0 (hex)
168 (decimal) = A8 (hex)
1 (decimal) = 01 (hex)
1 (decimal) = 01 (hex)
Result: C0.A8.01.01 or 0xC0A80101

How to Use This Tool

  1. Enter IP addresses in the left textarea (one per line)
  2. Click "Convert to Hex" to generate hexadecimal representations
  3. View the results in the right textarea
  4. Use "Copy Hex" to copy all hexadecimal values to clipboard
  5. Use "Clear" to reset both fields
  6. Use "Fill Example" to load sample IP addresses

Common IP to Hex Conversions

IP Address Dotted Hex Concatenated Hex
192.168.1.1 C0.A8.01.01 0xC0A80101
127.0.0.1 7F.00.00.01 0x7F000001
255.255.255.255 FF.FF.FF.FF 0xFFFFFFFF
0.0.0.0 00.00.00.00 0x00000000

Frequently Asked Questions (FAQ)

What is IP to Hex Conversion?
IP to hex conversion is the process of converting an IPv4 address (e.g., 192.168.1.1) into its hexadecimal representation (e.g., C0.A8.01.01 or 0xC0A80101). Hexadecimal is base-16 number system commonly used in programming and networking.

Why convert IP to hexadecimal?
Hexadecimal representation is compact and commonly used in network programming, debugging, and configuration files. It's easier to read than binary and is often used in firewall rules, routing tables, and memory dumps.

What hex formats are available?
This tool provides two formats: 1) Dotted hex (C0.A8.01.01) and 2) Concatenated hex (0xC0A80101). The dotted format separates each octet with dots, while concatenated combines them into a single hex value.

Can I convert IPv6 addresses?
This tool is designed for IPv4 addresses only. IPv6 addresses have their own hexadecimal representation format and would require a different converter.

How is the conversion calculated?
Each decimal octet (0-255) is converted to two-digit hexadecimal. For example, 192 decimal = C0 hex, 168 decimal = A8 hex, 1 decimal = 01 hex.

Back to all tools
Instant Results
Privacy First
Browser Based
100% Free