Last updated
Quick Reference: Common Conversions
- 0xFF = 255 decimal = 1111 1111 binary (max byte value)
- 0x7F = 127 decimal = 0111 1111 binary (max signed byte)
- 0x80 = 128 decimal = 1000 0000 binary (min negative signed byte)
- 0x100 = 256 decimal = 1 0000 0000 binary
- 0xFFFF = 65535 decimal (max 16-bit unsigned)
- 0xFFFFFFFF = 4294967295 decimal (max 32-bit unsigned)
All conversions happen entirely in your browser with no data sent to any server. The tool handles numbers of any size with full precision.
Examples
Example 1: All Bases at Once
Enter any number and see all representations simultaneously:
Input: 255 (decimal)
Binary (base-2): 1111 1111
Octal (base-8): 377
Decimal (base-10): 255
Hexadecimal (base-16): FF
The number 255 is significant in computing — it is the maximum value of an unsigned 8-bit integer, the maximum value of a single byte, and the value used for full intensity in RGB color channels (e.g., #FFFFFF is white).
Example 2: Hexadecimal Color Codes
Web colors are expressed as hexadecimal values. Understanding the conversion helps you work with colors programmatically:
Color: #FF5733 (a red-orange)
Red channel: FF hex = 255 decimal = 1111 1111 binary
Green channel: 57 hex = 87 decimal = 0101 0111 binary
Blue channel: 33 hex = 51 decimal = 0011 0011 binary
CSS: color: rgb(255, 87, 51);
Color: #1A2B3C (a dark blue)
Red: 1A hex = 26 decimal
Green: 2B hex = 43 decimal
Blue: 3C hex = 60 decimal
Example 3: Unix File Permissions (Octal)
Unix file permissions are traditionally expressed in octal. Each digit represents read (4), write (2), and execute (1) permissions:
Permission: 755
7 (owner): 111 binary = read + write + execute
5 (group): 101 binary = read + execute
5 (others): 101 binary = read + execute
chmod 755 script.sh → owner can do everything, others can read/execute
Permission: 644
6 (owner): 110 binary = read + write
4 (group): 100 binary = read only
4 (others): 100 binary = read only
chmod 644 config.txt → owner can read/write, others can only read