We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Was this tool helpful to use?
Your feedback helps us make it better
A versatile UTF-8 encoder and decoder supporting Escape, percent, hex, Unicode escape, and BOM modes. Perfect for development and debugging.
Overview
Understand what the tool solves, how it works, and the boundaries of its data.
UTF-8 represents Unicode text as a sequence of bytes. ASCII characters use their familiar byte values, while many other characters use multiple bytes. This encoder converts the entered text to UTF-8 and displays each byte as two hexadecimal digits. For example, “Hello” becomes 48 65 6C 6C 6F, and “你好” becomes E4 BD A0 E5 A5 BD. The optional spacing switch controls whether spaces appear between byte values.
Decoding removes whitespace from the input, groups the remaining hexadecimal characters into pairs, turns each pair into a byte, and interprets those bytes as UTF-8. An even-length string such as 48 69 decodes to “Hi”. UTF-8 is a byte encoding, so the hex pairs describe bytes rather than Unicode code point numbers. RFC 3629 specifies UTF-8 and requires decoders to protect against invalid sequences.
When the byte sequence is not valid UTF-8, the web text decoder used here may display replacement characters instead of reporting the precise byte error. This can make a result look readable while still differing from the intended original text.
Guide
Follow the workflow and verify inputs and outputs with practical examples.
Use encode when you have text and need its UTF-8 byte values in hexadecimal. Use decode when you already have hexadecimal byte pairs and want to read the UTF-8 text.
For encoding, enter the text as written, including spaces or punctuation. For decoding, enter pairs of hexadecimal digits; spaces and line breaks between pairs are allowed because whitespace is removed before processing.
Turn Add Spaces on for separated pairs such as 48 65, or off for a compact string such as 4865. Spacing is only presentation; it does not change the bytes.
Check the output before using it elsewhere. To verify a round trip, decode the encoded bytes and compare the returned text with the original, especially when punctuation or non-ASCII characters are involved.
Use cases
See how the tool fits into real work and everyday tasks.
When debugging a file or message, encode a short sample to see its UTF-8 bytes and compare the values with a specification or diagnostic log.
Compare an ASCII word with a non-Latin example to see that one visible character may correspond to several UTF-8 bytes. This is useful when learning the difference between text characters and encoded bytes.
A developer can convert a short sample to spaced or compact hex for a controlled test fixture, then decode the bytes to check the result.
Q&A
Find concise answers to common questions and confusing cases.
Each pair represents one byte. UTF-8 uses one or more bytes for a character depending on its Unicode value, so many characters outside ASCII take multiple pairs.
Yes. The decoder removes whitespace before reading pairs. The number of remaining hexadecimal digits must be even.
No. It is a readable notation for the bytes of an encoding. Anyone who knows the format can convert those bytes back; it does not conceal or protect the text.
The bytes may not form a valid UTF-8 sequence. Check that each pair is correct and that the source really uses UTF-8; replacement output is not proof that the original text was recovered.
Notes
Review scope, result limitations, and important precautions before use.
UTF-8 hex is a representation, not encryption. Do not treat encoded output as confidential or as a security control.
Related
Discover related tools, collections, and available API capabilities.