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
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat 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
Type or paste your IPv4 address in dotted notation (e.g. 192.168.1.1).
The hexadecimal, decimal, and binary outputs update in real time.
Click any copy button to copy the result to your clipboard.
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.
127.0.0.10x7F000001Data 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.
Related Tools
Hex to IP Converter
Convert hexadecimal addresses (32-bit hex values) into standard dot-separated IPv4 addresses. Supports decimal integer and binary representation formatting.
IP to Decimal Converter
Convert a dotted-decimal IPv4 address to its 32-bit decimal integer value. Also shows hex and binary representations.
IP to Binary Converter
Convert dotted decimal IPv4 addresses into binary strings (dotted, spaced, or continuous 32-bit). Includes octet breakdown grid, decimal, and hex outputs.
Decimal to IP Converter
Convert decimal integers (32-bit integers) into standard dotted-decimal IPv4 addresses. Ideal for network engineers and database managers.
Binary to IP Converter
Convert 32-bit binary values into standard dot-separated IPv4 addresses. Supports visual octet breakdown, decimal, and hexadecimal output formats.
IP to Octal Converter
Convert a dotted-decimal IPv4 address to octal notation. Supports dotted octal and full 32-bit octal, plus decimal and hex outputs.

