IP to Decimal Converter

Convert any IPv4 address to its 32-bit decimal integer (and back) with a full binary breakdown of each octet.

IPv4 Address

Decimal Integer

Quick Examples

Enter an IPv4 address or decimal integer to see the conversion.

Copied!

Summary

Convert any IPv4 address to its 32-bit decimal integer (and back) with a full binary breakdown of each octet.

How it works

  1. Enter a dotted-decimal IPv4 address (e.g. 192.168.1.1) in the top field.
  2. Each octet is converted to its 8-bit binary equivalent.
  3. The four 8-bit groups are concatenated into a single 32-bit binary string.
  4. That 32-bit string is interpreted as an unsigned integer to produce the decimal result.
  5. To reverse, enter a decimal integer in the bottom field and the dotted IP is reconstructed.

Use cases

  • Understand how IP addresses are stored internally by operating systems and databases.
  • Debug network masks, CIDR ranges, and subnetting calculations.
  • Verify IP integer values stored in database columns (INT UNSIGNED).
  • Convert IP addresses for use in numeric comparisons or range queries.
  • Learn binary arithmetic and bit-shifting by watching the octet breakdown.
  • Cross-check tool output against manual calculations in a classroom setting.

Frequently Asked Questions

Last updated: 2026-06-10 · Reviewed by Nham Vu