Text ↔ Byte Encoder

Encode UTF-8 text as hexadecimal, binary, or decimal bytes, and strictly decode byte lists back to text.

Loading Text ↔ Byte Encoder...

How to use

Choose Text to bytes to encode UTF-8, or Bytes to text to decode. Select the same byte format used by the input. Decoding rejects malformed bytes and invalid UTF-8 rather than inserting replacement characters.

Example

Input
Hi مرحبا
Output
48 69 20 D9 85 D8 B1 D8 AD D8 A8 D8 A7

Limitations

Only UTF-8 text is supported. Binary tokens require exactly eight bits, decimal values must be 0–255, and hexadecimal bytes require exactly two digits.

Frequently Asked Questions

Why can one character produce several bytes?

UTF-8 uses multiple bytes for many characters, including Arabic letters and emoji. Bytes are not the same as Unicode code points.

Will invalid UTF-8 be repaired?

No. Decoding is deliberately strict so corrupted or incomplete byte sequences are reported instead of silently changed.