Why this tool is useful
Use this converter to diagnose surrogate pairs, compare browser strings with UTF-16 APIs and prepare exact code-unit test fixtures.
Inspect JavaScript UTF-16 code units as four-digit hexadecimal values or reconstruct strictly valid Unicode text.
Ready. Your working data stays in this browser.
Use this converter to diagnose surrogate pairs, compare browser strings with UTF-16 APIs and prepare exact code-unit test fixtures.
Encoding prints every 16-bit unit; decoding validates hexadecimal tokens and requires each high surrogate to be followed by one low surrogate.
A😀 becomes 0041 D83D DE00, showing the BMP letter and the emoji surrogate pair separately.
The calculation is deterministic and explains validation errors instead of silently changing invalid input.
Input and output remain in this tab. Copy and download happen through browser APIs without a server upload.
Every run reports its tool mode, timestamp and input/output size so transformed data can be audited.