Unicode to UTF-8
Convert Unicode code points to UTF-8 encoded byte sequences.
See the UTF-8 bytes behind any character. Type text, or code points written as U+00E9, \u20AC or 0x1F600, and get the bytes in the format you need: hex (E2 82 AC), escaped (\xE2\x82\xAC), percent-encoded (%E2%82%AC), decimal or binary. It's useful for debugging encoding bugs, writing byte escapes in code and understanding why some characters take more space.
Need the reverse? UTF-8 to Unicode
Common use cases
- Find the UTF-8 bytes for a character to use in code
- Debug mojibake such as é instead of é
- Teach how UTF-8 encodes characters
How to use
- Type text or code points.
- Choose the byte format.
- Copy the result.
FAQ
How many bytes does a character take in UTF-8?
One for ASCII, two for most European accented letters, three for most other scripts and many symbols, and four for emoji.
Why do I see é instead of é?
UTF-8 bytes (C3 A9) were read as Latin-1. This tool shows those bytes so you can see the mix-up.
Related tools
- UTF-8 to UnicodeConvert UTF-8 encoded bytes back to Unicode code points.
- Text to HexConvert text characters to hexadecimal values.
- URL EncodeEncode text for safe use in URLs by converting special characters to percent-encoded format.
- URL DecodeDecode percent-encoded URLs back to readable text with special characters restored.
- Base64 EncodeConvert text or binary data to Base64 encoded string for safe transmission.
- Base64 DecodeDecode Base64 encoded strings back to original text or binary data.
- Unicode Reference TableIn Reference