English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript toUpperCase() Method

 JavaScript String Object

toUpperCase()The method converts the string to uppercase.

Syntax:

string.toUpperCase()
var str1 = "www.oldtoolbag.com";
var str2 = str1.toUpperCase();
Test See‹/›

Browser Compatibility

All browsers fully support the toUpperCase() method:

Method
toUpperCase()YesYesYesYesYes

Technical Details

Return Value:Represents the string converted to uppercase
JavaScript Version:ECMAScript 1

 JavaScript String Object