Encode
Turns plain text into its UTF-8 bytes. Works with any characters, including emoji and accented letters, because the text is read as UTF-8.
HiAfter48 69Convert text to UTF-8 bytes and back in one place. Pick a direction and a format, type or paste your text, and click Encode or Decode to see the result. It handles emoji and accented characters, and everything runs in your browser so your text stays on your device.
UTF-8 is the standard way to store text as bytes. Each character maps to one or more bytes, from a single byte for plain English letters to four bytes for an emoji. It is used almost everywhere text is stored or sent: web pages, files, databases, and APIs. This tool shows you the exact bytes behind your text, or turns a list of bytes back into readable text with one click.
Turns plain text into its UTF-8 bytes. Works with any characters, including emoji and accented letters, because the text is read as UTF-8.
HiAfter48 69Turns a list of bytes or code points back into text. Spaces, commas, and line breaks between values are all accepted.
48 69AfterHiShow the UTF-8 bytes as hex (00 to FF) or as decimal (0 to 255). Decoding reads either style, and an optional 0x prefix on each value is fine.
éAfterC3 A9Show the Unicode code point of each character in U+ form instead of raw bytes. This is the value you look up in a Unicode chart.
A€AfterU+0041 U+20ACUTF-8 stores each character as one to four bytes. The number of bytes depends on the character. Common ones stay small, and rarer ones use more space. This design keeps English text compact while still covering every character in Unicode.
This is why a code point and its UTF-8 bytes can look different. The code point is the character's number in Unicode. The bytes are how that number is packed for storage. A few examples:
| Character | Code point | UTF-8 bytes (hex) | Byte count |
|---|---|---|---|
| A | U+0041 | 41 | 1 |
| é | U+00E9 | C3 A9 | 2 |
| € | U+20AC | E2 82 AC | 3 |
| 日 | U+65E5 | E6 97 A5 | 3 |
| 😀 | U+1F600 | F0 9F 98 80 | 4 |
You can check any of these yourself. Type the character into the tool above, pick a format, and click Encode to see its bytes or code point.
These three terms come up together a lot, and it helps to keep them apart. Unicode is the master list of characters. It gives every letter, digit, symbol, and emoji a unique number called a code point, written like U+0041. Unicode does not say how those numbers are stored, only what they are.
UTF-8 is one way to store those code points as bytes. It is the most common encoding on the web, used by the large majority of pages. When you save a file or send a request as UTF-8, each character is written out as the one to four bytes shown above.
ASCII is the older, smaller standard that covers only the first 128 characters. UTF-8 was built to match ASCII for those characters, so any plain ASCII text is already valid UTF-8. This backward compatibility is a big reason UTF-8 became the default almost everywhere.
Looking at the raw bytes behind text is useful whenever characters do not show up the way you expect. Here are the most common reasons people encode and decode UTF-8: