T
THINKFORU
Submit Feedback

Text to Hex Converter: ASCII & UTF-8 Encoder

Text to Hex Converter: ASCII & UTF-8 Encoder

Text to Hex Converter

Save on Google
Tip: drag and drop a .txt file onto the input box.
Output appears here
 
Related Developer Tools
Tool NameExplanation
Text to Binary ConverterConverts text into 8-bit or 7-bit binary (0s and 1s) instantly.
Binary to Text ConverterDecodes binary (0s and 1s) back into readable text.
Base64 Encode / DecodeEncodes text or files to Base64 and decodes Base64 strings instantly.
JSON to Go Struct ConverterGenerates idiomatic Go structs with json tags from any JSON payload.
JSON to TypeScript InterfaceGenerates typed TypeScript interfaces from any JSON payload.
HTML to JSX ConverterConverts HTML markup into valid React JSX (className, self-closing tags, style objects).
TOML to JSON ConverterTransforms TOML config files into clean, formatted JSON or YAML.

Common Words in Hexadecimal Code

TextCategoryHex (UTF-8)Decimal Bytes
HiGreeting48 6972 105
HelloGreeting48 65 6C 6C 6F72 101 108 108 111
HeyGreeting48 65 7972 101 121
HolaGreeting48 6F 6C 6172 111 108 97
BonjourGreeting42 6F 6E 6A 6F 75 7266 111 110 106 111 117 114
CiaoGreeting43 69 61 6F67 105 97 111
HalloGreeting48 61 6C 6C 6F72 97 108 108 111
NamasteGreeting4E 61 6D 61 73 74 6578 97 109 97 115 116 101
WelcomeGreeting57 65 6C 63 6F 6D 6587 101 108 99 111 109 101
GoodbyeGreeting47 6F 6F 64 62 79 6571 111 111 100 98 121 101
Good MorningGreeting47 6F 6F 64 20 4D 6F 72 6E 69 6E 6771 111 111 100 32 77 111 114 110 105 110 103
Good NightGreeting47 6F 6F 64 20 4E 69 67 68 7471 111 111 100 32 78 105 103 104 116
Good LuckGreeting47 6F 6F 64 20 4C 75 63 6B71 111 111 100 32 76 117 99 107
See YouGreeting53 65 65 20 59 6F 7583 101 101 32 89 111 117
Hello ThereGreeting48 65 6C 6C 6F 20 54 68 65 72 6572 101 108 108 111 32 84 104 101 114 101
LoveLove & Feelings4C 6F 76 6576 111 118 101
I love youLove & Feelings49 20 6C 6F 76 65 20 79 6F 7573 32 108 111 118 101 32 121 111 117
Miss youLove & Feelings4D 69 73 73 20 79 6F 7577 105 115 115 32 121 111 117
HappyLove & Feelings48 61 70 70 7972 97 112 112 121
SadLove & Feelings53 61 6483 97 100
AngryLove & Feelings41 6E 67 72 7965 110 103 114 121
HugLove & Feelings48 75 6772 117 103
KissLove & Feelings4B 69 73 7375 105 115 115
SmileLove & Feelings53 6D 69 6C 6583 109 105 108 101
FriendLove & Feelings46 72 69 65 6E 6470 114 105 101 110 100
FamilyLove & Feelings46 61 6D 69 6C 7970 97 109 105 108 121
MomLove & Feelings4D 6F 6D77 111 109
DadLove & Feelings44 61 6468 97 100
BabyLove & Feelings42 61 62 7966 97 98 121
HeartLove & Feelings48 65 61 72 7472 101 97 114 116
YesCommon Phrase59 65 7389 101 115
NoCommon Phrase4E 6F78 111
OKCommon Phrase4F 4B79 75
ThanksCommon Phrase54 68 61 6E 6B 7384 104 97 110 107 115
Thank youCommon Phrase54 68 61 6E 6B 20 79 6F 7584 104 97 110 107 32 121 111 117
PleaseCommon Phrase50 6C 65 61 73 6580 108 101 97 115 101
SorryCommon Phrase53 6F 72 72 7983 111 114 114 121
CongratsCommon Phrase43 6F 6E 67 72 61 74 7367 111 110 103 114 97 116 115
CoolCommon Phrase43 6F 6F 6C67 111 111 108
AwesomeCommon Phrase41 77 65 73 6F 6D 6565 119 101 115 111 109 101
HelpCommon Phrase48 65 6C 7072 101 108 112
PeaceCommon Phrase50 65 61 63 6580 101 97 99 101
HopeCommon Phrase48 6F 70 6572 111 112 101
DreamCommon Phrase44 72 65 61 6D68 114 101 97 109
BelieveCommon Phrase42 65 6C 69 65 76 6566 101 108 105 101 118 101
Stay StrongCommon Phrase53 74 61 79 20 53 74 72 6F 6E 6783 116 97 121 32 83 116 114 111 110 103
Happy BirthdayCelebration48 61 70 70 79 20 42 69 72 74 68 64 61 7972 97 112 112 121 32 66 105 114 116 104 100 97 121
Merry ChristmasCelebration4D 65 72 72 79 20 43 68 72 69 73 74 6D 61 7377 101 114 114 121 32 67 104 114 105 115 116 109 97 115
Happy New YearCelebration48 61 70 70 79 20 4E 65 77 20 59 65 61 7272 97 112 112 121 32 78 101 119 32 89 101 97 114
Happy DiwaliCelebration48 61 70 70 79 20 44 69 77 61 6C 6972 97 112 112 121 32 68 105 119 97 108 105
Eid MubarakCelebration45 69 64 20 4D 75 62 61 72 61 6B69 105 100 32 77 117 98 97 114 97 107
CongratulationsCelebration43 6F 6E 67 72 61 74 75 6C 61 74 69 6F 6E 7367 111 110 103 114 97 116 117 108 97 116 105 111 110 115
BinaryTech & Code42 69 6E 61 72 7966 105 110 97 114 121
CodeTech & Code43 6F 64 6567 111 100 101
Hello WorldTech & Code48 65 6C 6C 6F 20 57 6F 72 6C 6472 101 108 108 111 32 87 111 114 108 100
PythonTech & Code50 79 74 68 6F 6E80 121 116 104 111 110
JavaScriptTech & Code4A 61 76 61 53 63 72 69 70 7474 97 118 97 83 99 114 105 112 116
JavaTech & Code4A 61 76 6174 97 118 97
GoTech & Code47 6F71 111
RustTech & Code52 75 73 7482 117 115 116
ReactTech & Code52 65 61 63 7482 101 97 99 116
HTMLTech & Code48 54 4D 4C72 84 77 76
CSSTech & Code43 53 5367 83 83
JSONTech & Code4A 53 4F 4E74 83 79 78
SQLTech & Code53 51 4C83 81 76
LinuxTech & Code4C 69 6E 75 7876 105 110 117 120
ComputerTech & Code43 6F 6D 70 75 74 65 7267 111 109 112 117 116 101 114
DataTech & Code44 61 74 6168 97 116 97
BitTech & Code42 69 7466 105 116
ByteTech & Code42 79 74 6566 121 116 101
HackerTech & Code48 61 63 6B 65 7272 97 99 107 101 114
AdminTech & Code41 64 6D 69 6E65 100 109 105 110
PasswordTech & Code50 61 73 73 77 6F 72 6480 97 115 115 119 111 114 100
InternetTech & Code49 6E 74 65 72 6E 65 7473 110 116 101 114 110 101 116
GoogleTech & Code47 6F 6F 67 6C 6571 111 111 103 108 101
AndroidTech & Code41 6E 64 72 6F 69 6465 110 100 114 111 105 100
RobotTech & Code52 6F 62 6F 7482 111 98 111 116
AITech & Code41 4965 73
CatEveryday Word43 61 7467 97 116
DogEveryday Word44 6F 6768 111 103
SunEveryday Word53 75 6E83 117 110
MoonEveryday Word4D 6F 6F 6E77 111 111 110
StarEveryday Word53 74 61 7283 116 97 114
FireEveryday Word46 69 72 6570 105 114 101
WaterEveryday Word57 61 74 65 7287 97 116 101 114
EarthEveryday Word45 61 72 74 6869 97 114 116 104
MoneyEveryday Word4D 6F 6E 65 7977 111 110 101 121
GameEveryday Word47 61 6D 6571 97 109 101
MusicEveryday Word4D 75 73 69 6377 117 115 105 99
MagicEveryday Word4D 61 67 69 6377 97 103 105 99
KingEveryday Word4B 69 6E 6775 105 110 103
QueenEveryday Word51 75 65 65 6E81 117 101 101 110
AngelEveryday Word41 6E 67 65 6C65 110 103 101 108
TigerEveryday Word54 69 67 65 7284 105 103 101 114
LifeEveryday Word4C 69 66 6576 105 102 101
TimeEveryday Word54 69 6D 6584 105 109 101
WorldEveryday Word57 6F 72 6C 6487 111 114 108 100
HomeEveryday Word48 6F 6D 6572 111 109 101
LightEveryday Word4C 69 67 68 7476 105 103 104 116
DarkEveryday Word44 61 72 6B68 97 114 107

