IP Address to Decimal Converter
Convert an IPv4 address or 32-bit integer into decimal, numeric notations, mapped IPv6 forms, range labels, and octet contribution rows.Decimal result
| Format | Value | Use | Copy |
|---|---|---|---|
| {{ row.label }} | {{ row.value }} | {{ row.note }} |
| Octet | Decimal | Binary | Hex | Weight | Contribution | Copy |
|---|---|---|---|---|---|---|
| {{ row.octet }} | {{ row.decimal }} | {{ row.binary }} | {{ row.hex }} | {{ row.weight }} | {{ row.contribution }} |
| Signal | Value | Detail | Source | Copy |
|---|---|---|---|---|
| {{ row.signal }} | {{ row.value }} | {{ row.detail }} | {{ row.source }} |
An IPv4 address is a 32-bit number most people read as four dotted decimal octets, such as 192.0.2.10. Decimal conversion shows the same address as one unsigned integer from 0 through 4294967295. That form still appears in database rows, packet notes, access-control checks, legacy APIs, log fields, and low-level code where a single numeric value is easier to sort or compare than dotted notation.
The four octets are not four independent identifiers. They are byte positions in one 32-bit value, so the first octet carries far more weight than the last. 192.0.2.10 becomes 3221225994 because 192 is multiplied by 256^3, 0 by 256^2, 2 by 256, and 10 by 1.
Decimal address form is useful when two systems disagree about notation. One log might store 3232235777, another might show 192.168.1.1, and a packet note might prefer 0xC0A80101. They refer to the same 32 bits when the byte order and signedness are understood.
The numeric form does not say whether an address is assigned, reachable, safe to route, or owned by a given organization. Special-purpose ranges, private-use ranges, documentation ranges, multicast space, loopback, and broadcast addresses have routing meanings that must be checked separately from the arithmetic.
How to Use This Tool:
Start with one value from a log, database row, firewall note, or packet capture. The converter accepts one IPv4 value at a time and shows every supported representation from the same parsed 32-bit address.
- Enter one value in IPv4 value. Valid examples include
192.0.2.10,3221225994,0xC000020A,11000000.00000000.00000010.00001010, and0o30000001012. - Leave Input format on Auto detect for normal pasted values. Choose Dotted IPv4, Decimal integer, Hex integer, Binary bits, or Octal integer when a bare value is ambiguous.
- Set Output focus to the representation you plan to copy. This changes the highlighted row and Copy focus value while keeping Address Formats, Octet Ledger, Range Profile, Octet Weight Map, and JSON available.
- Open Advanced when notation matters. Binary grouping changes dotted, continuous, nibble, or byte-grouped binary display. Hex style switches between prefixed, bare, and dotted byte output. Include API rows adds signed int32 and little-endian views.
- Read any warning before copying. If several non-empty lines are pasted, the page uses only the first value and reports how many extra lines were ignored. If an octet, integer, or bit string is outside the accepted range, fix the input until the result panel returns.
- Use Range Profile to check Range match, Routability hint, Legacy class, and Integer window before pasting the value into a ticket, ACL note, SQL query, or code comment.
Interpreting Results:
The main value to verify is Decimal integer. It is the unsigned 32-bit address value. If the dotted address is correct but the integer looks surprising, inspect Octet Ledger to see each octet's weight and contribution.
- Address Formats compares dotted IPv4, decimal, hexadecimal, binary, octal, dotted and hex IPv4-mapped IPv6, and optional legacy API views from the same address.
- Range match names the first built-in special-purpose block that contains the address. Treat that as address-category context, not a live reachability test.
- Routability hint separates special-purpose handling from a public unicast candidate. Public unicast candidate means no built-in special range matched; it does not prove allocation, ownership, DNS validity, or route advertisement.
- Legacy class is historical. Modern routing uses CIDR prefixes, so a Class A, B, C, D, or E label should not be used as a subnet size decision.
- Signed int32 view and Little-endian integer are compatibility checks. Use them only when the system you are comparing against stores addresses in that form.
For troubleshooting, compare two independent rows before trusting the copied value. A correct Dotted IPv4 plus a plausible Range match usually catches pasted decimal mistakes, byte-order reversals, and documentation-range addresses before they move into a change note.
Technical Details:
IPv4 carries a source address and destination address as 32-bit fields. Dotted decimal notation prints those 32 bits as four 8-bit octets in network byte order. Decimal notation treats the same four octets as one unsigned integer, with the leftmost octet as the most significant byte.
Valid dotted IPv4 input has exactly four decimal octets, each from 0 through 255. The resulting integer must fit the unsigned IPv4 window from 0 through 4294967295. Hexadecimal, binary, and octal inputs are alternate ways to spell the same 32 bits, not different address families.
Formula Core
The decimal value is weighted addition across the four octets.
For 192.0.2.10, the substitution is 192 x 16777216 + 0 x 65536 + 2 x 256 + 10, which gives 3221225994. The same value in hexadecimal is 0xC000020A, and the binary octets are 11000000.00000000.00000010.00001010.
| Input form | Accepted shape | Validation rule |
|---|---|---|
| Dotted IPv4 | a.b.c.d |
Exactly four decimal octets, each 0 to 255. |
| Decimal integer | Unsigned whole number | After simple numeric separators are removed, value must be 0 to 4294967295. |
| Hex integer or bytes | 0xC000020A, C000020A, or dotted byte form |
Integer form uses 1 to 8 hex digits; byte form uses four 1 to 2 digit bytes. |
| Binary bits | 32 continuous bits or four 8-bit octets | Only 0 and 1 are accepted, with exactly 32 bits total. |
| Octal integer or bytes | 0o30000001012 or dotted octal byte form |
Only digits 0 through 7 are accepted, and the value must fit 32 bits. |
Range and Compatibility Rules
Special-purpose range labels come from well-known IPv4 reservations. A match changes how the address should be discussed, but it does not run a lookup against routing tables, DNS, allocation registries, or firewall policy.
| Range | Displayed meaning | Interpretation cue |
|---|---|---|
10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 |
Private-Use | Internal addressing, not globally reachable without translation or routing arrangements. |
100.64.0.0/10 |
Shared Address Space | Carrier-grade NAT shared space, not ordinary public host space. |
127.0.0.0/8 and 169.254.0.0/16 |
Loopback or Link Local | Local-machine or same-link behavior, not normal routed addressing. |
192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 |
Documentation TEST-NET | Use in examples and training material, not production traffic. |
224.0.0.0/4, 240.0.0.0/4, 255.255.255.255/32 |
Multicast, Reserved, or Limited Broadcast | Special handling applies; do not read these as ordinary host addresses. |
Signed 32-bit display uses two's-complement interpretation. Values above 2147483647 appear negative after subtracting 4294967296, so 3232235777 becomes -1062731519. Little-endian display reverses the byte order before reading the value as an integer, which helps diagnose packed data and older address storage.
The IPv4-mapped IPv6 form uses an IPv6 prefix with the IPv4 value in the low 32 bits. For 192.0.2.10, the canonical dotted mapped form is ::ffff:192.0.2.10, while the hex grouped view is ::ffff:C000:020A. Both are representations for APIs and mixed IPv4/IPv6 software, not proof that an IPv6 route exists.
Privacy Notes:
The conversion calculation runs in the browser after the page loads. It does not need an address lookup service, uploaded file, or account-specific query to turn one IPv4 value into its related numeric forms.
Copied rows, downloaded tables, chart images, JSON, DOCX exports, screenshots, and shared links can still reveal internal addresses. If a copied link includes the current values, remove sensitive addresses before sending it outside the intended audience.
Worked Examples:
Documentation address from a sample config
Enter 192.0.2.10 with Input format on Auto detect. Decimal integer becomes 3221225994, Hex integer becomes 0xC000020A, and Range match reports Documentation TEST-NET-1 (192.0.2.0/24). That range label means the address is appropriate for examples, not production traffic.
Database integer back to a private gateway
Enter 3232235777 and set Input format to Decimal integer if you want to avoid guessing. Dotted IPv4 becomes 192.168.1.1, Range match reports Private-Use (192.168.0.0/16), and the optional Signed int32 view is -1062731519. If another system shows the signed value, the addresses can still match once signedness is accounted for.
Finding a paste problem before export
Paste 192.168.1.1 followed by 8.8.8.8 on the next line. The warning says the first value is used and one extra line is ignored. If you meant to compare both addresses, run them one at a time; otherwise only the Address Formats, Range Profile, and exported rows for 192.168.1.1 should be trusted.
FAQ:
Why does Auto detect treat some bare values as decimal?
A bare value with only decimal digits is normally read as Decimal integer. Use Input format to force Binary bits, Hex integer, or Octal integer when the text could be misread.
Can I convert more than one address at once?
No. The converter uses the first non-empty value only and warns when extra lines are ignored. Run separate conversions when each address needs its own range label and export rows.
Does Public unicast candidate mean the address is reachable?
No. It only means the address did not match the built-in special-purpose list. Allocation, DNS, routing, firewall policy, and live reachability need separate checks.
Why can the signed int32 value be negative?
Signed 32-bit integers reserve one bit for sign. Any IPv4 decimal value above 2147483647 is shown by subtracting 4294967296, which produces a negative compatibility view.
What is IPv4-mapped IPv6 for?
It represents an IPv4 address inside an IPv6 address shape, such as ::ffff:192.0.2.10 or ::ffff:C000:020A. Use it when an API or log expects that notation, not as a routing conclusion.
Do entered addresses leave the browser for conversion?
The address conversion itself runs in the browser. Normal page assets still load, and copied links or exported files can contain the address values you entered.
Glossary:
- IPv4
- The 32-bit Internet Protocol address format commonly written as four decimal octets.
- Octet
- An 8-bit byte of the IPv4 address, displayed as one dotted decimal number from
0through255. - Unsigned 32-bit integer
- A whole number from
0through4294967295with no negative values. - CIDR
- Classless Inter-Domain Routing notation, used to describe address ranges with slash prefixes.
- Special-purpose address
- An IPv4 block reserved for a defined use, such as private networks, documentation, loopback, benchmarking, multicast, or broadcast.
- IPv4-mapped IPv6
- An IPv6 representation that embeds the IPv4 value in the low 32 bits after the
::ffff:marker, commonly with the final 32 bits shown as dotted IPv4 text. - Signed int32
- A 32-bit integer view where values above
2147483647appear negative. - Little-endian
- A byte-order view that reads the least significant byte first.
References:
- RFC 791: Internet Protocol, RFC Editor, September 1981.
- IPv4 Special-Purpose Address Space Registry, IANA.
- RFC 1918: Address Allocation for Private Internets, RFC Editor, February 1996.
- RFC 5737: IPv4 Address Blocks Reserved for Documentation, Internet Engineering Task Force, January 2010.
- RFC 4291: IP Version 6 Addressing Architecture, Internet Engineering Task Force, February 2006.