Number Base Converter
Results
- Binary (2)
- 11111111
- Octal (8)
- 377
- Decimal (10)
- 255
- Hexadecimal (16)
- FF
- 73
- Bits needed
- 8
- Bits set to 1
- 8
- Unicode character
- U+00FF ÿ
Two's complement
How this number is stored in a fixed number of bits, read as signed and unsigned. Tap a bit to flip it.
- Signed
- -1
- Unsigned
- 255
- Hex
- 0xFF
- Binary
- 1111 1111
- Bytes, big-endian
- FF
- Bytes, little-endian
- FF
- Bitwise NOT
- 0x00
Bits
The leftmost bit is the sign bit: when it is 1, the signed value is negative.How it's worked out
| Division | Quotient | Remainder |
|---|---|---|
| 255 ÷ 2 | 127 | 1 |
| 127 ÷ 2 | 63 | 1 |
| 63 ÷ 2 | 31 | 1 |
| 31 ÷ 2 | 15 | 1 |
| 15 ÷ 2 | 7 | 1 |
| 7 ÷ 2 | 3 | 1 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Remainders from bottom to top: 11111111
Convert numbers between binary, octal, decimal, hex and any base from 2 to 36 - exact for huge numbers, fractions and two's complement.
A converter for programmers, students and anyone reading a hex dump: type a number in binary, octal, decimal, hexadecimal or any base from 2 to 36 and see it in all of them at once. It is exact - a 40-digit number keeps every digit, and a fraction like 0.1 shows the digits that repeat forever instead of a rounded guess. Whole numbers also get their two's complement at 8 to 128 bits, with byte order and a bit grid you can click, and the steps behind each conversion for homework.