transformation

String.prototype.toLowerCase

Returns a new string with all characters converted to lower case using Unicode default case mapping. For locale-specific behavior use toLocaleLowerCase.

str.toLowerCase()

Parameters

Parameter Purpose
(no arguments) Method takes no parameters
returns New lower-cased string

Examples

console.log('HELLO'.toLowerCase());

Prints 'hello'

console.log('Ω'.toLowerCase());

Prints 'ω'

console.log('ABC123'.toLowerCase());

Prints 'abc123'

console.log('İ'.toLowerCase());

Prints 'i̇' (dot above; use toLocaleLowerCase('tr') for Turkish 'i')

Gotcha

Locale-insensitive — Turkish and Azeri callers should use toLocaleLowerCase('tr'). Returns a new string; original is untouched.

Related methods

← All JS string methods · JS array methods