Report Tool or Give Us Suggestions

IP to Hex Converter

Convert IPv4 addresses to hexadecimal formats instantly.

L ading . . .

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.

logo OnlineMiniTools

OnlineMiniTools.com is your ultimate destination for a wide range of web-based tools, all available for free.

Feel free to reach out with any suggestions or improvements for any tool at admin@onlineminitools.com. We value your feedback and are continuously striving to enhance the tool's functionality.

© 2026 OnlineMiniTools . All rights reserved.

Hosted on Hostinger

v1.10.0