Overview
Introduction
Most binary converters only target one fixed base (octal, decimal, or hex), but sometimes you need to see a binary value in an arbitrary base — base 5, base 20, base 36, or anything in between.
This tool accepts a binary string and a target base from 2 to 36, then computes the exact converted value using arbitrary-precision arithmetic.
What Is Binary to Any Base Converter?
A general-purpose radix converter that turns any binary string into its representation in a target base you choose, from 2 (binary itself) up to 36.
Bases above 10 use the standard extended digit alphabet, where the letters A through Z stand in for the digit values 10 through 35.
How Binary to Any Base Converter Works
The binary input is validated and parsed as an exact BigInt using binary radix notation.
The value is then repeatedly divided by the target base: each division's remainder becomes the next output digit (rendered via a fixed 0-9/A-Z digit table), starting from the least significant digit. Reversing the collected digits produces the final result in the target base.
When To Use Binary to Any Base Converter
Use it when you need a binary value converted to an uncommon base that doesn't have its own dedicated converter, such as base 5, base 20, or base 36.
It's also useful for teaching or exploring how positional numeral systems generalize beyond the common bases 2, 8, 10, and 16.
Often used alongside Binary to Ternary Converter, Binary to Octal Converter and Binary to BCD Converter.
Features
Advantages
- Supports the full practical range of bases (2-36) in a single tool.
- Exact BigInt arithmetic avoids precision loss for long binary inputs.
- Standard uppercase A-Z digit convention for bases above 10 matches what most other tools and languages use.
Limitations
- Only converts FROM binary; there's no reverse direction in this tool (convert through decimal for other input bases).
- Maximum supported base is 36, the conventional limit of the 0-9/A-Z digit alphabet.
Examples
Best Practices & Notes
Best Practices
- Double-check the target base field before reading the output — the same binary input produces a very different-looking string in each base.
- For very common target bases (octal, decimal, hex), consider using this category's or the Hex category's dedicated converters, which don't require setting a base field.
Developer Notes
Implemented with a manual BigInt-based radix-conversion loop (repeated division by BigInt(base), collecting remainders through a fixed 36-character digit table) rather than Number.toString(base), since long binary strings can exceed Number.MAX_SAFE_INTEGER.
Binary to Any Base Converter Use Cases
- Converting binary values to uncommon target bases without a dedicated converter
- Teaching or exploring positional numeral systems beyond the common bases
- Verifying custom radix-conversion code against a precise reference implementation
Common Mistakes
- Entering a target base outside the valid 2-36 range, which the tool rejects with a clear error.
- Forgetting that digits above 9 appear as uppercase letters, and misreading a letter digit as part of a different number.
Tips
- Try base 36 for the most compact possible textual representation of a large binary value.
- Set the target base to 2 to confirm the tool echoes your binary input back unchanged, a handy sanity check.