ASCII Hex Reference Matrix (0-127)

CharacterHexDecimalOctalBits (8-bit)
NUL (Null)00000000000000
SOH01100100000001
STX02200200000010
ETX03300300000011
EOT04400400000100
ENQ05500500000101
ACK06600600000110
BEL (Bell)07700700000111
BS (Backspace)08801000001000
HT (Horizontal Tab)09901100001001
LF (Line Feed)0A1001200001010
VT0B1101300001011
FF0C1201400001100
CR (Carriage Return)0D1301500001101
SO0E1401600001110
SI0F1501700001111
DLE101602000010000
DC1111702100010001
DC2121802200010010
DC3131902300010011
DC4142002400010100
NAK152102500010101
SYN162202600010110
ETB172302700010111
CAN182403000011000
EM192503100011001
SUB1A2603200011010
ESC (Escape)1B2703300011011
FS1C2803400011100
GS1D2903500011101
RS1E3003600011110
US1F3103700011111
SP (Space)203204000100000
!213304100100001
"223404200100010
#233504300100011
$243604400100100
%253704500100101
&263804600100110
'273904700100111
(284005000101000
)294105100101001
*2A4205200101010
+2B4305300101011
,2C4405400101100
-2D4505500101101
.2E4605600101110
/2F4705700101111
0304806000110000
1314906100110001
2325006200110010
3335106300110011
4345206400110100
5355306500110101
6365406600110110
7375506700110111
8385607000111000
9395707100111001
:3A5807200111010
;3B5907300111011
<3C6007400111100
=3D6107500111101
>3E6207600111110
?3F6307700111111
@406410001000000
A416510101000001
B426610201000010
C436710301000011
D446810401000100
E456910501000101
F467010601000110
G477110701000111
H487211001001000
I497311101001001
J4A7411201001010
K4B7511301001011
L4C7611401001100
M4D7711501001101
N4E7811601001110
O4F7911701001111
P508012001010000
Q518112101010001
R528212201010010
S538312301010011
T548412401010100
U558512501010101
V568612601010110
W578712701010111
X588813001011000
Y598913101011001
Z5A9013201011010
[5B9113301011011
\5C9213401011100
]5D9313501011101
^5E9413601011110
_5F9513701011111
`609614001100000
a619714101100001
b629814201100010
c639914301100011
d6410014401100100
e6510114501100101
f6610214601100110
g6710314701100111
h6810415001101000
i6910515101101001
j6A10615201101010
k6B10715301101011
l6C10815401101100
m6D10915501101101
n6E11015601101110
o6F11115701101111
p7011216001110000
q7111316101110001
r7211416201110010
s7311516301110011
t7411616401110100
u7511716501110101
v7611816601110110
w7711916701110111
x7812017001111000
y7912117101111001
z7A12217201111010
{7B12317301111011
|7C12417401111100
}7D12517501111101
~7E12617601111110
DEL (Delete)7F12717701111111

UTF-8 Multi-Byte Hex Reference Matrix

Example / RangeCode PointBytesUTF-8 Hex
1-byte range (ASCII)U+0000 to U+007F100-7F
2-byte rangeU+0080 to U+07FF2C2-DF 80-BF
3-byte rangeU+0800 to U+FFFF3E0-EF 80-BF 80-BF
4-byte rangeU+10000 to U+10FFFF4F0-F4 80-BF 80-BF 80-BF
AU+0041141
éU+00E92C3 A9
ñU+00F12C3 B1
ßU+00DF2C3 9F
£U+00A32C2 A3
€U+20AC3E2 82 AC
₹U+20B93E2 82 B9
✓U+27133E2 9C 93
★U+26053E2 98 85
नU+09283E0 A4 A8
你U+4F603E4 BD A0
あU+30423E3 81 82
한U+D55C3ED 95 9C
😀U+1F6004F0 9F 98 80
🙂U+1F6424F0 9F 99 82
🚀U+1F6804F0 9F 9A 80

Technical Q&A / FAQ Matrix

Technical Developer QuestionExact Solution & Code Snippet
How do I convert text to hex in JavaScript?[...new TextEncoder().encode(text)].map(b => b.toString(16).padStart(2, '0')).join(' ')
How do I convert text to hex in Python?text.encode('utf-8').hex(' ')
How do I convert text to hex in Go?fmt.Printf("% X", []byte(s))
How do I convert text to hex in Java?for (byte b : s.getBytes(StandardCharsets.UTF_8)) System.out.printf("%02X ", b);
How do I convert text to hex in C#?Convert.ToHexString(Encoding.UTF8.GetBytes(s))
How do I convert text to hex in PHP?echo bin2hex($s);
How do I convert text to hex in Rust?s.bytes().map(|b| format!("{:02X}", b)).collect::<Vec<_>>().join(" ")
How do I convert text to hex on Linux?printf '%s' 'Hi' | od -An -tx1
What is the hex code for the letter A?41 (decimal 65). The lowercase a is 61.
How many hex digits does one byte need?Exactly 2. One hex digit holds 4 bits, so a byte (8 bits) is two digits from 00 to FF.
Why does an emoji give 8 hex digits?UTF-8 uses 1 to 4 bytes per character. The rocket emoji is 4 bytes: F0 9F 9A 80.
Why is the hex for an accented letter longer?Characters above U+007F take 2 to 4 bytes in UTF-8. The letter e with an acute accent is C3 A9.
What is the hex code for a space?20 (decimal 32).
What do the 0x, \x and % prefixes mean?0x marks a hex number in C, JavaScript and Python. \x is a byte escape inside strings. % is URL percent-encoding, for example %48%69.
Is uppercase or lowercase hex correct?Both are valid and equal. 4A and 4a are the same byte, so use whichever your style guide prefers.
How do I convert hex back to text?new TextDecoder().decode(new Uint8Array(hex.match(/../g).map(h => parseInt(h, 16))))