…
…
The browser-based utility converts ASCII letters to Hex bytes - encodes and translates characters, letters, words, and sentences. Use this tool to convert any text to Hex format.
function ASCIIToHexadecimal($str) {
$hex = ""; $strLen = strLen($str); for ($i = 0; $i < $strLen; $i++) {
$chex = DecimalToHexadecimal(ord($str[$i])); if (strlen($chex) == 1) $chex = substr_replace($chex, "0", 0, 0); $hex .= $chex;
} return $hex;
} function DecimalToHexadecimal($dec) {
if ($dec < 1) return "0"; $hex = $dec; $hexStr = ""; while ($dec > 0) {
$hex = $dec % 16; if ($hex < 10) $hexStr = substr_replace($hexStr, chr($hex + 48), 0, 0); else $hexStr = substr_replace($hexStr, chr($hex + 55), 0, 0); $dec = floor($dec / 16);
} return $hexStr;
}
DEC | OCT | HEX | BIN | Symbol | HTML Number | HTML Name | Description | |
---|---|---|---|---|---|---|---|---|
32 | 040 | 20 | 00100000 |   | Space | |||
33 | 041 | 21 | 00100001 | ! | ! | Exclamation mark | ||
34 | 042 | 22 | 00100010 | " | " | " | Double quotes (or speech marks) | |
35 | 043 | 23 | 00100011 | # | # | Number | ||
36 | 044 | 24 | 00100100 | $ | $ | Dollar | ||
37 | 045 | 25 | 00100101 | % | % | Per cent sign | ||
38 | 046 | 26 | 00100110 | & | & | & | Ampersand | |
39 | 047 | 27 | 00100111 | ' | ' | Single quote | ||
40 | 050 | 28 | 00101000 | ( | ( | Open parenthesis (or open bracket) | ||
41 | 051 | 29 | 00101001 | ) | ) | Close parenthesis (or close bracket) | ||
42 | 052 | 2A | 00101010 | * | * | Asterisk | ||
43 | 053 | 2B | 00101011 | + | + | Plus | ||
44 | 054 | 2C | 00101100 | , | , | Comma | ||
45 | 055 | 2D | 00101101 | - | - | Hyphen | ||
46 | 056 | 2E | 00101110 | . | . | Period, dot or full stop | ||
47 | 057 | 2F | 00101111 | / | / | Slash or divide | ||
48 | 060 | 30 | 00110000 | 0 | 0 | Zero | ||
49 | 061 | 31 | 00110001 | 1 | 1 | One | ||
50 | 062 | 32 | 00110010 | 2 | 2 | Two | ||
51 | 063 | 33 | 00110011 | 3 | 3 | Three | ||
52 | 064 | 34 | 00110100 | 4 | 4 | Four | ||
53 | 065 | 35 | 00110101 | 5 | 5 | Five | ||
54 | 066 | 36 | 00110110 | 6 | 6 | Six | ||
55 | 067 | 37 | 00110111 | 7 | 7 | Seven | ||
56 | 070 | 38 | 00111000 | 8 | 8 | Eight | ||
57 | 071 | 39 | 00111001 | 9 | 9 | Nine | ||
58 | 072 | 3A | 00111010 | : | : | Colon | ||
59 | 073 | 3B | 00111011 | ; | ; | Semicolon | ||
60 | 074 | 3C | 00111100 | < | < | < | Less than (or open angled bracket) | |
61 | 075 | 3D | 00111101 | = | = | Equals | ||
62 | 076 | 3E | 00111110 | > | > | > | Greater than (or close angled bracket) | |
63 | 077 | 3F | 00111111 | ? | ? | Question mark | ||
64 | 100 | 40 | 01000000 | @ | @ | At symbol | ||
65 | 101 | 41 | 01000001 | A | A | Uppercase A | ||
66 | 102 | 42 | 01000010 | B | B | Uppercase B | ||
67 | 103 | 43 | 01000011 | C | C | Uppercase C | ||
68 | 104 | 44 | 01000100 | D | D | Uppercase D | ||
69 | 105 | 45 | 01000101 | E | E | Uppercase E | ||
70 | 106 | 46 | 01000110 | F | F | Uppercase F | ||
71 | 107 | 47 | 01000111 | G | G | Uppercase G | ||
72 | 110 | 48 | 01001000 | H | H | Uppercase H | ||
73 | 111 | 49 | 01001001 | I | I | Uppercase I | ||
74 | 112 | 4A | 01001010 | J | J | Uppercase J | ||
75 | 113 | 4B | 01001011 | K | K | Uppercase K | ||
76 | 114 | 4C | 01001100 | L | L | Uppercase L | ||
77 | 115 | 4D | 01001101 | M | M | Uppercase M | ||
78 | 116 | 4E | 01001110 | N | N | Uppercase N | ||
79 | 117 | 4F | 01001111 | O | O | Uppercase O | ||
80 | 120 | 50 | 01010000 | P | P | Uppercase P | ||
81 | 121 | 51 | 01010001 | Q | Q | Uppercase Q | ||
82 | 122 | 52 | 01010010 | R | R | Uppercase R | ||
83 | 123 | 53 | 01010011 | S | S | Uppercase S | ||
84 | 124 | 54 | 01010100 | T | T | Uppercase T | ||
85 | 125 | 55 | 01010101 | U | U | Uppercase U | ||
86 | 126 | 56 | 01010110 | V | V | Uppercase V | ||
87 | 127 | 57 | 01010111 | W | W | Uppercase W | ||
88 | 130 | 58 | 01011000 | X | X | Uppercase X | ||
89 | 131 | 59 | 01011001 | Y | Y | Uppercase Y | ||
90 | 132 | 5A | 01011010 | Z | Z | Uppercase Z | ||
91 | 133 | 5B | 01011011 | [ | [ | Opening bracket | ||
92 | 134 | 5C | 01011100 | \ | \ | Backslash | ||
93 | 135 | 5D | 01011101 | ] | ] | Closing bracket | ||
94 | 136 | 5E | 01011110 | ^ | ^ | Caret - circumflex | ||
95 | 137 | 5F | 01011111 | _ | _ | Underscore | ||
96 | 140 | 60 | 01100000 | ` | ` | Grave accent | ||
97 | 141 | 61 | 01100001 | a | a | Lowercase a | ||
98 | 142 | 62 | 01100010 | b | b | Lowercase b | ||
99 | 143 | 63 | 01100011 | c | c | Lowercase c | ||
100 | 144 | 64 | 01100100 | d | d | Lowercase d | ||
101 | 145 | 65 | 01100101 | e | e | Lowercase e | ||
102 | 146 | 66 | 01100110 | f | f | Lowercase f | ||
103 | 147 | 67 | 01100111 | g | g | Lowercase g | ||
104 | 150 | 68 | 01101000 | h | h | Lowercase h | ||
105 | 151 | 69 | 01101001 | i | i | Lowercase i | ||
106 | 152 | 6A | 01101010 | j | j | Lowercase j | ||
107 | 153 | 6B | 01101011 | k | k | Lowercase k | ||
108 | 154 | 6C | 01101100 | l | l | Lowercase l | ||
109 | 155 | 6D | 01101101 | m | m | Lowercase m | ||
110 | 156 | 6E | 01101110 | n | n | Lowercase n | ||
111 | 157 | 6F | 01101111 | o | o | Lowercase o | ||
112 | 160 | 70 | 01110000 | p | p | Lowercase p | ||
113 | 161 | 71 | 01110001 | q | q | Lowercase q | ||
114 | 162 | 72 | 01110010 | r | r | Lowercase r | ||
115 | 163 | 73 | 01110011 | s | s | Lowercase s | ||
116 | 164 | 74 | 01110100 | t | t | Lowercase t | ||
117 | 165 | 75 | 01110101 | u | u | Lowercase u | ||
118 | 166 | 76 | 01110110 | v | v | Lowercase v | ||
119 | 167 | 77 | 01110111 | w | w | Lowercase w | ||
120 | 170 | 78 | 01111000 | x | x | Lowercase x | ||
121 | 171 | 79 | 01111001 | y | y | Lowercase y | ||
122 | 172 | 7A | 01111010 | z | z | Lowercase z | ||
123 | 173 | 7B | 01111011 | { | { | Opening brace | ||
124 | 174 | 7C | 01111100 | | | | | Vertical bar | ||
125 | 175 | 7D | 01111101 | } | } | Closing brace | ||
126 | 176 | 7E | 01111110 | ~ | ~ | Equivalency sign - tilde | ||
127 | 177 | 7F | 01111111 |  | Delete |
Hex, or hexadecimal, is a number system of base 16. This number system is especially interesting because in our casually used decimal system we have only 10 digits to represent numbers. As hex system has 16 digits, the extra needed 6 digits are represented by the first 6 letters of English alphabet. Hence, hex digits are 0,1,2,3,4,5,6,7,8 and 9 A, B, C, D, E, F. This number system is the most commonly used in mathematics and information technologies. I.e. in html programming colors can be represented by a 6-digit hexadecimal number: FFFFFF represents white, 000000 represents black, and so on.
Decimal to hex conversion is a common task in programming, mathematics, and digital electronics. Converting a decimal number (base 10) to hexadecimal (base 16) involves dividing the decimal number by 16 and using the remainder to determine the corresponding hexadecimal digits. Hexadecimal numbers are widely used in computer systems because they provide a more compact representation of binary data. Whether you're a developer, student, or enthusiast, mastering decimal to hex conversions can be incredibly useful for debugging code, working with color codes, or exploring low-level hardware operations.
ASCII (American Standard Code for Information Interchange) is a character encoding standard used for representing text in computers. Each character is assigned a unique numerical value, allowing consistent data representation across different systems.
The hexadecimal system is a base-16 numbering system used extensively in computing and digital electronics. It provides a human-friendly representation of binary-coded values, making it easier to read and debug.
Converting ASCII to binary involves translating each ASCII character into its binary equivalent. This process is fundamental in understanding how data is processed at the machine level.
Reverse conversion from hexadecimal to ASCII is equally important. This allows users to decode hex-encoded data into human-readable text, facilitating data analysis and debugging.
Hexadecimal notation is widely used in programming for memory addresses, color codes in web design, and succinctly defining binary data. Understanding hex can streamline coding practices and debugging processes.
Proper data encoding ensures data integrity and security during transmission and storage. Employing standardized encoding methods like ASCII and hex helps maintain consistency across various platforms and applications.
Explore other online encoding and decoding tools that complement the ASCII to Hex converter, such as Base64 encoders, URL encoders, and JSON formatters, to handle diverse data transformation needs.
Leverage Python, JavaScript, and Java programming libraries that offer built-in functions for ASCII and hex conversions, enabling automated and scalable data processing solutions.
If you automate a mess, you get an automated mess.
…