Number Base Converter — Dec / Bin / Hex / Oct

Type a number in any base — decimal, binary, octal, hexadecimal — and see it converted instantly to the other three. Useful for programming, networking, low-level debugging.

Conversion runs in your browser.

Why convert between number bases?

Different domains in computing use different bases:

Quick reference

DecimalBinaryOctalHex
0000000
81000108
10101012A
16100002010
64100000010040
25511111111377FF
1024100000000002000400
655351111111111111111177777FFFF

Common use cases

Tips

FAQs

Why does hex use letters A-F?

Because we need 16 distinct digits per place but only have 10 digit symbols (0-9). A=10, B=11, ..., F=15.

Why don't we just use decimal everywhere?

Computers are binary; hex is a more compact way to read binary; octal once mapped cleanly to 3-bit groups in early systems.

What's the maximum number?

2^53 − 1 (about 9 quadrillion). Beyond that, JavaScript's number type loses precision.

Is anything uploaded?

No.

Related