IPv4 Address Converter
Convert an IPv4 address to decimal, hexadecimal, binary, and IPv6 mapped format instantly. All representations shown side by side in a single view.
What Is an IPv4 Address Converter?
An IPv4 Address Converter takes a standard IPv4 address (like 192.168.1.1) and instantly shows you all of its equivalent representations: a 32-bit decimal integer, a hexadecimal value, the raw binary form, and the IPv6 mapped address in both full and short notation. Instead of switching between separate tools for each format, this converter gives you every representation on one page.
How Does It Work?
Every IPv4 address is actually a 32-bit number. The familiar dotted-decimal format (e.g., 192.168.1.1) is just a human-readable way to split that number into four 8-bit octets. This tool takes each octet, converts it to its numeric value, and recomputes the address into other formats:
- Decimal: The full 32-bit integer value of the address, useful for database storage and network calculations.
- Hexadecimal: The address expressed as a base-16 number, often used in low-level networking and debugging.
- Binary: The raw 32-bit binary representation that shows exactly how the address looks at the hardware level.
- IPv6 Mapped (full): The IPv4 address embedded in a standard IPv6 address format with the
::ffff:prefix, padded to eight 16-bit groups. - IPv6 Mapped (short): The same mapped address using the compressed
::ffff:prefix notation.
How to Use the IPv4 Address Converter
- Type or paste an IPv4 address into the input field (e.g., 10.0.0.1).
- The tool validates the address automatically and shows an error if it is invalid.
- The decimal integer value appears in a prominent card on the left.
- The right panel lists all five equivalent representations (decimal, hexadecimal, binary, IPv6 full, IPv6 short).
Frequently Asked Questions
Explore other IP representations with the IPv4 to IPv6 Converter, IP to Hex Converter, or IP to Binary Converter.
Frequently Asked Questions
What is an IPv4 address?
An IPv4 (Internet Protocol version 4) address is a 32-bit number that identifies a device on a network. It is usually written as four decimal octets separated by dots, such as 192.168.1.1. Each octet ranges from 0 to 255.
Why would I need to convert an IPv4 address to decimal?
Network databases and APIs often store IP addresses as single integer values for efficient indexing and comparison. Converting an IP to its 32-bit decimal form makes it easy to sort, range-query, and compare IP addresses programmatically.
What is an IPv6 mapped IPv4 address?
An IPv6 mapped IPv4 address embeds an IPv4 address inside an IPv6 address using the prefix ::ffff:0:0/96. For example, ::ffff:192.168.1.1. This format is used when IPv6-only applications need to communicate with IPv4 hosts via translation mechanisms.
How accurate are the conversions?
All conversions are performed client-side using standard JavaScript arithmetic and are mathematically exact. There is no loss of precision because the 32-bit integer range (0 to 4,294,967,295) fits comfortably within JavaScript's safe integer range.
What happens if I enter an invalid address?
The tool validates your input in real time. If the address does not match the IPv4 format (four octets between 0 and 255), a clear error message is displayed and the output fields remain empty until the input is corrected.