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.

