🎓 Computer Science • Number Systems
100% Client-Side Privacy
Hexadecimal Converter (Base 16 ⇄ Bin, Dec, Oct)
Converts base-16 hex values to decimal and binary with 4-bit nibble groupings.
Presets:
Interactive Register Bit-Strip (Click Bits to Toggle)
Decimal (Base 10)
255
Signed 8-bit: -1 | Signed 16-bit: 255
Binary (Base 2)
1111 1111
Prefix:
0b11111111Hexadecimal (Base 16)
0xFF
Nibbles: F F
Octal (Base 8) & ASCII
0o377
ASCII Char: Non-printable
Positional Weight Expansion (Base 2)
(1 × 2^7 = 128) + (1 × 2^6 = 64) + (1 × 2^5 = 32) + (1 × 2^4 = 16) + (1 × 2^3 = 8) + (1 × 2^2 = 4) + (1 × 2^1 = 2) + (1 × 2^0 = 1) = 255
What is Hexadecimal?
Hexadecimal is a base-16 positional numeral system using sixteen distinct symbols: 0–9 and A–F. Each hex digit corresponds exactly to 4 binary bits (one nibble).
Formula & Step-by-Step Calculation
1 Hex Digit = 4 Binary Bits (Nibble) e.g. 0xA = 1010₂
Direct nibble mapping to binary.
Worked Step-by-Step Examples
Example 1
Convert 0x1A to decimal and binary
Solution: Decimal: 26, Binary: 00011010
• (1 × 16¹) + (10 × 16⁰) = 16 + 10 = 26; 1 ⟹ 0001, A ⟹ 1010
Common Real-World & Academic Use Cases
- ✓ Memory dump analysis and pointer debugging
- ✓ CSS Hex color codes (#FFFFFF)
- ✓ MAC address and IPv6 address parsing
How to Use the Hexadecimal Converter (Base 16 ⇄ Bin, Dec, Oct)
1
Enter Hex String
Input hex digits 0-9 and A-F.
2
Read Conversions
View corresponding Decimal and Binary strings.
Frequently Asked Questions
Q: Why is hexadecimal so popular in computing?
Because 2 hex digits represent exactly one 8-bit byte (0x00 to 0xFF), making large binary numbers much more compact and human-readable.