Tools

Home
Binary to IPBinary to HexDecimal to BinaryHex to Base64Base64 Encode/Decode

IP to Hex Converter

Convert IPv4 addresses to hexadecimal representation online. Supports multiple IPs, one per line.

Your files never leave your browser
INPUT (IPv4 ADDRESSES)0 lines
OUTPUT (HEXADECIMAL)0 values
Ready·IPv4 to Hex | Plain uppercase

Paste IPv4 addresses and get their hex equivalents — 192.168.0.1 becomes C0A80001, with options for 0x-prefix, dotted, or colon-separated output. Handy when you're debugging packets or writing firewall rules that expect hex. And everything runs in your browser. Nothing gets uploaded.

How to Use

Enter IPv4 addresses in the left panel, one per line. Standard dotted-decimal notation like 192.168.0.1.

Choose output format -- plain (C0A80001), 0x-prefixed, dotted hex, or colon-separated hex bytes.

Click Convert or enable Live mode for instant conversion as you type.

Copy the result using the Copy Output button. Each IP address produces one line of hex output.

Frequently Asked Questions

How does IP to hex conversion work?

Each octet (number between the dots) of an IPv4 address is a value from 0 to 255, which fits in exactly one byte (two hex digits). The tool converts each octet to its two-digit hexadecimal equivalent and combines them. For example, 192.168.0.1 becomes C0.A8.00.01 because 192=C0, 168=A8, 0=00, 1=01.

What output formats are available?

Four formats: Plain concatenates all hex digits (C0A80001); 0x-prefixed adds the standard hex prefix (0xC0A80001); Dotted separates each octet with dots (C0.A8.00.01); Colon separates with colons (C0:A8:00:01). You can also choose between uppercase and lowercase hex letters.

Can I convert multiple IPs at once?

Yes. Enter one IP address per line and the tool will convert all of them simultaneously. Each input line produces a corresponding output line. Invalid lines are flagged with an error message in the output.

What IP formats are accepted?

The tool accepts standard IPv4 dotted-decimal notation (e.g., 192.168.0.1). Each octet must be a number from 0 to 255, and there must be exactly four octets separated by dots. Leading zeros in octets are accepted (e.g., 010.000.000.001).

Why is IP to hex conversion useful?

IP-to-hex conversion is commonly used in networking, packet analysis, programming, and firewall configuration. Hexadecimal representation is compact and maps directly to the binary representation of IP addresses. It is also used in URL encoding, memory-mapped registers, and low-level network protocol debugging.

Share: