UNICHAR Function (LibreOffice Calc)
Build a Unicode symbol table in LibreOffice Calc with UNICHAR. Verify decimal code points, supplementary characters, input limits and font or malformed-text pitfalls.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: UNICHAR converts a numeric Unicode code point into text. Use assigned characters and verify the code separately from how a font displays it.
Availability and version history
- Introduced: Documented by LibreOffice 26.8.1.1; original introduction not established.
- Availability: Supported in LibreOffice 26.8.1.1, verified against its function registry. This identifies a supported release, not a final working version.
- Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
- Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.
The UNICHAR function in LibreOffice Calc is used for this task: Converts a code number into a Unicode character or letter. Insert a Unicode symbol from its code point.
This guide explains how to read the formula, reproduce a concrete example, interpret its result and recognize common input mistakes.
Syntax and arguments
UNICHAR(number)
| Argument | Required? | Meaning |
|---|---|---|
Number |
Yes | The code value for the character. |
Calc formulas normally use semicolons (;) between arguments in common configurations; the displayed separator may depend on settings or locale.
Worked example
=UNICHAR(9733)
Expected result: ★.
Why it works: Insert a Unicode symbol from its code point.
How to use it in your own spreadsheet
- Identify the cells or inputs that correspond to the sample values above.
- Enter the formula in an empty cell, changing the references or literal values to match your sheet.
- Compare the output with a manual check on a small known example.
- Extend the formula to a larger dataset only after you understand the result.
Common problems and practical checks
- Check unwanted spaces, character case, and whether the input is stored as text.
- Character positions and formatting can change the result; test with realistic sample text.
- A pasted formula may produce an error when it uses the other program’s argument separator or unsupported options.
Additional worked application and edge cases
Stepwise example: create a reusable symbol table
Enter the following decimal code numbers in A2:A6. In B2 enter =UNICHAR(A2) and fill down. Put the descriptive labels in C2:C6 so the table remains understandable even if a symbol is not rendered by the current font.
| Decimal code | Independently expected character | Label |
|---|---|---|
| 65 | A | Latin capital A |
| 169 | © | Copyright sign |
| 9733 | ★ | Black star |
| 10003 | ✓ | Check mark |
| 128512 | 😀 | Grinning face |
These are expected Unicode characters, not screenshots of Calc’s rendering. A missing-glyph box or a different emoji style can reflect the font, operating system or renderer. It does not automatically mean that the stored code point is wrong.
In D2 enter =UNICODE(B2) and fill down. The expected decimal results are 65, 169, 9733, 10003, 128512, matching column A. This checks the leading code point of each one-code-point output; it does not certify the font or the appearance in a PDF export.
Decimal code numbers and supplementary characters
Number is the single required numeric argument. Unicode references often write a code point in hexadecimal, such as U+2605 for the black star. UNICHAR expects a numeric value: =UNICHAR(HEX2DEC("2605")) is an explicit conversion and has expected result ★. Do not type the label U+2605 as if it were an ordinary decimal argument.
The example 128512 is U+1F600, beyond the basic multilingual plane. The reviewed Calc implementation constructs it as a Unicode code point, using two UTF-16 code units internally. A code point is not the same thing as a byte, a UTF-16 code unit or a user-perceived character made from several code points. See the Unicode encoding FAQ.
Input bounds: Calc-specific source behavior
For whole-number inputs, the reviewed implementation accepts code-point numbers from 0 through 1114111, the hexadecimal upper bound U+10FFFF. A negative integer such as -1 or an integer above that upper bound is invalid. Calc first performs integer conversion; for example, a positive noninteger 65.9 is reduced to 65 under the source’s truncation behavior. Use intentional integers rather than depending on fractional conversion or approximate boundary handling.
There is an important distinction between this numeric check and valid interoperable text. The pinned ScUnichar implementation checks isUnicodeCodePoint, not the stricter isUnicodeScalarValue. Its check does not exclude the surrogate-code-point interval 55296 through 57343 (U+D800–U+DFFF). Do not use those isolated values to manufacture characters: they are not standalone Unicode scalar values and can produce malformed text in export or interchange.
Code zero is also permitted by that source-level bound, but represents a null control character, not a visible symbol or an ordinary empty string. Other control, unassigned and noncharacter values may likewise lack useful display. A successful numeric conversion is not proof that a printable, assigned symbol exists at the supplied number. The table above deliberately uses assigned scalar values.
These limits are source-derived, not newly executed tests: ScUnichar, integer conversion and code-point versus scalar validation. Do not substitute another spreadsheet application’s error rules for these Calc details.
Advanced application: keep a status label beside the symbol
If F2 contains the exact text Done, use =IF(F2="Done";UNICHAR(10003)&" Done";"Pending") in G2. The independently expected text is ✓ Done. With F2 set to Pending, it is Pending.
Keep the word as well as the symbol so the status is still clear with unsupported fonts, monochrome output or assistive technology. This formula maps only the specified Done state to the completed label; it is not a general status classifier.
Combining characters and practical troubleshooting
One UNICHAR call supplies one code point, not every possible displayed character. For example, ="e"&UNICHAR(769) creates an e followed by a combining acute accent. A renderer may display the pair like é, but the stored sequence has two code points. It is different from =UNICHAR(233), which supplies one precomposed code point. Unicode normalization is a separate operation, described in Unicode’s normalization specification.
If a symbol appears as a box, inspect its code with UNICODE and check font coverage. If the formula errors, inspect the numeric input and any upstream error. If export changes the output, check the destination format and encoding rather than assuming UNICHAR controls them. The version number on a helper source declaration does not establish when the spreadsheet function was introduced; its original introduction remains unestablished here.
Verification scope for this addition: These added results were independently calculated or derived from the cited documentation/source. They were not newly tested in LibreOffice Calc. The original example-specific Calc 25.2.3.2 claims elsewhere on this page remain historical and apply only to those original examples. The cited 26.8.1.1 source tag is a code reference, not a claim of a new run in that release.
Related functions
Documentation and verification
- LibreOffice Calc Help
- The standalone example was calculated using LibreOffice Calc 25.2.3.2 on October 9, 2026 and its computed result matched the expected value. This does not certify every option, version, or other example.