ToUpperCase[string]
yields a string in which all letters have been converted to uppercase.
ToUpperCase
ToUpperCase[string]
yields a string in which all letters have been converted to uppercase.
Details
- ToUpperCase handles both ordinary and special characters.
- Variant lowercase characters such as \[CurlyPhi] are converted to their non‐variant uppercase forms.
Examples
open all close allBasic Examples (1)
Scope (5)
Everything other than lowercase letters is left unchanged:
ToUpperCase["ABC xyz 123"]ToUpperCase threads itself elementwise over lists:
ToUpperCase[{"a", "b", "c"}]ToUpperCase["äé"]ToUpperCase["αβγδϵζηθ"]ToUpperCase["𝒶𝒷𝒸𝒹"]Possible Issues (2)
The uppercase form of the German
character is a pair of characters:
ToUpperCase["ß"]ToLowerCase does not give back the original character:
ToLowerCase[%]For a few characters, ToLowerCase is not the inverse of ToUpperCase:
Select[Characters[FromCharacterCode[Range[2 ^ 16 - 1]]], LowerCaseQ[#] && ToLowerCase[ToUpperCase[#]] =!= #&]ToUpperCase[%]ToLowerCase[%]Neat Examples (2)
Check that the German ß character is the only one to have a multicharacter uppercase form:
Select[Characters[FromCharacterCode[Range[2 ^ 16 - 1]]], LetterQ[#] && StringLength[ToUpperCase[#]] != 1&]Find the names of characters for which ToLowerCase is not the inverse of ToUpperCase:
FullForm /@ Select[Characters[FromCharacterCode[Range[2 ^ 16 - 1]]], LowerCaseQ[#] && ToLowerCase[ToUpperCase[#]] =!= #&]See Also
UpperCaseQ ToLowerCase Capitalize StringReplace IgnoreCase
Function Repository: SwapCase ToCamelCase ToTitleCase
Tech Notes
Related Guides
History
Introduced in 1991 (2.0) | Updated in 1996 (3.0)
Text
Wolfram Research (1991), ToUpperCase, Wolfram Language function, https://reference.wolfram.com/language/ref/ToUpperCase.html (updated 1996).
CMS
Wolfram Language. 1991. "ToUpperCase." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1996. https://reference.wolfram.com/language/ref/ToUpperCase.html.
APA
Wolfram Language. (1991). ToUpperCase. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ToUpperCase.html
BibTeX
@misc{reference.wolfram_2026_touppercase, author="Wolfram Research", title="{ToUpperCase}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/ToUpperCase.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_touppercase, organization={Wolfram Research}, title={ToUpperCase}, year={1996}, url={https://reference.wolfram.com/language/ref/ToUpperCase.html}, note=[Accessed: 12-June-2026]}