Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > String Manipulation > Character Operations >

ToUpperCase

ToUpperCase[string]
yields a string in which all letters have been converted to uppercase.
  • ToUpperCase handles both ordinary and special characters.
  • Variant lowercase characters such as \[CurlyPhi] are converted to their non-variant uppercase forms.
Convert characters in a string to uppercase:
Convert characters in a string to uppercase:
In[1]:=
Click for copyable input
Out[1]=
Everything other than lowercase letters is left unchanged:
ToUpperCase threads itself element-wise over lists:
Accented characters:
Greek letters:
Script letters:
The uppercase form of the German ß character is a pair of characters:
ToLowerCase does not give back the original character:
For a few characters, ToLowerCase is not the inverse of ToUpperCase:
Check that the German ß character is the only one to have a multicharacter uppercase form:
Find the names of characters for which ToLowerCase is not the inverse of ToUpperCase:
New in 2 | Last modified in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team