← Tools
Utilities
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal. Edit any field to update the rest.
Conversion
Number Bases
- Binary (2) — Digits: 0, 1. Used in digital circuits and low-level computing.
- Octal (8) — Digits: 0–7. Common in Unix file permissions (e.g.,
chmod 755). - Decimal (10) — Digits: 0–9. Standard everyday number system.
- Hex (16) — Digits: 0–9, A–F. Used in colors, memory addresses, and encoding.
How Conversion Works
Any number is first parsed into its decimal (base-10) value using parseInt(value, radix), then converted to all other bases using number.toString(radix).
Common Examples
255dec =FFhex =11111111bin16dec =10hex =10000bin- Unix
755oct =111 101 101bin