IP to Number Converter

Convert IPv4 addresses to 32-bit integers and back, with hex, binary, octal, and address class details. Free IP to number converter.
Input
Results Enter an IPv4 address to start.
Decimal number - Converts live as you type
IPv4 address - Dotted decimal notation
Hexadecimal -
Binary -
Octal -
Signed 32-bit -
Reversed octets -
Address class -
Every IPv4 address is a single unsigned 32-bit integer between 0 and 4,294,967,295. The signed 32-bit value is what some programming languages, such as PHP's ip2long, return.
Tool Introduction

Convert between IPv4 addresses and their 32-bit integer values in both directions. Every IPv4 address is one unsigned integer between 0 and 4,294,967,295, and this converter shows the decimal, hexadecimal, binary, and octal forms side by side.

Integers are the format used by IP range calculations, geo-IP databases, and firewall processing. The page also flags the address class, the signed 32-bit value some languages return, and the reversed octets used by DNS blocklists.