Text & Dev Tools
Number Base Converter
Convert between binary, octal, decimal, hex, and any base from 2 to 36. All fields update simultaneously.
Examples:
Decimal
base 10
Binary
base 2
0b
Octal
base 8
0o
Hexadecimal
base 16
0x
Bit Visualizer
Custom Base
Base
Base
0
Bits Needed
—
Power of 2?
—
Signed (8-bit)
—
ASCII Char
Runs in your browser
No data sent to server
100% free forever
Quick Reference
Powers of 2
| Power | Decimal | Hex | Binary |
|---|---|---|---|
| 20 | 1 | 1 | 1 |
| 24 | 16 | 10 | 10000 |
| 27 | 128 | 80 | 10000000 |
| 28 | 256 | 100 | 1 00000000 |
| 210 | 1024 | 400 | 100 00000000 |
| 216 | 65536 | 10000 | 1 00000000 00000000 |
| 232 | 4294967296 | 1 00000000 | (33 bits) |
Common Bitmask Values
| Name | Dec | Hex | Binary |
|---|---|---|---|
| Max signed byte | 127 | 7F | 01111111 |
| Max unsigned byte | 255 | FF | 11111111 |
| Max unsigned 16-bit | 65535 | FFFF | 16 × 1 |
| Unix permission rwx | 7 | 7 | 111 |