Hexadecimal (hex) provides human-readable representation of binary data.
Why hex is used
- Compact: 1 hex digit = 4 bits, 2 hex digits = 1 byte.
- Readable: Easier than binary (11111111 vs FF).
- Alignment: Matches byte boundaries perfectly.
Common uses
- Color codes: #FF5733 (RGB values in hex).
- Memory addresses: 0x7FFF5FBFF710.
- Character encodings: \x41 = 'A'.
- Hash values: SHA-256 outputs as hex strings.
- MAC addresses: 00:1A:2B:3C:4D:5E.
Conversion
- Decimal 255 = Hex FF = Binary 11111111
- Decimal 16 = Hex 10 = Binary 00010000
- Decimal 42 = Hex 2A = Binary 00101010
Prefixes
- 0x prefix (C, JavaScript): 0xFF
- # prefix (CSS colors): #FF5733
- \x prefix (escape sequences): \x41
Related Articles
View all articlesHow to Identify Unknown Cipher Types in CTF Challenges
Learn systematic techniques for identifying unknown cipher types in CTF competitions. Master frequency analysis, Index of Coincidence, pattern recognition, and other methods to quickly categorize and break encoded messages.
Read article →Webhook Development Complete Guide: Architecture, Security, and Best Practices
Master webhook development from fundamentals to production. Learn architecture patterns, signature verification, retry logic, error handling, and platform integrations for reliable event-driven systems.
Read article →Building a Webhook Provider: Design, Delivery, Documentation & SDK Guide
Learn to build production-grade webhook delivery systems. Master webhook API design, reliable delivery infrastructure, signature verification, retry logic, documentation standards, and client SDK development.
Read article →Webhook Platform Integration Guide: Stripe, GitHub, Slack, Shopify & More
Master webhook integrations for popular platforms. Learn platform-specific signature verification, payload handling, event types, and best practices for Stripe, GitHub, Slack, Shopify, Twilio, and more.
Read article →