The Word Counter bookmarklet is an essential tool for content writers and editors who need to quickly analyze text length and structure on any webpage.
This efficient bookmarklet instantly provides detailed word and character counts for any selected text, eliminating the need for external tools or copy-pasting.
Perfect for content analysis and editing, this tool provides immediate feedback about text length and structure.
javascript:!function(){try{const t=window.getSelection().toString().trim(),e=t.split(/\s+/).filter((t=>t.length>0)),n=t.length,r=t.replace(/\s/g,"").length,s=document.createElement("div");s.style.cssText="position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:white;padding:20px;border-radius:8px;box-shadow:0 0 10px rgba(0,0,0,0.5);z-index:9999;min-width:300px;",s.innerHTML=`<h3 style="margin-top:0">Word Counter Results:</h3><div style="margin:15px 0"><strong>Words:</strong> ${e.length}</div><div style="margin:15px 0"><strong>Characters (with spaces):</strong> ${n}</div><div style="margin:15px 0"><strong>Characters (without spaces):</strong> ${r}</div><div style="margin:15px 0"><strong>Average word length:</strong> ${(r/e.length).toFixed(1)} characters</div><button onclick="this.parentElement.remove()" style="margin-top:10px;padding:5px 10px">Close</button>`,document.body.appendChild(s)}catch(t){alert("Error: "+t.message)}}();
Drag me to bookmark bar: 👉🏻 Word Counter
* Counts words and characters in selected text
* Shows characters with and without spaces
* Calculates average word length
* Works on any webpage
* Provides results in a clean modal window
Why Use Word Counter? #
This bookmarklet is essential for:
- Quick content length analysis
- Meeting word count requirements
- Analyzing text structure and complexity
- Content editing and revision
- SEO content optimization
- Previous: Wayback Machine Search