--- title: String.prototype.toLowerCase() slug: Web/JavaScript/Reference/Global_Objects/String/toLowerCase tags: - JavaScript - Method - Prototype - Reference - String translation_of: Web/JavaScript/Reference/Global_Objects/String/toLowerCase ---
{{JSRef}}
toLowerCase() 메서드는 문자열을 소문자로 변환해 반환합니다.
 
{{EmbedInteractiveExample("pages/js/string-tolowercase.html")}}

구문

str.toLowerCase()

반환값

호출 문자열을 소문자로 변환한 새로운 문자열

설명

toLowerCase() 메서드는 호출 문자열을 소문자로 변환해 반환합니다.  toLowerCase() 는 원래의 str에 영향을 주지 않습니다.

예제

 toLowerCase()

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

명세

표준 상태 비고
{{SpecName('ES1')}} {{Spec2('ES1')}} Initial definition. Implemented in JavaScript 1.0.
{{SpecName('ES5.1', '#sec-15.5.4.16', 'String.prototype.toLowerCase')}} {{Spec2('ES5.1')}}  
{{SpecName('ES6', '#sec-string.prototype.tolowercase', 'String.prototype.toLowerCase')}} {{Spec2('ES6')}}  
{{SpecName('ESDraft', '#sec-string.prototype.tolowercase', 'String.prototype.toLowerCase')}} {{Spec2('ESDraft')}}  

브라우저 호환성

{{Compat("javascript.builtins.String.toLowerCase")}}

참조