Martech Zone Apps

App: 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.

Appreciate this content?

Sign up for our weekly newsletter, which delivers our latest posts every Monday morning.

We don’t spam! Read our privacy policy for more info.

Douglas Karr

Douglas Karr is a fractional Chief Marketing Officer specializing in SaaS and AI companies, where he helps scale marketing operations, drive demand generation, and implement AI-powered strategies. He is the founder and publisher of Martech Zone, a leading publication in marketing technology, and a trusted advisor to startups and enterprises alike. With a track record spanning more than $5 billion in MarTech acquisitions and investments, Douglas has led go-to-market strategy, brand positioning, and digital transformation initiatives for companies ranging from early-stage startups to global tech leaders like Dell, GoDaddy, Salesforce, Oracle, and Adobe. A published author of Corporate Blogging for Dummies and contributor to The Better Business Book, Douglas is also a recognized speaker, curriculum developer, and Forbes contributor. A U.S. Navy veteran, he combines strategic leadership with hands-on execution to help organizations achieve measurable growth.

Related Articles

Back to top button
Close

Adblock Detected

We rely on ads and sponsorships to keep Martech Zone free. Please consider disabling your ad blocker—or support us with an affordable, ad-free annual membership ($10 US):

Sign Up For An Annual Membership