📚Dev Reference
Binary & Hex Reference
Common number conversions for developers.
Explanation
Hexadecimal is used as a compact representation of binary data (1 hex digit = 4 bits).
Examples
Dec 15
Output
Hex F, Bin 1111
Dec 255
Output
Hex FF, Bin 11111111
Code Examples
Chart
Hex Bin Dec
0 0000 0
8 1000 8
A 1010 10
F 1111 15
FF 1111.. 255Try it Now
💡 Tips
- Each hex character represents 4 bits (a "nibble")
- Two hex characters represent 8 bits (a "byte")
- Useful for colors, permissions, and low-level data
⚠️ Common Pitfalls
- Miscounting zeros in long binary strings