Text Formatter
Advanced text formatting with 25+ operations, VSCode-style editor mode, and one-click export.
Definition: Whitespace in text is defined by the Unicode Standard: space (U+0020), tab (U+0009), and the line breaks LF (U+000A) and CRLF (U+000D U+000A); trimming and collapse operations act on exactly this set.
Editor
Format Categories
Formatting Options
Text Statistics
Capabilities
- • Case transforms (`camelCase`, `snake_case`, `kebab-case`)
- • Spacing and line cleanup
- • Sort, reverse, deduplicate lines
- • Extract URLs and emails
- • Add bullets / numbering
Text Formatter FAQ
How do I remove extra spaces from text?
Paste your text and click Fix Spacing — it collapses any run of repeated spaces into a single space and trims the edges of each line. If you need every space gone entirely, use Remove Spaces instead.
How do I convert text to uppercase or lowercase?
Use the UPPERCASE or lowercase buttons in the Case category — the whole text updates instantly. Title Case capitalizes every word, and Sentence case capitalizes only the first letter of each sentence.
How do I sort a list alphabetically?
Put one entry per line, then click Sort Lines A-Z for ascending order or Sort Lines Z-A for descending. Combine with Remove Duplicates to get a clean, sorted, unique list in two clicks.
How do I remove duplicate lines?
Click Remove Duplicates in the Lines category — it keeps the first occurrence of each line and deletes the repeats. It works on any line-based list: emails, URLs, names, or keywords.
How do I remove line breaks or empty lines?
Remove Line Breaks joins everything into a single flowing paragraph — useful after copying from PDFs. Remove Empty Lines deletes the blank lines while keeping each line of content intact.
Is my text uploaded to a server?
No. Every operation runs locally in your browser — nothing is sent to or stored on a server. You can disconnect from the internet and the tool keeps working.
Is my text saved if I leave or refresh the page?
Yes. Your draft is saved automatically as you type and restored when you come back, covering every input panel of the tool. The draft lives only in your browser's local storage — it is never uploaded to any server, and clearing your browser data removes it.
Boost your productivity with text analysis and formatting tools