Calculator: Unicode code points

Enter the labelled inputs to calculate: Unicode code points; Number of code points; UTF-16 code units; UTF-8 bytes.

Unicode code points
U+0041; U+1F600
Number of code points
2
UTF-16 code units
3
UTF-8 bytes
5

How the calculation works

U+; UTF-16; UTF-8

Text operations use UTF-8 and run locally. Empty text is valid. Base64 decoding requires standard padding and valid UTF-8; URL decoding rejects malformed percent escapes.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

U+; UTF-16; UTF-8

What assumptions apply?

Text operations use UTF-8 and run locally. Empty text is valid. Base64 decoding requires standard padding and valid UTF-8; URL decoding rejects malformed percent escapes.

How precise are the displayed results?

Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently from the sources below. Last passed: .

# Inputs Expected result
1
Text = A€
Unicode code points: U+0041; U+20AC
Number of code points: 2
UTF-16 code units: 2
UTF-8 bytes: 4
2
Text = Київ
Unicode code points: U+041A; U+0438; U+0457; U+0432
Number of code points: 4
UTF-16 code units: 4
UTF-8 bytes: 8
3
Text = 😀a
Unicode code points: U+1F600; U+0061
Number of code points: 2
UTF-16 code units: 3
UTF-8 bytes: 5

Sources

How we test our calculators →

Also try:

Back to category →