Inputs

Auto-detects: 192.168.1.1, 0xC0A80101, 11000000.10101000.00000001.00000001, or 3232235777.

Why these conversions matter

An IPv4 address is just a 32-bit number. Humans write it in dotted-decimal because four numbers from 0 to 255 are easier to remember than ten-digit integers. But computers think in binary, network engineers sometimes work in hex, and ACL/route entries occasionally show up as raw integers in logs.

Quick reference for what each format looks like:

FormatExample for 192.168.1.1
Dotted decimal192.168.1.1
32-bit integer3232235777
Hex0xC0A80101
Binary (dotted)11000000.10101000.00000001.00000001
Binary (flat)11000000101010000000000100000001

Where you'll actually run into these

  • Hex shows up in router config files, packet captures, and some firewall rule formats.
  • Integer form appears in databases that store IPs as a 4-byte BIGINT (faster range queries than text comparison).
  • Binary is essential for understanding subnet masks — you can't really "get" why a /27 has 32 addresses without seeing the host bits in binary.