Text to HEX
Convert text to hexadecimal — every character becomes its hex byte code.
How to use Text to HEX
- Type or paste your text into the input box.
- Read the hex codes instantly — one space-separated code per character: "Hi" → 48 69.
- Note multi-digit codes for non-ASCII characters: € shows as 20AC (its Unicode code point in hex).
- Click “Copy result” to use the codes in escapes (\x48), URLs or documentation.
What is Text to HEX?
A text to hex converter rewrites each character of a string as its character code in base 16: H is code 72 = hex 48, i is 105 = 69, so "Hi" becomes 48 69. Hex is the standard way to show text's raw bytes because each ASCII character fits exactly two hex digits.
You meet text-as-hex everywhere below the surface: URL percent-encoding (space = %20 — that 20 is hex 32), hex editors and network packet dumps, protocol specs, magic bytes in file headers, and escape sequences like \x41 in code.
About the Text to HEX
Type or paste text and each character's hex code appears instantly, space-separated and ready to copy.
Practical jobs: predicting what percent-encoding will do to a character (é → E9, hence %C3%A9 in UTF-8 URLs), crafting or verifying test payloads for protocol work, writing \x escape sequences, comparing what a hex dump should say against what it does say when hunting an encoding bug, and building classroom exercises about character encoding. Full Unicode is supported — characters beyond ASCII simply produce codes longer than two digits (€ → 20AC).
Conversion is live and local to your browser. Hex to Text decodes the other way; Text to Binary and Text to ASCII show the same string in other notations.