JavaScript (ES2026) reference · String Methods

JavaScript String toLocaleUpperCase() Method

Convert to uppercase using a language's rules, for example Turkish or German special cases.

JavaScript (ES2026) Since ES3

Create a free account to save this page, take notes and track your progress. Sign in

Syntax

string.toLocaleUpperCase(locales)

Parameters

ParameterDescription
locales optional A locale such as "tr" or "de".

Return value

A new string.

Examples

Turkish dotted ITry it yourself
console.log("i".toUpperCase(), "i".toLocaleUpperCase("tr"));

Output

I İ
German sharp sTry it yourself
console.log("straße".toLocaleUpperCase("de"));

Output

STRASSE

Version history

VersionChange
JavaScript ES3Added

In other languages

Was this page helpful?