Number Base Converter

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

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

A number base converter that translates a whole number between binary, octal, decimal, hexadecimal and any arbitrary base from 2 to 36 — all at once, with live cross-fill. Edit any row and every other base recalculates instantly, so you never copy-paste between separate tools. It is built for programmers reading memory dumps, students learning positional notation, embedded engineers juggling register values, and anyone who has ever needed to know what 0xDEADBEEF looks like in decimal or binary.

How it works

A number’s value is independent of how you write it down — only the base (or radix) changes the symbols. In base 10 the string 255 means 2 hundreds, 5 tens and 5 ones. In base 16 the same quantity is FF, and in base 2 it is 11111111. This converter keeps a single canonical value in memory and re-renders it in every base you have switched on.

When you type into a field, the tool parses your digits in that field’s base, builds an exact integer, then formats that integer back out into all the other bases. Because it uses JavaScript BigInt for the arithmetic, the conversion is exact for numbers of any size — there is no 53-bit floating-point ceiling and no silent overflow, so a hundred-digit input round-trips perfectly. Bases above 10 use letters after the digits: A is 10, B is 11, up to Z which is 35, giving the full 2-to-36 range.

Beyond the basics, the panel shows useful insight stats for the current value: its bit length, byte count, the number of set bits (population count) and whether it is odd or even. You can toggle digit grouping (bytes for binary, nibbles for hex, thousands for decimal), switch hex letters to uppercase, and save values to a history you can restore with one click. Pasted literals such as 0xFF, 0b1010 or 0o17 have their prefixes stripped automatically.

Example

Say a debugger shows you the address 0x1F4. Type 1F4 into the Base 16 row and the converter immediately fills in the rest:

BaseValue
2 (binary)1 1111 0100
8 (octal)764
10 (decimal)500
16 (hex)1F4
36DW

The insight panel reports 9 bits, 2 bytes and 6 set bits. Add a custom base — say 3 — and you will see 500 written as 200120. Every figure is computed in your browser; nothing is uploaded.

Why convert bases at all

Hexadecimal is compact and maps cleanly onto bytes, which is why colours, memory addresses and hashes use it. Binary mirrors the hardware’s actual on/off state, so it is indispensable for bit-masks and flags. Octal still appears in Unix file permissions. Switching fluently between them — and the occasional exotic base for puzzles, encodings or teaching — is a routine task this tool makes friction-free.

Ad placeholder (rectangle)