Word Count
Get an instant, accurate count of words, characters, sentences, and paragraphs in your text.
The Word Count tool provides real-time, detailed statistics for your text, including the number of words, characters (with and without spaces), sentences, and paragraphs. Essential for writers, students, and SEO content creation. Check your word count now!
${message}`;
document.body.appendChild(toast);
setTimeout(() => {
toast.style.animation = 'slideOutRight 0.3s ease-in';
setTimeout(() => document.body.removeChild(toast), 300);
}, 3000);
},
copyWithNotification(event, value, label) {
window.writeClipboardText(event, value);
this.showNotification(`${label} copied to clipboard!`);
},
exportStatistics() {
try {
const stats = {
text_sample: this.textContent.substring(0, 100) + (this.textContent.length > 100 ? '...' : ''),
statistics: {
words: this.words,
characters_with_spaces: this.letters,
characters_without_spaces: this.lettersNoSpaces,
paragraphs: this.paragraphs,
lines: this.lines,
sentences: this.sentences,
reading_time_minutes: this.readingTime,
average_word_length: this.words > 0 ? (this.lettersNoSpaces / this.words).toFixed(2) : 0,
average_sentence_length: this.sentences > 0 ? (this.words / this.sentences).toFixed(2) : 0
},
timestamp: new Date().toISOString(),
generated_by: 'Toolgami Word Count Tool'
};
const blob = new Blob([JSON.stringify(stats, null, 2)], { type: 'application/json' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = `text-statistics-${new Date().toISOString().slice(0, 10)}.json`;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(url);
this.showNotification('Statistics exported successfully!');
} catch (error) {
this.showNotification('Error exporting statistics', 'error');
}
},
clearText() {
this.textContent = '';
document.querySelector('textarea').value = '';
this.words = 0;
this.letters = 0;
this.lettersNoSpaces = 0;
this.paragraphs = 0;
this.lines = 0;
this.sentences = 0;
this.readingTime = 0;
this.showNotification('Text cleared', 'info');
}
}">
Enter text to count words, characters, paragraphs, lines, and more. Example: The quick brown fox = 4 words
Text Statistics
Words
0
Click to copy
Letters
0
Click to copy
Paragraphs
0
Click to copy
Lines
0
Click to copy
Characters (no spaces)
0
Click to copy
Sentences
0
Click to copy
Reading Time
0
min
~200 words/min
Was this result helpful?
Thank you for your feedback!
Your input helps us improve our tools.