Number Base Converter: Binary, Hex, Decimal
Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36. Works with arbitrarily large integers and shows the bits grouped by nibble.
How to Use
- 01 Type into any field Every field is an input. Type a hex value and read decimal and binary, or the other way round. Prefixes like 0x, 0b and 0o are understood.
- 02 Use a custom base Pick any base from 2 to 36 for the last field, for example base 36 for short IDs.
About this tool
Hexadecimal is compact for bytes (two digits per byte), octal still shows up in Unix file permissions, and binary makes individual bits visible. Base 36 uses 0–9 and a–z and is popular for short, URL-friendly IDs.
Frequently Asked Questions
No. The converter uses JavaScript BigInt, so even 256-bit numbers convert exactly. Fractions are not supported.
With a minus sign in every base, not as two’s complement, because the bit width would be ambiguous.