UTF-8 Byte Viewer
View UTF-8 byte sequences for any text.Runs in this tab.⌘ ↵ runs it
Enter text above to see its UTF-8 byte breakdown.
Next step
AtriumKitFrom the team behind browserutils
Turn a click-through into an interactive demo
AtriumKit records your web app once in Chrome and turns every click into a step of a demo you can embed or share. There’s a free plan.
Try AtriumKit freeAbout 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.
Comments
More in Encoding & Decoding
- Base64 Encoder / Decoder
- URL Encoder / Decoder
- HTML Entity Encoder / Decoder
- JWT Decoder
- Base32 Encoder / Decoder
- ROT13 Encoder / Decoder
- Morse Code Translator
- Binary to Text Converter
Comments