JavaScript String toLocaleLowerCase()
Example
Convert to lowercase:
let text = "Hello World!";
let result = text.toLocaleLowerCase();
Try it Yourself »
Description
The toLocaleLowerCase()
method converts a string to lowercase letters,
using current locale.
The locale is based on the language settings of the browser.
The toLocaleLowerCase()
method does not change the original string.
The toLocaleLowerCase()
returns the same result as
toLowerCase()
, except for locales
that conflict with the regular Unicode case mappings (such as Turkish).
Syntax
string.toLocaleLowerCase()
Parameters
NONE |
Return Value
Type | Description |
A string | A new string converted to lowercase according to current locale. |
Browser Support
toLocaleLowerCase()
is an ECMAScript1 (ES1) feature.
ES1 (JavaScript 1997) is fully supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |