Number Base Converter

Type a number in any base from 2 to 36 and see it as decimal, binary, octal and hexadecimal — plus one custom base — all at once. Digits are validated as you type and the math is exact, even for huge numbers.

What a number base is

A base (or radix) tells you how many digits each column can hold. Decimal (base 10) uses 0–9; binary (base 2) uses only 0 and 1; hexadecimal (base 16) uses 0–9 then A–F for ten to fifteen. A value is read by weighting each digit by a power of the base, so hex 1F is 1×16 + 15 = 31 in decimal. Bases up to 36 reuse the letters A–Z, letting you encode numbers in a single alphanumeric string.

Why 2, 8, 10 and 16 dominate

Computers store everything as binary, so base 2 is the native tongue. Base 8 (octal) and base 16 (hexadecimal) are compact shorthand for it: each hex digit packs exactly four bits, which is why memory addresses, color codes and byte dumps are written in hex. This converter uses exact integer arithmetic — not JavaScript's 53-bit floats — so a 64-bit value like 0xFFFFFFFFFFFFFFFF converts losslessly, and leading 0x, 0b and 0o prefixes and a leading minus sign are understood automatically.

Pogosto zastavljena vprašanja

How do I convert between number bases?

Pick the base your number is written in, type it in the box, and the converter shows the same value in decimal, binary, octal and hexadecimal instantly. Set the target base to read it in any base from 2 to 36.

Which bases are supported?

Every base from 2 to 36. The usual ones are ready in the picker — 2 (binary), 8 (octal), 10 (decimal) and 16 (hexadecimal) — and any base up to 36 uses the letters A–Z for its extra digits.

How large a number can I convert?

There is no practical limit. The converter uses arbitrary-precision integers, so values far beyond JavaScript's 2⁵³ safe-integer ceiling — full 64-bit hex numbers, for example — convert exactly, with no rounding.

Does this converter work offline?

Yes. Once the page has loaded, every conversion runs in your browser — no server round-trips, no tracking, and the number you type never leaves your device.

Pretvorniki