String.toUpperCase()
AD · 728×90
Google AdSense / Яндекс.Директ
String
String.toUpperCase()
Converts a string to uppercase according to Unicode rules
→ stringPHP: strtoupper()ES1+
stringstring
String to convert
(string).toUpperCase()
RESULT
— click Run or press Ctrl+Enter —
Parameter Reference
ParameterTypeStatusDescription
stringstringrequiredString to convert
About

toUpperCase() converts all characters to uppercase following Unicode rules. Works with Cyrillic, Latin, Greek, and other alphabets. Returns a new string. For locale-specific rules (e.g. Turkish i → İ), use toLocaleUpperCase().

Browser Support

Available since ES1 (1997). In German "ß".toUpperCase() === "SS" — string length can increase.

Tips & Gotchas