ASCII to Hexadecimal Converter
Popular ASCII to Hex Conversions
| Character | ASCII Code | Hexadecimal | Description |
|---|---|---|---|
| Space | 32 | 20 | Whitespace character |
| 0 | 48 | 30 | Digit zero |
| A | 65 | 41 | Uppercase A |
| a | 97 | 61 | Lowercase a |
| ! | 33 | 21 | Exclamation mark |
| @ | 64 | 40 | At symbol |
| # | 35 | 23 | Hash symbol |
| $ | 36 | 24 | Dollar sign |
Conversion Formula & Steps
How ASCII to Hex Conversion Works
Each ASCII character has a decimal value between 0-127 (extended ASCII goes to 255). To convert to hexadecimal:
Step 1: Find the decimal ASCII value of the character
Step 2: Divide the decimal value by 16
Step 3: The quotient gives the first hex digit
Step 4: The remainder gives the second hex digit
Example: Converting “H” to Hex
Character: H
ASCII Decimal: 72
Calculation:
72 ÷ 16 = 4 remainder 8
Hexadecimal: 48 (where 4 is quotient, 8 is remainder)
Another Example – “e”:
ASCII Decimal: 101
101 ÷ 16 = 6 remainder 5
Hexadecimal: 65
Hexadecimal System Explained
Hexadecimal is a base-16 numbering system that uses:
de>0 1 2 3 4 5 6 7 8 9 A B C D E F
Where A=10, B=11, C=12, D=13, E=14, F=15
Real-World Applications
Web Development
Encoding special characters in URLs, handling form data, and implementing character escape sequences in HTML and JavaScript code.
Network Protocols
Analyzing HTTP headers, debugging API requests, and examining packet data in network traffic monitoring and security analysis.
Data Storage
Storing text in databases using hexadecimal format, optimizing binary data representation, and ensuring cross-platform compatibility.
Programming
Debugging character encoding issues, implementing encryption algorithms, parsing binary file formats, and working with low-level data structures.
Security & Cryptography
Analyzing encrypted messages, working with hash functions, examining digital signatures, and studying security vulnerabilities in systems.
Embedded Systems
Programming microcontrollers, sending commands to hardware devices, and interfacing with sensors using serial communication protocols.
Complete ASCII to Hex Reference Table
| Char | Dec | Hex | Char | Dec | Hex | Char | Dec | Hex |
|---|---|---|---|---|---|---|---|---|
| Space | 32 | 20 | @ | 64 | 40 | ` | 96 | 60 |
| ! | 33 | 21 | A | 65 | 41 | a | 97 | 61 |
| “ | 34 | 22 | B | 66 | 42 | b | 98 | 62 |
| # | 35 | 23 | C | 67 | 43 | c | 99 | 63 |
| $ | 36 | 24 | D | 68 | 44 | d | 100 | 64 |
| % | 37 | 25 | E | 69 | 45 | e | 101 | 65 |
| & | 38 | 26 | F | 70 | 46 | f | 102 | 66 |
| ‘ | 39 | 27 | G | 71 | 47 | g | 103 | 67 |
| ( | 40 | 28 | H | 72 | 48 | h | 104 | 68 |
| ) | 41 | 29 | I | 73 | 49 | i | 105 | 69 |
| * | 42 | 2A | J | 74 | 4A | j | 106 | 6A |
| + | 43 | 2B | K | 75 | 4B | k | 107 | 6B |
| , | 44 | 2C | L | 76 | 4C | l | 108 | 6C |
| – | 45 | 2D | M | 77 | 4D | m | 109 | 6D |
| . | 46 | 2E | N | 78 | 4E | n | 110 | 6E |
| / | 47 | 2F | O | 79 | 4F | o | 111 | 6F |
| 0 | 48 | 30 | P | 80 | 50 | p | 112 | 70 |
| 1 | 49 | 31 | Q | 81 | 51 | q | 113 | 71 |
| 2 | 50 | 32 | R | 82 | 52 | r | 114 | 72 |
| 3 | 51 | 33 | S | 83 | 53 | s | 115 | 73 |
| 4 | 52 | 34 | T | 84 | 54 | t | 116 | 74 |
| 5 | 53 | 35 | U | 85 | 55 | u | 117 | 75 |
| 6 | 54 | 36 | V | 86 | 56 | v | 118 | 76 |
| 7 | 55 | 37 | W | 87 | 57 | w | 119 | 77 |
| 8 | 56 | 38 | X | 88 | 58 | x | 120 | 78 |
| 9 | 57 | 39 | Y | 89 | 59 | y | 121 | 79 |
| : | 58 | 3A | Z | 90 | 5A | z | 122 | 7A |
| ; | 59 | 3B | [ | 91 | 5B | { | 123 | 7B |
| < | 60 | 3C | \ | 92 | 5C | | | 124 | 7C |
| = | 61 | 3D | ] | 93 | 5D | } | 125 | 7D |
| > | 62 | 3E | ^ | 94 | 5E | ~ | 126 | 7E |
| ? | 63 | 3F | _ | 95 | 5F | DEL | 127 | 7F |
