Skip to content
TypeParser
All tools

Number Base Converter

Binary, octal, decimal, hex side-by-side.

beats rapidtables.com edge: BigInt + bit visualization + 4-up live
binary · base 2
octal · base 8
decimal · base 10
hex · base 16
interpretation
other bases
Guide

About Number Base Converter

Type a number in any base — binary, octal, decimal, or hex — and watch all four update simultaneously. BigInt-backed so 256-bit numbers work cleanly without precision loss. Includes bit visualization and signed-vs-unsigned interpretation toggle.

Why number bases matter

Computers count in binary, humans in decimal, and most low-level interfaces (memory addresses, byte sequences, color codes, UUIDs) use hex because it packs four bits into one digit. Octal still appears in Unix file modes (0755). Walking between these views is a daily move when you write systems-level code.

A good converter shows them all at once. Type in any one, the others update. No more mental math, no more typos translating mid-debug.

Bit width and signedness

A 32-bit signed integer holds values from -2,147,483,648 to 2,147,483,647. The same 32 bits unsigned hold 0 to 4,294,967,295. Hex 0xFFFFFFFF is -1 signed or 4,294,967,295 unsigned — depending on context. The converter shows both interpretations side-by-side and lets you pick a bit width (8 / 16 / 32 / 64 / 256) that matches your application.

Common workflows

Decode a flag register. Paste the hex, see the binary, identify which flag bits are set.

Convert a Unix file mode. chmod 755 is octal; the binary view shows the rwx pattern bit by bit.

Read a 64-bit memory address. Paste hex, see decimal for size comparisons.

Audit a hash output. SHA-256 lands as 64 hex chars. Convert any chunk to binary to inspect the bit pattern, useful when probing collision resistance experimentally.

Translate between RGB and hex color. 0xFF8800 → 255, 136, 0. Or use the dedicated Color Converter for full color-space support.

Why BigInt matters

Browser numbers are 64-bit floats — they overflow at 2^53 ≈ 9 × 10^15. A naive web converter silently produces wrong answers above that. Ours uses native BigInt, supported in every modern browser since 2019. We can convert a 256-bit private key cleanly without precision loss.

Frequently asked questions

How big a number can it handle?
Arbitrary precision via JavaScript BigInt. We have tested cleanly to 1024 bits. Above that, the bit visualization gets unwieldy but conversion still works.
Why does the same hex show two different decimals?
Signed vs unsigned interpretation. 0xFF is 255 unsigned or -1 signed (8-bit two's complement). Toggle the mode to see both.
What is the bit visualization for?
A grid of 1s and 0s for the binary form, useful when debugging bitwise operations or understanding flag bytes. Each bit clicks to toggle, updating all bases live.
Can I convert with custom bases?
The four standard bases (2, 8, 10, 16) are pinned. Custom bases up to 36 (using 0-9 then a-z) are supported via the dropdown.
What happens with negative numbers?
Negative decimals encode in two's complement at the chosen bit width — 8, 16, 32, 64, or 256. Pick the width to match your application; most embedded work uses 32.
How does this differ from a calculator?
A calculator computes; this only converts representations. For arithmetic across bases, do the math in one base and let the converter show the others.

Related tools

Last updated: 2025-01-15