WebToolsPlanet
Converter Tools

IP to Hex Converter

Enter a dotted IPv4 address to instantly get its 8-digit hexadecimal string, decimal integer, and binary equivalents.

Last updated: May 30, 2026

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What is IP to Hex Converter?

Hexadecimal representation of an IP address is widely used in network packet dumps, firewall rule files, packet capture tools (like Wireshark), and low-level system programming. Each IPv4 address is a 32-bit number, and 32 bits maps neatly to 8 hexadecimal digits (since each hex digit represents 4 bits).

To convert an IPv4 address to hex: 1. Convert each octet to its 2-digit hex equivalent. 2. Concatenate the four 2-digit hex values.

For example, 192.168.1.1: - 192 → C0 - 168 → A8 - 1 → 01 - 1 → 01 Result: 0xC0A80101

How to Use IP to Hex Converter

1

Type or paste your IPv4 address in dotted notation (e.g. 192.168.1.1).

2

The hexadecimal, decimal, and binary outputs update in real time.

3

Click any copy button to copy the result to your clipboard.

4

Click "Load Sample" to see an example conversion.

Common Use Cases

  • Reading hex addresses in Wireshark packet captures and network dumps.
  • Configuring firewall rules or ACLs that use hex IP notation.
  • Debugging embedded system code that handles IPs as hex constants.
  • Converting IPs for use in CSS color-like hex notation tricks.

Example Input and Output

The IPv4 loopback address 127.0.0.1 converts to the hex value 0x7F000001.

IPv4 Address
127.0.0.1
Hexadecimal
0x7F000001

Data Privacy

All conversions are performed entirely in your browser. No IP addresses are transmitted to any external server.

Frequently Asked Questions

Why is the hex value always 8 digits?
IPv4 uses a 32-bit address space, and 32 bits = 8 hexadecimal digits (each hex digit is 4 bits). Leading zeros are padded to ensure the result is always 8 characters.
Can I use this hex value in Wireshark filters?
Yes. Wireshark BPF filters and display filters both accept IP addresses in dotted decimal. However, hex values appear in packet byte views, and this tool helps you match what you see there.
Does this work with private IP ranges?
Yes. Any valid IPv4 address in the range 0.0.0.0 to 255.255.255.255 is supported, including private ranges like 192.168.x.x and 10.x.x.x.