CHAR Function

Returns the character for a code number from 1 to 255.

Category

Text

Available in

All versions, Microsoft 365

Returns

One character

Want to practice CHAR in a real spreadsheet? Open a blank sheet in our Practice Sandbox and try it with live data, with the AI Excel tutor beside you. No Excel needed — just a free account.Try it free in the Sandbox

Overview

CHAR turns a number into the character it stands for in your computer's character set: 65 is A, 97 is a, 10 is a line break.

Its everyday use is CHAR(10) — the only way to put a line break inside a formula.

Syntax

=CHAR(number) Explain

Arguments

ArgumentRequired?What it does
numberYesA whole number from 1 to 255.

Examples

Example 1 — Codes to characters

See which character each code produces.

B2fx=CHAR(A2)
AB
1CodeCharacter
265A
397a
435#
=CHAR(A2) Explain

Example 2 — A line break in a formula

Put the name and city on separate lines of one cell (turn on Wrap Text).

=A2&CHAR(10)&B2 Explain

Common mistakes

  • Codes above 127 vary. On a Mac or in another language, CHAR(128)–CHAR(255) can show different symbols. Use UNICHAR for anything beyond basic letters.

Notes

Kyle Stott

Author

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.