Report

Help us improve this tool

IP to Hex Converter

Convert IPv4 addresses to hexadecimal formats instantly.

O M T

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. For IPv6 conversions, use the IPv6 to Binary Converter, or try the Binary to IP Converter.

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.