> hexadecimal | base16 | 0xFF <
// Hexadecimal - Convert between text and hex (base 16) representation
Wide Usage
Used in programming, color codes, memory addresses, and debugging.
Human Readable
Compact representation that's easier to read than binary.
Format Options
Support for spaces, uppercase/lowercase, and various formats.
>> technical info
How Hexadecimal Works:
Hexadecimal (base 16) uses 16 symbols: 0-9 and A-F. Each hex digit represents 4 bits (half a byte). Two hex digits represent one byte (8 bits), making it perfect for representing binary data.
Examples:
'A' → 41 'Hello' → 48 65 6C 6C 6F 255 → FF
Why Use Hexadecimal:
- >Color codes (#FF0000)
- >Memory addresses
- >Binary data debugging
- >Character encoding
- >Cryptographic hashes
>> frequently asked questions
What is hexadecimal?
Hexadecimal (hex) is a base-16 number system using digits 0-9 and letters A-F. It's commonly used in computing to represent binary data in a more readable format.
Why use hexadecimal instead of decimal?
Hexadecimal aligns perfectly with binary - each hex digit represents exactly 4 bits. This makes it ideal for representing computer memory, colors, and binary data.
What's the difference between 0x and # prefix?
'0x' is used in programming languages to denote hex numbers (0xFF). '#' is commonly used for web colors (#FF0000). Both indicate hexadecimal notation.
How do I convert hex colors to RGB?
Hex colors use 6 digits: RRGGBB. Each pair represents Red, Green, and Blue values from 00 (0) to FF (255). For example, #FF0000 is RGB(255,0,0) - pure red.