Number Base Converter Online
Binary, octal, decimal, hex — instantly.
At a glance
- Input:
- Text / data you paste
- Processing:
- Runs locally in your browser
- Privacy:
- Nothing you type is sent to a server
Last updated: 2026-11-04
Common use cases
- Converting color codes between hex and decimal
- Reading binary flags and bit masks
- Checking octal file permissions
- Doing base homework without rounding errors
About this tool
Type a number, pick its base, and see it instantly in binary, octal, decimal, and hexadecimal — with exact BigInt math, invalid-digit errors that name the bad digit, and one-tap copy on every result.
How to use it
- Type your number (prefixes like 0x, 0b, and 0o are accepted).
- Pick the base it is written in.
- Read all four conversions at once, or copy any single one.
Practical tips
- Use the Try buttons (255, FF, 11111111, 777) to see all four bases at a glance.
- Negative numbers work too — the sign carries across every base.
- Long numbers stay exact: BigInt math has no floating-point rounding.
Common mistakes
- Forgetting to set the From base — FF read as decimal is invalid, not 255.
- Typing 0xFF with the From base set to decimal — the 0x prefix is stripped, but F is still not a decimal digit.
- Trusting a float-based converter for very long numbers — this one does not round.
How this compares
Most base converters online round long numbers through floating-point math or accept invalid digits silently. This tool validates every digit against the chosen base, names the bad digit, and converts exactly with BigInt — no upload, no signup. The tradeoff: only bases 2, 8, 10, and 16 are supported, not arbitrary bases.
Good to know
- Bases 2, 8, 10, and 16 only — no arbitrary bases.
- Whole numbers only — no fractional values.
- Prefixes 0x, 0b, and 0o are stripped before validation.
- No saved history — results clear on reload.
Frequently asked questions
How do I convert binary to decimal?
Type the binary number, pick Binary as the From base, and the decimal value appears instantly alongside octal and hexadecimal.
What does an invalid-digit error mean?
The number contains a digit that does not exist in the chosen base — for example, 2 in binary, or G in hexadecimal. Fix the digit or switch the From base.
Is the conversion exact for long numbers?
Yes. Conversion uses BigInt math, so long values do not lose precision the way floating-point converters do.
Is my data sent anywhere?
No. All conversion runs in this tab — nothing is uploaded, and there is no signup.

