Favorites

JavaScript String.prototype.toLowerCase() Method

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
String.prototype.toLowerCase()
JavaScript String Instance methodThis method is supported by all modern browsers.
Updated 28th November 2026

The toLowerCase() method returns a copy of a string with all letters converted to lower case.

Description

The toLowerCase() method returns the string converted to lower case. It's often used to make comparisons case-insensitive. For languages with special rules, such as Turkish dotted and dotless i, use toLocaleLowerCase() with a locale.

Lower-casing uses Unicode's default rules, which work for most languages. Some characters change in special ways; for example the Greek capital sigma becomes "ς" at the end of a word and "σ" elsewhere. For locale-specific rules, toLocaleLowerCase('tr') converts the Turkish dotted capital İ correctly.

For case-insensitive searching and sorting, converting both strings is the simple approach, but localeCompare() or Intl.Collator with sensitivity: 'base' also ignore accents and are more robust across languages.

Syntax

string.toLowerCase()

Return Value

A new string converted to lower case.

Example

console.log('Hello WORLD'.toLowerCase());
const input = 'YES';
console.log(input.toLowerCase() === 'yes');

Browser Support

The following information will show you the current browser support for the String.prototype.toLowerCase() method. Hover over a browser icon to see the version that first introduced support for this method.

This method is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee