| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/toLowerCase | [Back] [Original] |
Get to know MDN better
This feature is well established and works across many devices and browser versions. Its been available across browsers since July 2015.
The toLowerCase() method of String values returns this string converted to lower case.
const sentence = "The quick brown fox jumps over the lazy dog.";
console.log(sentence.toLowerCase());
// Expected output: "the quick brown fox jumps over the lazy dog."
toLowerCase()
None.
A new string representing the calling string converted to lower case.
The toLowerCase() method returns the value of the string converted to
lower case. toLowerCase() does not affect the value of the string
str itself.
toLowerCase()console.log("ALPHABET".toLowerCase()); // 'alphabet'
| Specification |
|---|
| ECMAScript 2027 LanguageSpecification # sec-string.prototype.tolowercase |
String.prototype.toLocaleLowerCase()String.prototype.toLocaleUpperCase()String.prototype.toUpperCase()This page was last modified on Jul 10, 2025 by MDN contributors.
Stringanchor()at()big()blink()bold()charAt()charCodeAt()codePointAt()concat()endsWith()fixed()fontcolor()fontsize()includes()indexOf()isWellFormed()italics()lastIndexOf()link()localeCompare()match()matchAll()normalize()padEnd()padStart()repeat()replace()replaceAll()search()slice()small()split()startsWith()strike()sub()substr()substring()sup()toLocaleLowerCase()toLocaleUpperCase()toLowerCase()toString()toUpperCase()toWellFormed()trim()trimEnd()trimStart()valueOf()[Symbol.iterator]()Object/FunctionYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |