Last updated
Common Use Cases
- Decoding Wireshark packet captures to read protocol data
- Reading memory dumps from debuggers and embedded systems
- Understanding URL percent-encoding and decoding
- Analyzing binary file headers (magic bytes)
- Debugging serial communication protocols
- Converting escape sequences in source code
- Verifying character encoding in data pipelines
Examples
Example 1: Basic Hex to ASCII Conversion
Input (hex): 48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21
Output (text): Hello, World!
Breakdown:
48 → H
65 → e
6C → l
6C → l
6F → o
2C → ,
20 → (space)
57 → W
6F → o
72 → r
6C → l
64 → d
21 → !
Example 2: ASCII to Hex Conversion
Input (text): GET /api/users HTTP/1.1
Output (hex): 47 45 54 20 2F 61 70 69 2F 75 73 65 72 73 20 48 54 54 50 2F 31 2E 31
Breakdown:
G → 47 E → 45 T → 54 (space) → 20
/ → 2F a → 61 p → 70 i → 69
/ → 2F u → 75 s → 73 e → 65
r → 72 s → 73 (space) → 20
H → 48 T → 54 T → 54 P → 50
/ → 2F 1 → 31 . → 2E 1 → 31
Example 3: Supported Input Formats
All these formats produce the same output ("Hello"):
Space-separated: 48 65 6C 6C 6F
Continuous string: 48656C6C6F
With 0x prefix: 0x48 0x65 0x6C 0x6C 0x6F
Backslash-x escape: \x48\x65\x6C\x6C\x6F
Uppercase: 48 65 6C 6C 6F
Lowercase: 48 65 6c 6c 6f