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

Create a free account to save this page, take notes and track your progress. Sign in

Syntax

string.toLowerCase()

Return value

A new string.

Examples

LowercaseTry it yourself
console.log("Hello World".toLowerCase());

Output

hello world
Compare ignoring caseTry it yourself
const a = "[email protected]", b = "[email protected]";
console.log(a === b, a.toLowerCase() === b.toLowerCase());

Output

false true

Version history

VersionChange
JavaScript ES1Added

In other languages

Was this page helpful?