Online text tool

Word frequency counter, word counter, characters counter


wordfrequency.org

What is?

A very handy online text tool where you can count words and characters, discover the frequency of words in a text, change between lower case and upper case letters, where you can capitalize, uncapitalize, convert to mix case and transform your text!

You can use Word Frequency to track your text length against common web standards like Twitter's tweet character count (140), Google's meta description (300), and Facebook's average post display length (~250).

Word Frequency features

Word Frequency

Word frequency counter allows you to count the frequency usage of each word in your text.

Paste or type in your text, and click "Send".

Word Counter

Word counter allows you to count the number of words in your text.

Paste or type in your text, and click "Send".

Character Counter

Character counter allows you to count the number of character in your text.

Paste or type in your text, and click "Send".

Sentence Case

The sentence case converter will allow you to paste any text you’d like, and it will automatically transform it to a fully formed structured sentence.

It works by capitalizing the very first letter in each sentence, and will then go on to transform the rest of the text into lowercase as well as converting i’s into I’s. Every letter after a full stop will get converted into an upper case letter.

This is an example of sentence case.

Lower Case

If you are wondering how to uncapitalize text, this is exactly what the lower case text converter will allow you to do - it transforms all the letters in your text into lowercase letters.

Simply copy the text that you need generating into lower case and paste the text into the box above and select the ‘lower case’ option.

this is an example of lower case.

Upper Case

The upper case transformer will take any text that you have and will generate all the letters into upper case ones. It will essentially make all lower case letters into CAPITALS (as well as keep upper case letters as upper case letters).

To do this, you simply have to select the text that you need changing and pasting into the box above and then select the UPPER CASE option.

THIS IS AN EXAMPLE OF UPPER CASE.

Capitalized Case

The capitalized case converter will automatically convert the starting letter of every word into an upper case and will leave the remaining letters as lower case ones.

Simply copy the content that you will like to generate into this format, then paste into the box form above and select the Capitalized Case option.

This Is An Example Of Capitalized Case.

Alternating Case

The alternating case converter will allow you to transform your text (no matter the current format) into text that alternates between lower case and upper case. It will generate a capital letter and then a lower case letter within the same word.

tHiS Is aN ExAmPlE Of aLtErNaTiNg cAsE.

And More

Apart from this, brings some code examples to how to do some of this features.

Code Examples

Example 1
Counting words in Java

This is a simple way to count words in a string in Java.

StringTokenizer automatically takes care of whitespace for us, like tabs and carriage returns.

In some cases like in “he-man”, we'd want “he” and “man” to be different words, but since there's no whitespace between them, the defaults fail us.

Fortunately, we can pass a delimiter into the constructor to make it works, how you can see:

public class CountWords { public static void main(String[] args) { System.out.println(count("He-Man is a fictional superhero")); } private static int count(String text) { return new StringTokenizer(text, " -").countTokens(); } }
Example 2
Counting characters in Java

There are many ways for counting the number of characters in a String.

Below a simple/naive approach:

public class CountChars { public static void main(String[] args) { System.out.println(count("He-Man is a fictional superhero")); } private static int count(String text) { int count = 0; for (int i = 0; i < text.length(); i++) { count++; } return count; } }