String to Bytes
Convert any text into its UTF-8 byte values — showing the hexadecimal byte code for each character, including multi-byte Unicode characters.
What Does This Tool Do?
In computers, text is stored as a sequence of bytes. Simple ASCII characters use 1 byte each, but Unicode characters like emoji, accented letters, or Chinese characters use multiple bytes. This tool shows you exactly how your text is represented at the byte level in UTF-8 encoding.
Key Features
How to Use This Tool
- Type or paste your text into the Input box.
- Click Convert to see the UTF-8 byte representation.
- Each character's bytes are separated for easy reading.
How It Works
Each character is analyzed using its Unicode code point. Single-byte ASCII characters (code points 0-127) produce one byte. Characters in higher ranges produce 2, 3, or 4 bytes according to the UTF-8 encoding algorithm. Each byte is displayed as a 2-digit uppercase hex value.
Common Use Cases
Frequently Asked Questions
Why does an emoji take 4 bytes?
Emoji have Unicode code points above U+FFFF, which require 4 bytes in UTF-8 encoding. Basic ASCII characters (a-z, 0-9) use only 1 byte each.
What is the difference between character count and byte count?
A string like "Hello" has 5 characters and 5 bytes. But "café" has 4 characters and 5 bytes because é is a 2-byte UTF-8 character.
Related Tools
Link to This Tool
Copy and paste the code below to link to this tool from your website: