pipr.tools
Pipes
Clean Email Strip formatting from pasted email for clean plain text Clean AI Output Clean plain text from ChatGPT or AI output Decode & Format JWT Decode a JWT and pretty-print header and payload Word Frequency Count word frequency in text

wc Word and character counter with line count

# Stats
Input0 chars
Output0 chars

Examples

Count lines, words, and characters in a text

Usage
"The quick brown fox jumps
over the lazy dog.
A second paragr..." | wc

Check word count on marketing copy for an ad character limit

Usage
"Our new product delivers outstanding performance with indust..." | wc

Verify an essay meets the minimum word count requirement

Usage
"The impact of social media on modern communication has been ..." | wc
View source
(input)=>{
                const lines = input.split("\n").length;
                const words = input.trim().split(/\s+/).filter(Boolean).length;
                const chars = input.length;
                const bytes = new Blob([
                    input
                ]).size;
                const readingMin = Math.ceil(words / 238);
                return `  Lines: ${lines.toLocaleString()}\n  Words: ${words.toLocaleString()}\n  Chars: ${chars.toLocaleString()}\n  Bytes: ${bytes.toLocaleString()}\n  ~Read: ${readingMin} min`;
            }