IP to Decimal Converter
Convert an IPv4 address to its 32-bit decimal, hex and octal forms and back, with the positional math shown step by step. Free and fully in-browser.
All representations
- Dotted-quad IP
- 192.168.1.1
- Decimal (unsigned 32-bit)
- 3232235777
- Hexadecimal
- 0xC0A80101
- Octal
- 030052000401
- Binary
- 11000000.10101000.00000001.00000001
How the conversion works
Each octet is a byte, weighted by its position: the first octet counts 2²⁴ (16,777,216), the second 2¹⁶ (65,536), the third 2⁸ (256) and the last 1.
(192 × 16,777,216) + (168 × 65,536) + (1 × 256) + 1 = 3,232,235,777
What is the IP to Decimal Converter?
The IP to Decimal Converter turns a dotted-quad IPv4 address into the single 32-bit unsigned integer it really is — 192.
- Dotted-quad ↔ 32-bit unsigned integer in both directions
- Simultaneous decimal, hexadecimal, octal and binary output
- Shows the (a×2²⁴)+(b×2¹⁶)+(c×2⁸)+d working
- Accepts hex input with a 0x prefix
- Strict validation with exact error messages
- 100% client-side — safe for production addresses
How to use the IP to Decimal Converter
- 1
Choose the direction: IP address to number, or number to IP address.
- 2
Enter a dotted-quad IPv4 address, or a decimal / 0x-prefixed hex number.
- 3
Read the value in decimal, hex, octal and binary from the results panel.
- 4
Check the step-by-step positional expansion to see how the value is built.
About the IP to Decimal Converter
The IP to Decimal Converter turns a dotted-quad IPv4 address into the single 32-bit unsigned integer it really is — 192.168.1.1 becomes 3232235777 — and converts numbers back into addresses. The same value is also shown in hexadecimal and octal, plus the full binary form.
The tool displays the working: (a × 16,777,216) + (b × 65,536) + (c × 256) + d, so you can see exactly how the four octets weight into the total. Developers hit this conversion constantly — IP addresses stored as integers in databases, geo-IP range tables, and log formats all use the decimal form.
Both directions validate their input strictly (each octet 0–255, integers 0 to 4,294,967,295) and everything is computed locally in your browser with nothing uploaded.
Frequently asked questions
How do I convert an IP address to a decimal number?
Multiply the octets by their positional weights and add: first × 16,777,216, second × 65,536, third × 256, plus the last. For 192.168.1.1 that is 3,221,225,472 + 11,010,048 + 256 + 1 = 3,232,235,777.
What is 192.168.1.1 as a decimal number?
3232235777. In hex it is 0xC0A80101 — you can read the four octets directly in the hex pairs: C0=192, A8=168, 01=1, 01=1.
Why are IP addresses stored as integers in databases?
A 32-bit integer is smaller than a string, indexes better, and makes range queries trivial — "is this IP between the start and end of a block" becomes a simple BETWEEN on numbers. Geo-IP databases almost universally store ranges this way.
What is the largest valid decimal value for an IPv4 address?
4,294,967,295, which is 2³² − 1 and corresponds to 255.255.255.255. Anything above that, negative, or fractional cannot be an IPv4 address, and the converter rejects it with an explanation.
Does typing a decimal IP like 3232235777 into a browser work?
Many browsers and network stacks do accept http://3232235777/ and resolve it to 192.168.1.1 — the integer form is a valid, if obscure, URL notation. That is also why phishing filters normalize these forms before checking URLs.
Related tools
IP to Binary Converter
Convert IPv4 and IPv6 addresses to binary with a per-octet bit table, and turn 32-bit binary back into an IP. Free, instant and fully in your browser.
Subnet Calculator
Calculate network address, broadcast, usable host range and subnet mask from any IPv4 address and CIDR prefix. Free, instant and 100% in your browser.
IP Address Sorter
Sort IPv4 and IPv6 address lists in true numeric order — not alphabetical — with de-duplication and invalid-line reporting. Free and 100% in-browser.
Binary Calculator
Do arithmetic and bitwise math on binary, decimal, hex and octal numbers — add, subtract, multiply, divide, AND, OR, XOR and shifts, with results in all bases.