UTF-8 codec
Convert locally between text and UTF-8 byte representations, with support for hexadecimal, BOM, invalid byte positions, and error messages.
Local browser processing
This page has passed the public directory check; full functionality is available after enabling JavaScript.
User Guide
How to use UTF-8 encoding and decoding
UTF-8 encoding and decoding process input only in the current browser’s memory; no network connection, upload, or persistent storage is used.
Input content
Enter Unicode text or hexadecimal UTF-8 bytes.
Select direction
Select text encoding or byte decoding, and set the hexadecimal separator format.
Check results
Review BOM, byte positions, and error messages before copying or downloading.
Limitations and Notes
- A single input can contain at most 1 MiB; if the output exceeds 2 MiB, complete-result generation will be rejected.
- Decoding accepts only valid UTF-8 text and does not disguise arbitrary binary data as readable characters.
- Invalid bytes will report their positions; the result cannot replace character-set configuration checks on the target system.
FAQ
Why does Chinese occupy multiple bytes?
UTF-8 uses variable-length encoding, and Chinese characters are usually represented by multiple bytes.
Will BOM be deleted automatically?
The tool displays and processes BOM separately and does not silently discard user input.
Will text be uploaded?
No, processing occurs only in the current browser.