IP to Decimal Converter
Get the integer behind an IP address, in decimal or hex, for one address or a whole list.
Processed locally in your browser· Your data stays in your browser.
What is IP to Decimal Converter?
An IPv4 address is really a 32-bit unsigned integer: 192.168.1.1 equals 192×256³ + 168×256² + 1×256 + 1 = 3232235777. Databases, firewalls and geo-IP tables often store addresses as integers because range checks and sorting become simple numeric comparisons.
This converter handles IPv4 and IPv6 (a 128-bit integer, computed exactly with BigInt) and prints decimal, 0x-prefixed hexadecimal, or both. Enter one address per line and optionally label each result with its input.
How does it work?
- Paste addresses, one per line (IPv4 and IPv6 can be mixed).
- Pick decimal, hexadecimal or both.
- Copy the numbers into your query or spreadsheet.
- Use Swap to convert integers back to addresses.
Common use cases
- Storing IPs as integers in a database and testing whether an address falls between two numeric bounds.
- Understanding how IP-to-country CSV files list ranges as start and end integers.
- Decoding an integer IP found in a URL or obfuscated link to see the real address.
- Producing hex forms such as 0xC0A80101 for low-level code or packet analysis.
Examples
Try this input in the tool above:
192.168.1.1 10.0.0.1 2001:db8::1
3232235777 167772161 42540766411282592856903984951653826561
Privacy
IP to Decimal Converter runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.
Limitations
Integers do not identify byte order: the results use standard network (big-endian) order, which matches inet_aton but not little-endian dumps.
Frequently asked questions
What is 192.168.1.1 as a decimal number?
3232235777, or 0xC0A80101 in hexadecimal.
How large can IPv6 integers be?
Up to 2^128 − 1. JavaScript BigInt keeps every digit exact, so nothing is rounded.
Why do some sources show a different number for the same IP?
They may use little-endian byte order or treat the number as signed. This tool uses unsigned network byte order.
Related tools
Decimal to IP Converter
Turn a decimal, 0x hexadecimal or 0b binary integer into the IPv4 or IPv6 address it represents.
Network Tools
IP to Binary Converter
See any IP address as bits, for example 192.168.1.1 → 11000000.10101000.00000001.00000001.
Network Tools
Binary to IP Converter
Paste a 32-bit binary number (with or without dots) and get the dotted-decimal IPv4 address back; 128 bits give IPv6.
Network Tools
IPv4 Address Validator
Paste one or many IPv4 addresses to see whether each is valid, why not if it is not, and what kind of address it is.
Network Tools
IPv6 Address Validator
Check an IPv6 address, then see its canonical short form, its full 32-digit form and what kind of address it is.
Network Tools
Decimal to Hex Converter
Turn decimal integers into hexadecimal, with byte grouping, a 0x prefix and fixed-width two’s complement for negative values.
Developer Tools
IP to Hex Converter
Turn IP addresses into their hexadecimal form, one address per line, for IPv4 and IPv6.
Network Tools
Base Converter (Base 2 to 36)
Type a number, pick its base and the base you want, and get an exact result with a quick view in binary, octal, decimal, hexadecimal and base 36.
Developer Tools