Skip to main content
IP Range CalculatorPRO
Conversion & EncodingInstant Client-Side Tool

IPv4 Hexadecimal Converter

Convert addresses to hexadecimal.

IPv4 Hexadecimal Converter: inputs and results

Enter an IP address, CIDR prefix, or range. Then check its first and last address below.

Quick presets:

Calculated Boundaries & ParametersReady

Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Total Addresses256
Usable Host Range254

Key Capabilities

  • •100% Client-Side: Zero telemetry or server latency.
  • •RFC Compliant: Exact 32-bit and 128-bit integer precision.
  • •Quick Copy: Instant access to CIDR, mask, and range bounds.
  • •Cross-Platform: Works on desktop, tablet, and mobile browsers.

How IPv4 Hexadecimal Converter Works?

This tool works by converting each octet into 2 hexadecimal digits and joining the 4 pairs into an 8-digit hex value.

  1. Enter an IPv4 address

    Type an address such as 172.16.254.1.

  2. Convert each octet

    172 → AC, 16 → 10, 254 → FE, 1 → 01.

  3. Join the pairs

    The result is 0xAC10FE01.

  4. Show related forms

    The converter prints dotted hex (AC.10.FE.01) and the hex form used inside IPv6 mapped addresses (ac10:fe01).

IPv4 Hexadecimal Converter Formula

The formula is Hex digit pair = (floor(octet ÷ 16), octet mod 16), applied to each octet.

High digit

floor(octet ÷ 16)

Values 0–15 → 0–F.

Low digit

octet mod 16

Values 0–15 → 0–F.

Full value

0x + 8 hex digits

32 bits = 8 nibbles = 4 bytes.

Reverse

octet = high × 16 + low

Hex to decimal.

Worked example: 172.16.254.1

172 ÷ 16 = 10 r 12 → A C
 16 ÷ 16 =  1 r  0 → 1 0
254 ÷ 16 = 15 r 14 → F E
  1 ÷ 16 =  0 r  1 → 0 1
Hex = 0xAC10FE01

IPv4 Hexadecimal Converter Conversion Table

The table maps 10 IPv4 addresses to 32-bit hex, dotted hex, and binary of the first octet.

IPv4 AddressHexDotted HexFirst Octet Binary
0.0.0.00x0000000000.00.00.0000000000
10.0.0.10x0A0000010A.00.00.0100001010
127.0.0.10x7F0000017F.00.00.0101111111
169.254.1.10xA9FE0101A9.FE.01.0110101001
172.16.254.10xAC10FE01AC.10.FE.0110101100
192.168.0.10xC0A80001C0.A8.00.0111000000
198.51.100.2000xC63364C8C6.33.64.C811000110
224.0.0.2510xE00000FBE0.00.00.FB11100000
255.255.255.00xFFFFFF00FF.FF.FF.0011111111
255.255.255.2550xFFFFFFFFFF.FF.FF.FF11111111

What is IPv4 Hexadecimal Converter?

The IPv4 Hexadecimal Converter is a tool that converts an IPv4 address into its 8-digit hexadecimal form and back. 192.168.0.1 becomes 0xC0A80001.

Hex notation appears in packet dumps, memory views, Linux /proc/net files, PXE boot configuration file names, and IPv4-mapped IPv6 addresses. Each octet maps to exactly 2 hex digits, so conversion is direct.

Linux /proc/net/route stores addresses in little-endian hex, which reverses the byte order. 0100A8C0 in that file means 192.168.0.1.

What are the uses of IPv4 Hexadecimal Converter?

There are 4 main uses of the IPv4 Hexadecimal Converter, including packet analysis, PXE booting, and Linux diagnostics.

  • Reading packet dumps

    Hex dumps from tcpdump -X show addresses as 4 hex bytes.

  • Naming PXE boot files

    PXELINUX looks up configuration files named after the client address in hex, such as C0A80001.

  • Reading Linux kernel tables

    Files in /proc/net list addresses in hex.

  • Building IPv6 mapped addresses

    The hex form fills the last 2 groups of ::ffff:0:0/96 addresses.