UTF-16

A Unicode encoding that stores each character as one or two 16-bit code units, used in memory by Java and JavaScript strings and by Windows.

In more detail

UTF stands for Unicode Transformation Format; the number is the size of each unit in bits. Most everyday characters take one unit, but characters beyond the first 65,536 take a pair of units called a surrogate pair.

Examples

Java stores String and char in memory as UTF-16 code units.
In UTF-16LE, plain English text looks like ASCII with a zero byte after each character.

Related terms

Taught in

References

Certification courses