Number Base Converter
Convert any number between any two bases from 2 (binary) to 36. Enter the source base, target base, and number — ideal for computer science and custom encoding schemes.
Result (base 2)
11111111
How to use the number base converter
Convert between any two bases from 2 to 36.
Formula & explanation
JavaScript's parseInt and toString natively handle bases 2–36 using digits 0–9, A–Z.
Examples
ff (base 16) → 11111111 (base 2). 100 (base 36) = 1296 (decimal).
Frequently asked questions
- What bases can this converter handle?
- Any base from 2 (binary) to 36. Bases above 10 use letters A–Z to represent values 10–35.
- What is base 36 used for?
- Base 36 (alphanumeric) is used to create short, compact identifiers — for example, URL shorteners and unique IDs that need to be human-readable.
- How do I convert between octal and binary?
- Set 'From base' to 8 and 'To base' to 2. Each octal digit maps to exactly 3 binary digits, so 7 = 111 and 5 = 101.
- Are the letters case-sensitive?
- Input is parsed case-insensitively. The result is displayed in uppercase for clarity (e.g., 'ff' and 'FF' both convert to the same value).
Related number & code tools
- Octal ⇄ DecimalConvert between octal (base 8) and decimal (base 10). Useful for Unix file permissions, legacy computing, and programming exercises involving number systems.
- Binary ⇄ DecimalConvert between binary and decimal numbers in both directions. Supports signed integers and shows the step-by-step positional value breakdown for each conversion.
- Hex ⇄ DecimalConvert between hexadecimal and decimal numbers. Supports uppercase and lowercase hex input — useful for color codes, memory addresses, and network protocols.
- Binary ⇄ HexConvert between binary and hexadecimal notation. Handles any length input and groups binary output into nibbles (4-bit groups) for readability.
- ASCII ConverterConvert text to ASCII character codes and ASCII codes back to text. Shows decimal, hexadecimal, and binary representations for each character simultaneously.
- Roman Numeral ConverterConvert integers to Roman numerals and Roman numerals back to integers. Supports 1–3999 with proper subtractive notation (IV, IX, XL, XC, CD, CM).