Word Counter
Count words, characters, sentences and paragraphs as you type, with reading and speaking time alongside.
Tidy messy spacing by collapsing repeated spaces and stacked blank lines. Single line breaks and paragraph gaps stay where they are.
Updated
Your browser is preparing the tool. It runs 100% locally.
Paste text and the tool tidies its spacing. It collapses repeated spaces and tabs into a single space, removes spaces around line breaks, and limits blank lines so paragraphs are separated by just one. Single line breaks and the paragraph structure stay, so your text gets cleaner without being squashed into one block. The cleanup happens in your browser and the text isn't uploaded.
Text copied between apps or documents often picks up messy spacing: double spaces, stray tabs, spaces hanging at the ends of lines, and stacks of blank lines. This tool clears that up and leaves evenly spaced, readable text.
After a pass, words are separated by single spaces and paragraphs by single blank lines. The wording doesn't change, and the text isn't merged into one block.
The tool makes a few cleanup passes over your text. It replaces any run of spaces and tabs with a single space, strips spaces sitting just before or after a line break, reduces three or more blank lines to a single blank line, and trims whitespace from the very start and end.
It keeps the structure on purpose: single line breaks stay, and so does one blank line between paragraphs. The spacing becomes consistent without your lines being merged into a single paragraph.
runs of spaces or tabs → one space
spaces around a line break → removed
three or more blank lines → one blank line
then trim the start and endhello world + several blank lines + foo bar → hello world + one blank line + foo barIt keeps single line breaks and one blank line between paragraphs. Stripping all whitespace or joining lines together are jobs for separate tools.
For ordinary prose the result is what you'd expect: words separated by single spaces, no trailing spaces, and paragraphs separated by a single blank line. The wording doesn't change.
Single line breaks and one blank line between paragraphs are kept by design. If you wanted everything on one line, or every blank line gone, use a line-break remover or a whitespace remover instead.
Tabs are treated as spaces and collapsed along with them into a single space. If your text uses tabs for alignment, such as a table laid out with tabs, that alignment will be lost.
Only the whitespace around and between words changes. Punctuation, capitalisation and the words themselves come through exactly as you pasted them.
Fix double spaces and stray tabs from a paste.
Even out the spacing before publishing or sharing.
Strip spaces hanging at the ends of lines.
Reduce stacks of empty lines to single gaps.
To join lines into a single paragraph, use a line-break remover. To strip every whitespace character, use a whitespace remover. This tool tidies the spacing and keeps the line and paragraph structure.
The tool turns runs of spaces and tabs into one space, trims spaces around line breaks and cuts stacked blank lines down to one, so the paragraphs keep their shape.
Count words, characters, sentences and paragraphs as you type, with reading and speaking time alongside.
Remove duplicate lines from a list while keeping the first copy of each in its original position.
Remove line breaks and join text into one flowing line.
Switch text between UPPERCASE, lowercase, Title Case, Sentence case, and aLtErNaTiNg with one click per case.
Generate placeholder Lorem Ipsum paragraphs, starting with the classic opening line or fully random.
Paste two versions of a text and see what changed line by line, with additions in green and removals in red.
Your file is processed on this device and never uploaded, and there's no account to create.