Capitalize[string]
yields a string in which the first character has been made uppercase.
Capitalize[string,scheme]
gives a string capitalized using the specified capitalization scheme.
Capitalize
Capitalize[string]
yields a string in which the first character has been made uppercase.
Capitalize[string,scheme]
gives a string capitalized using the specified capitalization scheme.
Details
- Capitalize handles both ordinary and special characters.
- Variant lowercase characters such as \[CurlyPhi] are converted to their non‐variant uppercase forms.
- Capitalization schemes include:
-
"FirstWord" only the first word in a string "AllWords" each word in a string "LongWords" all words longer than three characters "TitleCase" capitalize all important words
Examples
open all close allBasic Examples (3)
Capitalize the first character of a string:
Capitalize["abcd"]Capitalize["apple"]Capitalize["this sentence."]Capitalize letters of the Greek alphabet:
Capitalize["φ"]Capitalize["β"]Use different capitalization schemes on the same string:
Capitalize["this is a sentence that can be capitalized differently", "FirstWord"]Capitalize["this is a sentence that can be capitalized differently", "AllWords"]Capitalize["this is a sentence that can be capitalized differently", "LongWords"]Capitalize["this is a sentence that can be capitalized differently", "TitleCase"]Scope (2)
Capitalize automatically threads over lists:
Capitalize[{"a", "b", "c"}]Capitalize[{"apple", "bear", "cat"}]"TitleCase" capitalization takes into account word position and part of speech:
Capitalize["the land beyond the ridge.", "TitleCase"]Capitalize["beyond the ridge there is land.", "TitleCase"]Related Guides
Text
Wolfram Research (2015), Capitalize, Wolfram Language function, https://reference.wolfram.com/language/ref/Capitalize.html (updated 2017).
CMS
Wolfram Language. 2015. "Capitalize." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/Capitalize.html.
APA
Wolfram Language. (2015). Capitalize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Capitalize.html
BibTeX
@misc{reference.wolfram_2026_capitalize, author="Wolfram Research", title="{Capitalize}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/Capitalize.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_capitalize, organization={Wolfram Research}, title={Capitalize}, year={2017}, url={https://reference.wolfram.com/language/ref/Capitalize.html}, note=[Accessed: 13-June-2026]}