IP to Hex - IPv4 Hex Converter

IPv4 Input

Input Rules

Enter exactly four decimal octets separated by dots. Each octet must be a whole number from 0 to 255. IPv6 and hostnames are intentionally rejected.

Ready

Octets

0

Hex Length

0

Class

-

Private

-

info

Validation

Enter an IPv4 address and convert it locally.

Compact Hex

-

0x Hex

-

Byte Separated

-

Decimal Integer

-

Byte Breakdown

#DecimalHexBinary
No conversion yet.

Report

-

IPv4 conversion

IP to hex converter for IPv4 byte values

This IP to Hex converter turns a dotted decimal IPv4 address into hexadecimal formats used in packet notes, embedded networking, firewall documentation and low-level debugging. Enter one IPv4 address, choose uppercase or lowercase output, pick a byte separator, then review compact hex, 0x-prefixed hex, byte-separated hex, decimal integer output and the byte table. Each octet is validated and mapped to one two-character hex byte, so the result stays tied to the original IPv4 address instead of guessing from free-form text.

Compact and 0x-prefixed hex

Generate a compact eight-character IPv4 hex value and the same value with a 0x prefix for code, reports or technical notes.

Byte-separated output

Choose no separator, colon, hyphen, dot or space output so each IPv4 octet remains readable as its own hex byte.

Validation and byte breakdown

Strict IPv4 validation rejects IPv6, hostnames, leading zeroes and invalid octets. The table shows every byte as decimal, hex and binary.

How to convert IP to hexadecimal

  1. 1. Enter an IPv4 address. Use dotted decimal notation such as 192.168.1.1.
  2. 2. Select hex case. Choose uppercase for common network notation or lowercase when matching code style.
  3. 3. Pick a separator. Use compact output or separate bytes with colons, hyphens, dots or spaces.
  4. 4. Click Convert. The result panel updates with compact, prefixed and byte-separated hex output.
  5. 5. Inspect each byte. Confirm how each decimal octet maps to its hex and binary equivalents.
  6. 6. Copy or download. Copy compact hex or download the TXT report for a ticket, lesson or debug note.

Where IPv4 hex output helps

Packet and protocol debugging

Hex bytes are easier to compare with packet captures, protocol docs and raw byte dumps than dotted decimal values.

Firewall and embedded workflows

Use compact or byte-separated hex when documenting ACLs, firmware settings, embedded network fields or config formats that expect hex bytes.

CIDR and byte reasoning

Compare hex bytes with the IP to Binary converter and CIDR Calculator when checking masks and octet boundaries.

Support and QA notes

Export a repeatable report that includes the original IPv4 address, compact hex, prefixed hex, decimal integer and byte table.

Input and output guidance

Valid input

Use exactly four decimal octets separated by dots. Each octet must be a whole number from 0 to 255, with no leading zeroes.

Expected output

192.168.1.1 becomes compact hex C0A80101, prefixed hex 0xC0A80101 and byte-separated hex such as C0:A8:01:01.

Octet mapping

Each IPv4 octet maps to one hex byte: 192 is C0, 168 is A8, and 1 is 01. The table keeps that mapping visible.

Limitations, privacy and accuracy

This page performs local numeric conversion for IPv4 dotted decimal input only. It does not support IPv6, resolve hostnames, run DNS lookups, check ownership, geolocate addresses, ping hosts, scan ports or confirm uptime. The class-style and private-range labels are quick interpretation aids, not routing policy. Because the conversion runs in browser JavaScript, the IP address does not need to be sent to a server to calculate compact, prefixed or byte-separated hex output.

Related Network Tools

IP to Hex FAQ

What does this IP to hex converter accept?

It accepts one dotted decimal IPv4 address with exactly four octets. Each octet must be a whole number from 0 to 255.

How does an IPv4 address become hexadecimal?

Each decimal octet is converted to one two-character hex byte. For example, 192 becomes C0, 168 becomes A8, 1 becomes 01 and 1 becomes 01.

What is the difference between compact and byte-separated hex?

Compact hex joins the four bytes into one value such as C0A80101. Byte-separated hex keeps the bytes visible with a separator such as C0:A8:01:01.

Does IP to Hex support lowercase or 0x-prefixed output?

Yes. You can switch the hex case, view the 0x-prefixed output, and choose a byte separator for the separated value.

Does this converter support IPv6?

No. This page converts IPv4 dotted decimal addresses only. IPv6 uses 128-bit notation and is outside this converter's scope.

Does this tool run DNS, geolocation or live network checks?

No. The conversion runs locally in your browser. It does not perform DNS lookup, geolocation, ownership lookup, ping, port checks or uptime testing.