Convert ordinary text into hexadecimal UTF-8 bytes, or decode a hexadecimal string back into readable text. Choose the direction, paste your value, and copy or download the result without writing code.
The converter handles standard ASCII characters as well as accents, non-Latin scripts, and emojis. All processing happens locally in your browser, and invalid hex or malformed UTF-8 produces a clear error instead of a guessed result.
Convert text to hexadecimal
Decode hex back to readable text
Add a space between each hex byte
Use A-F instead of a-f
A text-to-hex converter represents the bytes of a text string with hexadecimal digits. Each byte becomes two digits from 00 to ff. Converting in the other direction rebuilds those bytes and decodes them as text.
This is useful when inspecting byte values, preparing a string for documentation or source code, checking a protocol sample, or reading hex copied from a log or debugger. It does not convert color values, decimal numbers, or arbitrary binary files.
Select Text to Hex and enter a word, sentence, or multiline string. The tool encodes it as UTF-8 and prints each byte as a two-digit hexadecimal value.
Use the output options to switch between uppercase and lowercase, remove spaces, or add a 0x or \x prefix to every byte. These options change the display format, not the underlying byte values.
Select Hex to Text and paste an even number of hexadecimal digits. The converter removes supported prefixes and whitespace, turns each pair of digits into a byte, and decodes the resulting byte sequence as UTF-8.
For example, 48 65 6c 6c 6f becomes Hello. Input containing non-hex characters, an incomplete final byte, or an invalid UTF-8 sequence is rejected so that a damaged value is not presented as valid text.
ASCII covers basic English letters, digits, punctuation, and control values. UTF-8 uses the same single-byte values for every ASCII character, so ordinary English text converts identically in both encodings.
That means A converts to 41, and 48 69 converts to Hi. The tool can therefore be used as a hex-to-ASCII translator for values below 80 hexadecimal while still supporting the broader UTF-8 character set when a string contains other languages or symbols.
Characters outside basic ASCII use more than one UTF-8 byte. For example, café becomes 63 61 66 c3 a9, while 😀 becomes f0 9f 98 80.
When decoding, the complete byte sequence must form valid UTF-8. A single byte copied from the middle of a multibyte character cannot be decoded on its own; paste the full sequence to recover the original character.
The decoder accepts the common layouts below, using uppercase or lowercase digits:
Whitespace and line breaks are allowed. Separators such as commas, colons, or hyphens are not removed automatically and must be deleted before decoding.
Text and hex values are converted on your device with the browser's built-in UTF-8 support. The page does not need to upload the input or call a conversion API.
Local processing is useful for quick checks of internal snippets, but it does not make an unsafe value trustworthy. Review decoded data before using it in code, commands, or security-sensitive systems.
A web color such as #1e90ff also uses hexadecimal notation, but its bytes describe red, green, and blue channels rather than encoded text. This page converts text and UTF-8 byte strings only.
If you need to select, inspect, or convert a color, use a dedicated color tool instead of decoding the value as text.
Select Text to Hex, enter your text, and copy the generated byte values. You can choose spaces, letter case, and either no prefix, 0x, or \x for the output format.
Select Hex to Text and paste continuous, space-separated, 0x-prefixed, or \x-prefixed hexadecimal bytes. The converter validates the input and decodes the bytes as UTF-8.
In ASCII and UTF-8, Hello is 48 65 6c 6c 6f. Removing the spaces gives the equivalent continuous representation 48656c6c6f.
They are identical for basic ASCII characters because ASCII byte values keep the same meaning in UTF-8. UTF-8 additionally supports multibyte sequences for accents, other writing systems, symbols, and emojis.
The input may contain a character outside 0-9 and A-F, an odd number of digits, an unsupported separator, or bytes that do not form valid UTF-8. Correct the source value rather than adding a guessed byte.
No. It treats hexadecimal pairs as text bytes, not RGB color channels. A dedicated color converter is the correct tool for values such as #1e90ff.
No. The conversion runs locally in your browser. Your input is not required by a server or remote conversion API.
Free online tools to convert, encode, and transform your text
Transform text case — uppercase, lowercase, title case & more
Convert text to Morse code and vice versa
Decode Morse code from audio files or microphone
Convert text to binary and vice versa
Encode and decode Base64 text
Encode and decode text using ROT13 cipher
Convert text to Unicode superscript where supported
Convert text to Unicode subscript where supported
Generate small caps, tiny superscript, and subscript text to copy and paste
Generate copy-paste Unicode strikethrough text instantly
Convert images to Base64 / Data URI
Encode and decode URL components, query strings, and percent-encoded text
Encode and decode HTML entities such as &, <, >, ", and '
Translate English to Pig Latin and back