What the text formatter does
Two opposite operations on plain text. Beautify normalises spacing and line structure so a paragraph reads cleanly — one space after punctuation, consistent blank lines between paragraphs, no trailing whitespace. Minify collapses everything into as few characters as possible — single spaces, no line breaks — for fields with tight limits or for text that will be embedded in a string. It runs in your browser.
Beautify
Before:
This is a sentence.Another one follows ,with odd spacing .
Next paragraph
After:
This is a sentence. Another one follows, with odd spacing.
Next paragraph- Collapses multiple spaces and tabs to one.
- Ensures a single space after full stops, commas, colons and semicolons, and none before them.
- Reduces runs of blank lines to a single blank line between paragraphs.
- Trims whitespace at the start and end of every line.
Minify
Before: (the beautified text above, 2 paragraphs)
After: This is a sentence. Another one follows, with odd spacing. Next paragraphMinifying joins all lines with single spaces and removes any doubled spacing, producing one continuous line. Use it when a form counts characters, when text must go into a single-line field, or when you are pasting into a JSON string or a URL parameter and line breaks would need escaping.
Common uses
- Copy from PDFs and scans — OCR and PDF extraction leave broken spacing that beautify fixes in one pass.
- Meta descriptions and social posts — minify to see the true character count without line breaks.
- Embedding text in code — a minified paragraph pastes cleanly into a string literal.
- Cleaning email quotes and chat exports before saving to notes.
- Preparing text for a word count — consistent spacing makes counts accurate.
What it does not change
- Words, spelling and punctuation marks themselves — only the whitespace around them.
- Case; use the Text Cleaner for case conversion.
- Content inside code blocks or tables is treated as plain text; indentation that carries meaning (code, poetry) will be altered — use the language-specific formatters for code.
- Hyphenation and line-end hyphens from PDFs are left as they are; search for “- ” to find and fix them.
Text formatter vs the other text tools
| Need | Tool |
|---|---|
| Fix spacing and blank lines | Text Formatter (this page) |
| Change case, convert to snake_case etc. | Text Cleaner |
| Count words and characters | Word Counter |
| Format code | JS, CSS, HTML, SQL, JSON, YAML, XML formatters |
| Make a slug from a title | URL Slug Generator |