Free Online Utility • UTF-8 Studio • RFC 3629 Engine

Convert UTF8 to UTF-16

Convert UTF-8 text into UTF-16BE or UTF-16LE code units, raw bytes, or JavaScript/Java \uXXXX surrogate pair escapes.

Reference & UTF-8 Spec RFC 3629
BMP (U+0000..FFFF) -> 1 × 16-bit code unit (2 bytes)
Plane 1+ (U+10000..10FFFF) -> High + Low Surrogate Pair (4 bytes)
H (U+0048)BE: 00 48 | LE: 48 00
🌍 (U+1F30D)D83C DF0D (Surrogate)
UTF-8 vs UTF-16Live byte comparison
UTF-8 TO UTF-16 CONVERTER
UTF-16 Encoded Output

        
100% client-side RFC 3629 UTF-8 Engine Instant

Session Calculation Log

No entries recorded in this session yet.

How Convert UTF8 to UTF-16 Works

Convert UTF8 to UTF-16 transcodes UTF-8 text into Big Endian (UTF-16BE) or Little Endian (UTF-16LE) 16-bit code units, raw bytes, or `\uXXXX` surrogate pair escapes while comparing UTF-8 vs UTF-16 byte sizes live.

UTF-8 (RFC 3629) is the dominant variable-width character encoding of the web, representing every Unicode scalar value from U+0000 to U+10FFFF in 1 to 4 self-synchronizing bytes while remaining 100% backward-compatible with 7-bit ASCII. Every conversion and analysis in this tool executes locally inside your browser with zero server uploads, preserving full privacy and instant response times.

UTF-8 to UTF-16 Surrogate Encoding

If cp <= 0xFFFF -> single 16-bit unit
If cp > 0xFFFF  -> cp' = cp - 0x10000; H = 0xD800 + (cp' >> 10); L = 0xDC00 + (cp' & 0x3FF)

ASCII text doubles in size under UTF-16 (2 bytes/char), while CJK text shrinks from 3 bytes in UTF-8 to 2 bytes in UTF-16.

Worked Reference Examples

InputOutputTechnical Note
Hello 🌍! (BE)0048 0065 006C 006C 006F 0020 D83C DF0D 002111B UTF-8 -> 18B UTF-16
日本語 (BE)65E5 672C 8A9E9B UTF-8 -> 6B UTF-16
JS Escape\uD83C\uDF0DSurrogate pair literal

Practical Developer & Systems Workflows

Windows Wide-Char (wchar_t) & .NET Prep

Generate exact UTF-16LE byte arrays for Windows APIs.

Java/JavaScript Escape Generation

Export `\uXXXX` surrogate literals cleanly.

Compatibility, Edge Cases & Best Practices

Use Convert UTF-16 to UTF8 to decode UTF-16BE/LE bytes back to UTF-8 text.

Copy verified outputs directly to your clipboard or export clean UTF-8 files ready for source repositories, REST APIs, database migrations, protocol test suites, and systems debugging.

Frequently Asked Questions

Why is CJK smaller in UTF-16 than UTF-8 while English is smaller in UTF-8?
Basic Latin uses 1 byte in UTF-8 vs 2 bytes in UTF-16, whereas CJK Unified Ideographs use 3 bytes in UTF-8 vs 2 bytes in UTF-16.
Does Windows use UTF-16LE or UTF-16BE?
Windows (`wchar_t`), .NET, and x86/ARM memory use UTF-16LE (Little Endian).
Are emojis converted into proper surrogate pairs?
Yes — Plane 1 emojis split accurately into high (`D800–DBFF`) and low (`DC00–DFFF`) surrogates.