๐Ÿ”ข

Number Base Converter

Type a number in any base and the others update instantly. Supports binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Handles numbers up to 2โตยณ.

Binary
Base 2 โ€” digits: 0, 1
Octal
Base 8 โ€” digits: 0โ€“7
Decimal
Base 10 โ€” digits: 0โ€“9
Hexadecimal
Base 16 โ€” digits: 0โ€“9, Aโ€“F
Advertisement
How to use
  1. Type a number into any of the four input boxes โ€” binary, octal, decimal, or hex.
  2. The other three fields update instantly with the equivalent value.
  3. Click the small Copy button on any card to copy that representation to your clipboard.
FAQ

Up to JavaScript's safe integer limit, 2โตยณ โˆ’ 1 (9,007,199,254,740,991). For bigger values, use a language-native BigInt instead.

Hex output is uppercased for readability (e.g. FF rather than ff). Input accepts either case.

It interprets the value as a 32-bit two's complement signed integer. Numbers above 2,147,483,647 wrap to negative โ€” useful when debugging bit-level code in C, Java, or hardware contexts.