Base Converter

Remove Ads
Remove Ads

Result

Result
Decimal value
Remove Ads

Share on Social Media:

Base Converter — Binary, Decimal, Hex & Octal at Once

Debugging a bitmask, reading a memory address, decoding a permission value, or studying for a CS exam — number bases are the substrate of computing. This free converter translates between binary, octal, decimal, hexadecimal, and any base up to 36, showing all major bases simultaneously so relationships stay visible. Instant, in-browser, no signup.

The Same Number, Four Ways

DecimalBinaryOctalHex
10101012A
64100000010040
25511111111377FF
1024100000000002000400

Hex ↔ Binary: The Four-Bit Shortcut

Because 16 = 2^4, every hex digit is exactly one nibble: convert digit-by-digit, no arithmetic needed. D7 → D=1101, 7=0111 → 11010111. This is why registers, color values (#FF6600 is three bytes), and file dumps are written in hex — it's binary you can actually read. Octal's similar 3-bit grouping survives mainly in Unix permissions, where 755 encodes rwxr-xr-x.

Conversion Algorithms Worth Knowing

To decimal: multiply each digit by its base-power and sum — 1101₂ = 8+4+0+1 = 13. From decimal: repeated division, remainders read in reverse — 13 ÷ 2 → 6 r1, 3 r0, 1 r1, 0 r1 → 1101. The converter animates the same logic instantly for any size number, including values beyond 64-bit range.

Where Each Base Lives

  • Binary — bitmasks, flags, network subnetting, logic design.
  • Hex — colors, memory addresses, hashes, MAC addresses, byte dumps.
  • Octal — Unix file permissions (chmod 644).
  • Base36 — compact IDs and URL shorteners (0-9 + a-z).

Free and Instant

Unlimited conversions locally in your browser — a permanent tab for developers and CS students.