Function · Convert text and numbers

Excel CHAR function

The Excel CHAR function returns the character for a code. CHAR(65) is A. CHAR(10) is a line break. Codes above 127 are not the same on every system.

All current Excel versions. Also in Excel for the web and Google Sheets.

Syntax =CHAR(number)

CHAR
=CHAR(65)

Arguments

NameRequiredWhat to pass
numberRequiredA character code from 1 through 255. A fraction is cut down to the integer.

Examples

The capital letter A

=CHAR(65)

Result A

=CHAR(B1)B2
Code
AB
1Code65
2CharacterA
A picture of the sheet, not a live calculator. CHAR(10) is a line break. The cell has to be set to wrap text before you see two lines.

CHAR turns a code into one character. 65 is A. 97 is a. 36 is the dollar sign. 10 is a line break, which CLEAN removes and which you can build with &CHAR(10)& when a cell should hold two lines. Turn on wrap text or the break is invisible.

Codes 1 through 127 are the familiar ASCII set. Codes 128 through 255 depend on the operating system’s character set, so a workbook that uses CHAR(233) for an accented letter can show a different glyph on another computer. UNICHAR takes a Unicode code point and does not have that limit. CODE is the reverse of CHAR for the first character of a string.