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

  1. Type text or code points.
  2. Choose the byte format.
  3. 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.