JavaScript String toLowerCase()

Example

Convert to lowercase:

let text = "Hello World!";
let result = text.toLowerCase();
Try it Yourself »

Description

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

The toLowerCase() method does not change the original string.


Syntax

string.toLowerCase()

Parameters

NONE

Return Value

Type Description
A stringThe string converted to lowercase.

Browser Support

toLowerCase() is an ECMAScript1 (ES1) feature.

ES1 (JavaScript 1997) is fully supported in all browsers:

Chrome Edge Firefox Safari Opera IE
Yes Yes Yes Yes Yes Yes

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.