Number Base Converter

Convert between binary, octal, decimal, hex, and any base up to 36.

100% in your browser — nothing uploaded

Type a number into any field — binary, octal, decimal, or hexadecimal — and the others update instantly. A custom row converts to and from any base between 2 and 36, using the digits 0–9 and the letters a–z. Input is forgiving: prefixes like 0x, 0b, and 0o are understood, spaces and underscores are ignored, and negative numbers work everywhere. If a character doesn’t belong in the chosen base, a message under that field tells you exactly which one, and binary output can be grouped into 4-bit nibbles for easier reading. Each field has its own copy button, so the hex constant or bit mask you came for is one click away.

Because it uses BigInt arithmetic, there is no 32- or 64-bit ceiling: 128-bit values, hashes, and large IDs convert without losing a single digit — something ordinary calculators can’t do past 15 or 16 digits. It’s built for developers reading bitmasks and file permissions, students checking number-system homework, and engineers debugging embedded or network code. Like every Sofritools utility, it runs entirely in your browser: nothing you type is sent anywhere.

FAQ

Is there a maximum number size?

No practical one. The converter uses JavaScript BigInt, which supports arbitrary precision — 128-bit, 256-bit, or larger values convert exactly. Ordinary floating-point calculators silently lose precision above 2^53; this tool never does.

Can I paste values like 0xFF or 1_000_000?

Yes. The prefixes 0x (hex), 0b (binary), and 0o (octal) are stripped automatically in their matching fields, and spaces or underscores used as digit separators are ignored — so constants copied straight from code just work.

How do bases above 16 work?

Digits run 0–9 and then a–z, so base 36 uses all 26 letters: the digit z is worth 35. Letter case doesn’t matter on input. This covers things like base-36 short codes and URL shortener IDs.