Skip to content

UTF-8 Byte Viewer

Embed

Paste this where you want UTF-8 Byte Viewer on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/utf8-encoder-decoder/" width="100%" height="500" frameborder="0" loading="lazy" title="UTF-8 Byte Viewer"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/utf8-encoder-decoder/">UTF-8 Byte Viewer</a> by BrowserUtils</p>

View UTF-8 byte sequences for any text.Runs in this tab.

Enter text above to see its UTF-8 byte breakdown.

Next step

About UTF-8 Byte Viewer

Free online UTF-8 encoder and decoder. See the exact byte sequences for any text in UTF-8 encoding, with hex and binary views. It runs in your browser. Nothing is sent to a server.

Questions

What is UTF-8?
UTF-8 is a variable-width character encoding that uses 1 to 4 bytes per character. ASCII characters use 1 byte, while characters like emoji can use up to 4 bytes.
Why is knowing the byte sequence useful?
Understanding UTF-8 byte sequences helps debug encoding issues, calculate string sizes for databases, and work with binary protocols.
How do I fix mojibake (garbled text)?
Mojibake occurs when text is decoded with the wrong encoding. Use this tool to inspect the bytes and determine whether the text was encoded as UTF-8, Latin-1, or another encoding.
How many bytes does an emoji use in UTF-8?
Most emoji use 4 bytes in UTF-8. Some emoji sequences (like flags or skin tone variants) consist of multiple code points joined together and can use 8-28 bytes.
How do I check the byte length of a string in UTF-8?
Paste your text into the tool and it will show the total number of bytes and the byte breakdown for each character. This is useful for checking database column size limits.
What is the difference between UTF-8 and UTF-16?
UTF-8 uses 1-4 bytes per character and is the dominant encoding on the web. UTF-16 uses 2 or 4 bytes per character and is used internally by JavaScript, Java, and Windows.

More in Encoding & Decoding

All 20 encoding & decoding