| Dotted decimal | 192.168.0.1 |
| Decimal (uint32) | 3232235521 |
| Hexadecimal | 0xC0A80001 |
| Binary | 11000000.10101000.00000000.00000001 |
| Octal | 030052000001 |
| Per-octet hex | c0.a8.00.01 |
Accepts any format and converts to all the others — entirely in your browser.
Convert an IPv4 address to decimal, hex and binary, free. An IPv4 address (RFC 791) is really a single 32-bit number — the familiar dotted form like 192.168.0.1 is just one of several ways to write it. This converter turns an IPv4 address into its decimal (uint32), hexadecimal, binary and octal forms and back again, so you can move between the representation a human reads and the one a database, log or firewall stores.
It converts an IPv4 address between dotted-decimal, 32-bit integer, hexadecimal, octal and binary in both directions, so you can store IPs as integers, decode a numeric log value, or read a hex address from a packet capture. 100% free, no registration, and complete privacy — everything runs locally in your browser, so your data never touches a server.
Enter dotted-decimal, a uint32 integer, a 0x hex value or 32-bit binary — the tool detects the input and shows all the other forms.
Get the uint32 value to store IPs compactly in a database column or compare them numerically for range checks.
See the binary and per-octet hex breakdown to understand how the 32 bits map onto the four dotted octets.
Conversion runs locally in your browser; nothing you enter is uploaded or stored.
IPv4 CIDR breakdown
First/last IP of a block
Binary, octal, decimal, hex
Treat the four octets as bytes of a 32-bit integer: 192.168.0.1 = 192×256³ + 168×256² + 0×256 + 1 = 3232235521. This tool does that automatically and also shows the hex, octal and binary forms.
A uint32 is smaller than a string, indexes efficiently, and lets you do numeric range comparisons (e.g. BETWEEN two IPs) directly in SQL. Many databases also offer native INET types; pick whichever fits your stack.
Hex appears in packet captures, some log formats and low-level networking code. 192.168.0.1 is 0xC0A80001 — each octet is one hex byte (C0 A8 00 01).
Yes. Enter a decimal integer (0–4294967295), a 0x hex value, or 32-bit binary and the tool reconstructs the dotted-decimal address.
No. Everything is computed in your browser; nothing you type leaves your device.
We use cookies for analytics and personalized ads to help keep these tools free. Until you accept, ads stay non-personalized and analytics cookies are off. See our Privacy Policy.