Convert Numbers for Networking
Convert subnet masks, port numbers, and IP address octets between binary and decimal.
Quick values
Networking tips
IP address octets are in decimal (0–255). Each octet is one byte — 8 bits. 192.168.1.1 means 11000000.10101000.00000001.00000001 in binary.
Subnet masks like 255.255.255.0 are 11111111.11111111.11111111.00000000 in binary. The number of 1s = prefix length (/24 in this case).
Port numbers 0–65535 fit in 16 bits (2 bytes). Port 80 = 0x50 = 01010000 binary. Port 443 = 0x1BB = 110111011 binary.
MAC addresses are 6 hex bytes (e.g. FF:FF:FF:FF:FF:FF). Convert each colon-separated byte to see its decimal and binary equivalent.
یہ کیسے کام کرتا ہے
ہمارا کیوں؟
Also check out…
Convert Numbers for Programming
Convert between binary, octal, decimal, and hex wh
Number Systems for Computer Science
Learn and verify binary, octal, hex conversions —
Inspect Bit Patterns and Flags
Convert numbers to binary to inspect individual bi
Decode Hex Dumps and Debug Logs
Decode hexadecimal values from crash reports, memo
