Enter a number, choose the base it is written in (2 to 36), and see it in binary, octal, decimal, hexadecimal and base 36 at once. It uses big integers, so even very large values convert exactly. Everything runs in your browser.
0x, 0b and 0o are accepted for the matching base, and spaces, commas and underscores are ignored.| Decimal | Binary | Octal | Hex | Base 36 |
|---|---|---|---|---|
| 10 | 1010 | 12 | A | A |
| 255 | 11111111 | 377 | FF | 73 |
| 1024 | 10000000000 | 2000 | 400 | SG |
| 4095 | 111111111111 | 7777 | FFF | 35R |
| 65535 | 1111111111111111 | 177777 | FFFF | 1EKF |
A base (or radix) is how many digits a number system uses. Decimal uses ten (0–9), binary uses two (0 and 1), octal uses eight (0–7) and hexadecimal uses sixteen (0–9 plus A–F). The same value can be written in any of them: 255 is 11111111 in binary, 377 in octal and FF in hex. Bases above 10 use letters for the extra digits, up to Z for base 36.
#FF8800), memory addresses, byte values, hashes and Unicode code points.-1010 rather than a fixed-width bit pattern.Turn hex values into colors with the color converter, encode bytes as text with Base64, or convert dates with the timestamp converter.
0b111111110o3772550xFF73