String.prototype.toLowerCase()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

toLowerCase() メソッドは、呼び出す文字列の値を小文字に変換して返します。

試してみましょう

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."

構文

js
toLowerCase()

返値

呼び出す文字列の値を小文字に変換した新しい文字列です。

解説

toLowerCase() メソッドは、小文字に変換された文字列の値を返します。toLowerCase() メソッドは、文字列 str 自身の値には影響を与えません。

toLowerCase() メソッドの使用

js
console.log("ALPHABET".toLowerCase()); // 'alphabet'

仕様書

Specification
ECMAScript® 2025 Language Specification
# sec-string.prototype.tolowercase

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
toLowerCase

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報