IP to Hex Converter
Convert IPv4 addresses to hexadecimal formats instantly.
IP to Hex Converter
The IP to Hex Converter converts IPv4 addresses into hexadecimal in two useful formats:
dotted hex (like 7f.00.00.01) and compact hex with prefix (like 0x7f000001).
Paste one IP per line and get instant results.
How it works
Each IPv4 address has four octets. Every octet is converted from decimal (0-255) to a two-digit hexadecimal value. The tool then combines the values in dotted and compact format so you can use whichever format your workflow needs.
Common use cases
- Network debugging and low-level packet analysis
- Firewall and router rule conversion checks
- Security logs that store IPs as hex
- Learning IPv4 number-system conversions
Example
Input: 127.0.0.1
Output: 7f.00.00.01 (0x7f000001)
Frequently Asked Questions
Does this tool support IPv6?
No. This converter is designed for IPv4 only.
Can I convert multiple IP addresses at once?
Yes. Enter one IPv4 address per line and the tool converts all valid lines in one pass.
What happens if an IP is invalid?
The tool shows a validation error so you can fix the input before conversion.
Related tools
Your recent visits