Martech Zone Apps

Word Counter, Sentence Counter, and Character Counter (Removing HTML)

If you’re reading this article in our email or feed, you will need to click through to the page to use the app.

Count Copy Clean Text

As with many of our Martech Zone Apps, I keep finding new tools that I need when I’m working with our clients. Whether it’s ensuring titles and meta descriptions are the correct lengths, or I’m trying to see how many characters I’m limited to when passing data, I’m often searching for and finding a word count or character count engine online.

It’s a dead simple script to write, so I wanted to share it here along with the sentence count as well! A couple of improvements I made to this were:

  • Trimmed the source text for leading and trailing spaces.
  • Ensure that every sentence has a space after it.
  • Removed extra spaces between words and sentences.
  • Removed any HTML.

Hope you find this helpful, let me know if there are any improvements that you would like.

Douglas Karr

Douglas Karr is the founder of the Martech Zone and a recognized expert on digital transformation. Douglas has helped start several successful MarTech startups, has assisted in the due diligence of over $5 bil in Martech acquisitions and investments, and continues to launch his own platforms and services. He's a co-founder of Highbridge, a digital transformation consulting firm. Douglas is also a published author of a Dummie's guide and a business leadership book.

Related Articles

What do you think?

This site uses Akismet to reduce spam. Learn how your comment data is processed.