Category: FUNCTION | Updated: 2026-11-22
How to Use the CHAR Function in Google Sheets | Output Line Breaks and Symbols from Character Codes
How to Use the CHAR Function
The CHAR function is a text function that returns the character corresponding to a decimal number (character code) in the current Unicode table. It is especially useful for inserting in-cell line breaks (CHAR(10)) inside formulas or dynamically generating symbols such as circled numbers and checkmarks.
Syntax
=CHAR(table_number)
- table_number: A positive decimal integer representing the Unicode character to return (required).
Examples
Here are examples of outputting line breaks and symbols using common character code numbers.
| Row | Column A (Code Number) | Column B (CHAR Formula) | Column C (Output / Description) |
|---|---|---|---|
| 1 | Code Number | Formula | Output |
| 2 | 10 |
="Line 1" & CHAR(10) & "Line 2" |
Text with a line break inside the cell |
| 3 | 65 |
=CHAR(A3) |
A (uppercase letter A) |
| 4 | 9745 |
=CHAR(A4) |
☑ (ballot box with check) |
| 5 | 9312 |
=CHAR(A5) |
① (circled digit one) |
- Formula:
=CHAR(10) - Result: Line break character (also commonly used with
TEXTJOIN(CHAR(10), TRUE, A2:A5)to join multiple cells separated by line breaks).
Common Errors and Tips
- Enable text wrapping if
CHAR(10)does not show a line break: If text appears on a single line even withCHAR(10), select the cell and enable Text wrapping > Wrap from the toolbar. 0, negative numbers, or invalid codes return#VALUE!: Passing0, a negative number, or a number not assigned to a valid Unicode character produces a#VALUE!error.- Note on Excel compatibility: Google Sheets’
CHARfunction supports Unicode (decimal), so large values likeCHAR(9745)work. In Microsoft Excel, however,CHARonly supports ANSI/Shift-JIS (1–255), so you must useUNICHARwhen exporting to Excel.
Frequently Asked Questions
Q. What is the most common code number used with CHAR for an in-cell line break?
A. "10". For example, writing "=A2 & CHAR(10) & B2" and enabling "Wrap" under text wrapping lets you display multiple lines inside a single cell.
Q. Is there a function to look up the Unicode number from a character?
A. Yes, use the CODE function. For example, "=CODE("A")" returns the numeric code "65" for the letter "A".