Navigation

HomeImage ToolsCode ToolsMath ToolsDate ToolsGeneratorsUtilities
Color ToolsText ToolsPDF Tools

Unicode to Bytes

Convert Unicode text to its UTF-8 byte values in decimal or hex format.

Paste any Unicode text and see exactly which bytes it turns into on the wire. Pick decimal or hex, and the tool spits out the UTF-8 encoding byte by byte — one for plain ASCII, three or four for emojis and CJK characters. And everything runs in your browser. Nothing gets uploaded.

FAQ

What encoding is used?

The tool encodes text as UTF-8, the most common encoding for Unicode text on the web. Each character produces 1-4 bytes depending on its code point.

What is the difference between decimal and hex output?

Decimal shows byte values as numbers 0-255. Hexadecimal shows the same values in base-16 (00-FF), which is more common in programming and debugging contexts.

Why does "A" produce 1 byte but "日" produces 3?

UTF-8 uses variable-length encoding. ASCII characters (0-127) use 1 byte. Characters with higher code points need 2, 3, or 4 bytes.

Can I convert the bytes back to text?

Yes. Feed the byte values to a TextDecoder with UTF-8 encoding to recover the original text.

Related Tools