jQuery Convert Text to Uppercase/Lowercase

By Sam Deering

jQuery Code Snippets to convert text on a web page to uppercase or lowercase. Could be useful for changing text styles on your web page without using css (although there is a css example below also).

Uppercase/Lowercase using jQuery


Capitalize using CSS

If you wanted to capitalise first letter of each word you could do this by using CSS.


Then attach it to the element.

  • Lora

    I didn’t know the CSS trick for capitalization of text.

    I was looking for a plugin which can be used for all kind of cases rather then writing code for every case. There are many plugins available for uppercase and not a single plugin which work for upper and lower as well.

    After hours of googling, I found a plugin “Setcase” which can be used for lower, upper, title and pascal case as well.. Exactly what I was looking for..

  • Jeferson





  • Guest


    Why did you suggest


    instead of




Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in JavaScript, once a week, for free.