.toLowerCase()

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

Syntax

string.toLowerCase();

Example 1

Converting uppercase letters to lowercase letters:

console.log('HELLO WORLD'.toLowerCase());
// Output: hello world

Example 2

Don’t forget that .toLowerCase() doesn’t actually change the original string.

Edit this page on GitHub

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your feedback.

Learn JavaScript on Codecademy

Edit this page on GitHub

Contributors