JavaScript String toLowerCase()
Example
Convert to lowercase:
let text = "Hello World!";
let result = text.toLowerCase();
Try it Yourself »
Description
The toLowerCase()
method converts a string to lowercase letters.
The toLowerCase()
method does not change the original string.
Syntax
string.toLowerCase()
Parameters
NONE |
Return Value
Type | Description |
A string | The string converted to lowercase. |
Browser Support
toLowerCase()
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 |