Java: String toLowerCase() method

In this article, we will discuss how to convert each individual characters inside a String into a lowercase character using String’s toLowerCase() method

toLowerCase () method: This String method is used to convert invoking sequence/string into lowercase characters (all character present in string/sequence)


Method Signature:

public String toLowerCase();



  • String converted to lowercase


Examples on toLowerCase() method:

To convert all characters present in the invoking string into lowercase

package in.bench.resources.string.methods;

public class StringToLowerCaseMethod {

	public static void main(String[] args) {

		// sample string
		String url = "BenchResources.Net";

		// convert all characters present inside string into lower-case
		String lowerCase = url.toLowerCase();

		// print to console - converted lower-case string
		System.out.println("Converted lower-case is : " + lowerCase);


Converted lower-case is :


Hope, you found this article very helpful. If you have any suggestions or want to contribute any other way or tricky situation you faced during Interview hours, then share with us. We will include that code here.




Happy Coding !!
Happy Learning !!

Java: String toString() method
Java: String toCharArray() method