JavaScript String toLowerCase()
Example
Convert the string to lowercase letters:
let str = "Hello World!";
str.toLowerCase();
Try it Yourself »
Definition and Usage
The toLowerCase() method converts a string to lowercase letters.
The toLowerCase() method does not change the original string.
Tip: Use the The toUpperCase()
method to convert to uppercase.
Browser Support
toLowerCase() is fully supported in all browsers:
| Chrome | IE | Edge | Firefox | Safari | Opera |
| Yes | Yes | Yes | Yes | Yes | Yes |
Syntax
string.toLowerCase()
Parameters
| None. |
Technical Details
| Return Value: | A String, representing the value of a string converted to lowercase |
|---|---|
| JavaScript Version: | ECMAScript 1 |

