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 (JavaScriopt 1997) feature.
It is supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |