IP Address Converter

Convert an IPv4 address between all common formats. Auto-detects the input format. Everything runs in your browser.

Detected format: —

Conversion Results

Standard
32-bit
0x prefix
0-prefixed
32-bit
::ffff:

About IP Formats

Dotted Decimal — The standard IPv4 notation (e.g., 192.168.1.1). Each octet is a decimal number 0-255.

Decimal — A single 32-bit unsigned integer. Used in some databases and APIs.

Hexadecimal — The IP as a single hex value. Common in low-level networking and packet analysis.

Octal — Each octet in octal. Rarely used but supported by some tools and browsers.

Binary — The full 32-bit binary representation. Useful for understanding subnetting and masks.

IPv6-Mapped — An IPv4 address embedded in an IPv6 address using the ::ffff: prefix.

About IP address conversion

An IPv4 address such as 192.168.1.1 is really just a 32-bit number written as four 8-bit octets. This converter shows that value in every common representation at once — dotted-decimal, a single decimal integer (3232235777), hexadecimal (0xC0A80101), binary, and octal — and converts back from any of them.

The single-integer form is especially useful in software and databases: storing an IP as one 32-bit number is compact and turns range checks (“is this address inside this block?”) into simple arithmetic. Firewall rules, geolocation databases, and access-control lists often work with these numeric forms internally.

The tool also handles IPv6, expanding and compressing addresses between their full and shorthand notations.

Frequently asked questions

How do I convert an IP address to decimal or binary?

Enter any IPv4 address such as 192.168.1.1 above and it is converted instantly to its decimal (integer), hexadecimal, binary, and octal forms. You can also paste a decimal integer to convert it back to dotted-quad notation.

What is the decimal value of an IP address?

It is the single 32-bit number the four octets represent. For example 192.168.1.1 is 3232235777 in decimal — handy for storing IPs compactly or doing range maths in databases and firewalls.

Does this convert IPv6 addresses too?

Yes. It expands and compresses IPv6 addresses and shows both their full and shorthand notations alongside the IPv4 conversions.