JavaScript (ES2026) reference · String Methods
JavaScript String toLowerCase() Method
Return the string converted to lowercase. Use it for case-insensitive comparisons.
JavaScript (ES2026) Since ES1
Syntax
string.toLowerCase()
Return value
A new string.
Examples
console.log("Hello World".toLowerCase());
Output
hello world
const a = "[email protected]", b = "[email protected]";
console.log(a === b, a.toLowerCase() === b.toLowerCase());
Output
false true
Version history
| Version | Change |
|---|---|
| JavaScript ES1 | Added |
In other languages
str.lower()· Pythonstrtolower()· PHPmb_strtolower()· PHP
Related
string.toUpperCase()· Return the string converted to uppercase letters. Use toLocaleUpperCase() for language-specific rules.string.toLocaleLowerCase()· Convert to lowercase using a language's rules, which matters for languages like Turkish.string.localeCompare()· Compare two strings using language rules; returns a negative number, 0 or a positive number. Use it to sort names.- JavaScript Strings · tutorial
- JavaScript String Methods · tutorial