We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Was this tool helpful to use?
Your feedback helps us make it better
Convert IP addresses to decimal integers and vice versa. Supports both IPv4 and IPv6 formats. Ideal for development, debugging, and network analysis.
Enter IP or number to start conversion
Overview
Understand what the tool solves, how it works, and the boundaries of its data.
This converter maps one IPv4 or IPv6 address to an unsigned decimal integer and can turn an in-range integer back into an address when you select the version. The result is a positional representation of the address bits. It is not a lookup: it does not identify a device, owner, location, network route, or whether the address is reachable.
IPv4 uses 32 bits split into four decimal octets. For a.b.c.d, the integer is a × 256³ + b × 256² + c × 256 + d. Thus 192.168.1.1 maps to 3232235777. IPv6 uses 128 bits, so its decimal representation can be much longer. The selected version matters even when the output is just digits.
Guide
Follow the workflow and verify inputs and outputs with practical examples.
Select IP-to-number for an address input or number-to-IP for a decimal integer input.
Use the version that matches the address or integer range. The tool does not infer the version from a decimal integer.
For IPv4, enter four dot-separated octets, such as 192.168.1.1. For IPv6, use colon-separated hexadecimal groups, such as 2001:db8::1. The resulting integer or address appears as text with a copy control.
To reverse the IPv4 example, choose number-to-IP and enter 3232235777. A valid IPv4 integer is from 0 through 4,294,967,295. IPv6 accepts a value from 0 through the maximum value representable by 128 bits.
Use cases
See how the tool fits into real work and everyday tasks.
Convert a sample address to decimal when comparing code that stores an address as a number. Convert it back afterward to verify the same address is recovered.
If a log or dataset contains a decimal IP field, select IPv4 or IPv6 explicitly to see its corresponding address form and check that the value fits that version.
Compare a 32-bit IPv4 value with a 128-bit IPv6 value to see why IPv6 decimal strings are much longer. The length reflects representation, not a measurement of network activity.
Q&A
Find concise answers to common questions and confusing cases.
No. Conversion preserves the address value in another notation; it does not query registration, geolocation, or routing data.
No. Enter a single address by itself. Subnet suffixes, port numbers, zone identifiers, and IPv4-embedded IPv6 forms are outside the accepted input format.
An IPv6 address is 128 bits wide. Its unsigned decimal form can therefore need far more digits than the 32-bit IPv4 representation.
The two versions have different widths and valid ranges. The same decimal value can be interpreted in either range, so the version selection determines how its bits are grouped back into an address.
Notes
Review scope, result limitations, and important precautions before use.
A numeric address is only an alternate notation for an IP value. It does not establish that an address is public, assigned, routable, or safe to contact.
::; convert other IPv6 values only after checking the displayed result.Related
Discover related tools, collections, and available API capabilities.