Writing code-point tokens in the format this converter accepts
The code-point decoder on this site expects U+ followed by four to six hexadecimal digits. The token U+41 is rejected and U+0041 is accepted, even though both name the letter A.
The notation and the width rule
Unicode writes code points as U+ followed by hexadecimal digits, and the Unicode Standard says to use at least four digits, padding with zeros when the value is shorter. The letter A has code point 41 in hexadecimal, so its standard spelling is U+0041. Values above FFFF need five or six digits, as in U+1F600 and U+10FFFF. This converter follows that convention and its input contract says four to six digits. A token with fewer than four digits is outside the format it accepts, whatever the number means.
The accepted token
The first case decodes U+0041 and returns the letter A. The token has the prefix U+ and four hexadecimal digits, so it fits the expected shape. The value 0041 is 65 in decimal, which matches the position of A in ASCII and in Unicode, since the first 128 Unicode code points are the ASCII characters. Decoding therefore agrees with what you would find in an ASCII chart: 65 is A, 66 is B and so on. The check is the simplest possible case of the format. Decoding several tokens in one input, separated by spaces, works the same way, and each token must satisfy the width rule on its own.
The rejected short token
The second case decodes U+41 and the tool rejects it, with a message that the token needs 4 to 6 hexadecimal digits. The character is not unknown. The digits 41 are valid hexadecimal and name the letter A under the usual rules. What fails is the spelling, which the tool treats strictly so that every accepted token has one predictable form. A strict format avoids ambiguity when several tokens are written next to each other, and keeps results consistent between runs and between users.
A supplementary-plane scalar
The third case decodes U+1F600 and returns the grinning face emoji. Five digits are within the accepted width. The value 1F600 is 128,512 in decimal and lies in the Supplementary Multilingual Plane, which covers code points from U+10000 to U+1FFFF. Unicode has 17 planes, and the highest code point is U+10FFFF, which needs six digits. That is why the format allows up to six digits and no more. A seven-digit token cannot name any code point, no matter how it is written.
Scalar values and surrogates
A correctly shaped token can still be invalid as a character. Unicode reserves the range U+D800 to U+DFFF for surrogates, which UTF-16 uses in pairs to encode higher values. They are not characters in themselves and cannot appear as scalar values in well-formed text. A token such as U+D800 therefore has the right width and still names nothing the converter can return, which separates the question of format from the question of validity. Values above U+10FFFF are also outside the range. Width is only the first check, and range and scalar validity follow. The reason for the surrogate gap is historical: Unicode started as a 16-bit design, and when it grew, UTF-16 reused part of the original range as a signal for pairs. The consequence is that 1,112,064 scalar values exist, which is 1,114,112 code points in the 17 planes minus the 2,048 surrogates. Knowing this number explains why not every hexadecimal token is a character.
Other notations for the same character
Different languages and formats spell the same code point in their own way. In HTML, A can be written as A or A. In JSON and JavaScript, it is \u0041, and code points above FFFF use \u{1F600} in modern JavaScript. Python uses \u0041 and \U0001F600, with exactly four or eight digits. Rust and Swift use \u{...} with a variable number of digits. The U+ notation is a convention for human-readable text. When you copy a code point between systems, translate the notation, since each context accepts only its own.
Counting digits for some other code points
A few more examples fix the width rule in memory. The euro sign is U+20AC and the Greek capital omega is U+03A9, both with four digits. The space character is U+0020, padded with two zeros. The null character is U+0000. The Chinese character 中 is U+4E2D. The musical G clef is U+1D11E, which needs five digits, and the highest code point in the whole space, U+10FFFF, takes six. Each of these tokens has the same structure, and only the number of significant digits changes. The padding zeros carry no meaning: U+0041 and U+000041 name the same letter, and the longer spelling is also inside the accepted width. When in doubt, decode a few of these to see how the format behaves with different widths. The control cases of this guide were chosen to cover the accepted four-digit form, the rejected two-digit form and a five-digit scalar.
Finding the code point you need
If you have the character, use the converter in encode mode, as in the other guides of this series, and it prints the U+ token you can decode again. If you know the name, the Unicode Character Database and the code charts published by the Unicode Consortium list every assigned code point with its name. Copy the number and pad it to four digits before decoding. For a value like 41, the padded token is U+0041. For 1F600, nothing needs padding. Operating systems also offer character pickers and code-point entry methods, but those vary by platform, so rely on the published charts for a number you want to cite. The block name in the charts, such as Basic Latin for U+0000 to U+007F, tells you what kind of character a token names before you decode it.
Reading a rejection correctly
A rejected token tells you about the spelling the tool accepts, and says nothing about whether the character exists. Do not conclude from the U+41 message that the letter A is missing from Unicode. Fix the width and decode again. If a token still fails after padding, check for stray spaces, lowercase or uppercase prefix problems and digits outside 0 to 9 and A to F, then check the scalar range. Following these steps in order locates the cause without guessing. It also helps to decode a known good token, such as U+0041, in the same session. If that succeeds and yours fails, the difference is in your token, and the comparison narrows the search to the characters that do not match the pattern of the working one.
Reproduce the checks
Accepted token
Open the Unicode Converter and enter:
- Calculation mode
decode- Text or encoded input
U+0041
Expected output:
Code points
AThe field receives four hexadecimal digits.
Short token rejected
Open the Unicode Converter and enter:
- Calculation mode
decode- Text or encoded input
U+41
Expected rejection:
4 to 6 hexadecimal digitsThis rejection describes the local input format.
Supplementary scalar
Open the Unicode Converter and enter:
- Calculation mode
decode- Text or encoded input
U+1F600
Expected output:
Code points
😀Five hexadecimal digits fit the supported token width.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- Primary definition and convention reference ↗ · 2026-10-08