Convert an IPv4 address into a decimal number or convert a decimal number back into an IPv4 address using our free online IP to Decimal Converter.
Enter an address such as 192.168.1.1 to get its decimal equivalent, 3232235777. The converter performs the calculation in your browser, without requiring an external lookup service.
Use the converter below to get started.
How to Use the IP to Decimal Converter
Our converter supports both IPv4 to decimal and decimal to IPv4 conversion.
- Choose a conversion: Select IP to Decimal or Decimal to IP.
- Enter your value: Type a valid IPv4 address, such as
192.168.1.1, or an unsigned decimal number, such as3232235777. - Click Convert: The tool calculates the equivalent value and displays the result.
- Copy your result: Use the Copy button to copy the converted value for your records, calculations or network configuration.
You can also select Try example to see how the conversion works or Clear to start again.
What Is an IP to Decimal Converter?
An IP to Decimal Converter is a networking tool that represents an Internet Protocol version 4 (IPv4) address as one unsigned 32-bit decimal integer.
IPv4 addresses are normally written as four numbers separated by periods. This format is called dotted-decimal notation.
For example:
- IPv4 address:
192.168.1.1 - Decimal integer:
3232235777
Both values represent the same 32-bit IPv4 address. The conversion changes its numerical representation, not the address itself.
Each IPv4 address contains four 8-bit sections called octets. Every octet has a value between 0 and 255.
The complete 32-bit value can be represented by an unsigned decimal integer ranging from 0 to 4,294,967,295.
How Does IP to Decimal Conversion Work?
The converter combines the four IPv4 octets using powers of 256.
For an IPv4 address written as A.B.C.D, the formula is:
Decimal = (A × 256³) + (B × 256²) + (C × 256) + D
Example: Convert 192.168.1.1 to Decimal
Separate the address into its four octets:
| Octet | Calculation | Result |
|---|---|---|
| 192 | 192 × 16,777,216 | 3,221,225,472 |
| 168 | 168 × 65,536 | 11,010,048 |
| 1 | 1 × 256 | 256 |
| 1 | 1 × 1 | 1 |
Adding these results gives:
3,221,225,472 + 11,010,048 + 256 + 1 = 3,232,235,777
Therefore, 192.168.1.1 converts to 3232235777.
The calculation is exact and requires no rounding.
Common IPv4 to Decimal Examples
The table below shows examples of IPv4 addresses and their corresponding unsigned decimal values.
| IPv4 address | Decimal value |
|---|---|
| 192.168.1.1 | 3232235777 |
| 192.168.0.1 | 3232235521 |
| 10.0.0.1 | 167772161 |
| 8.8.8.8 | 134744072 |
| 0.0.0.0 | 0 |
| 255.255.255.255 | 4294967295 |
These examples show that the same conversion method works across the complete IPv4 numerical range, including addresses with special networking purposes.
How to Convert Decimal to IP Address
You can also reverse the calculation.
For example, enter 3232235777 in the Decimal to IP section.
The converter separates the 32-bit integer into four 8-bit octets and displays:
192.168.1.1
This reverse conversion is useful when a network configuration, log, database or technical record contains an IPv4 address stored as an integer.
When Is an IP to Decimal Converter Useful?
An IPv4 decimal converter can help when working with network administration tasks, IP address databases, programming or technical troubleshooting.
Some systems store IPv4 addresses as numerical values instead of familiar dotted addresses. Converting those values makes them easier to compare or interpret.
For example, a home router in Pakistan may use a private IPv4 address such as 192.168.1.1. You can convert that address to its decimal integer representation when checking network-related data.
However, the decimal number alone does not identify the internet provider, the physical location of a device or whether the address is reachable over the internet.
Supported Inputs and Limitations
This tool supports standard IPv4 addresses consisting of exactly four decimal octets.
Each octet must be between 0 and 255. The converter rejects invalid values such as 192.168.1.300, incomplete addresses, and octets containing leading zeros such as 192.168.001.1.
For reverse conversion, enter an unsigned whole number between 0 and 4294967295, without commas, decimal points, negative signs or unnecessary leading zeros.
Important: This converter supports IPv4 only. IPv6 addresses use a 128-bit format and cannot be converted using this 32-bit calculation.
The tool performs a numerical conversion. It does not perform a DNS lookup, identify IP ownership, measure internet speed or test whether an address is active. Converting an IP address into decimal form also does not conceal or anonymize it.
Privacy and Processing
The converter uses JavaScript to calculate results directly within your browser. The entered value is not submitted to an external IP lookup service by the converter.
No account registration or external API is required for the conversion.
For information about the website’s general data practices, please review our Privacy Policy.
Convert Your IPv4 Address
Enter your IPv4 address in the converter above to calculate its decimal value. You can also switch to Decimal to IP whenever you need to restore the familiar four-number address format.
The result is available for copying and use in network calculations, documentation or other systems that require an IPv4 address represented as an unsigned decimal integer.