Javascript Reference - JavaScript String toLowerCase() Method








The toLowerCase() method converts a string to lowercase letters.

The toLowerCase() method does not change the original string.

Browser Support

String toLowerCase() Yes Yes Yes Yes Yes

Syntax

stringObject.toLowerCase();

Parameters

None.

Return Value

A string converted to lowercase.

Example

The following code shows how to convert string to lower case.


var stringValue = "Hello world"; 
console.log(stringValue.toLowerCase()); //"hello world" 

The code above generates the following result.