Text
Whitespace Tool
Remove, normalize, or format whitespace in text.
How to use it
- Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type Whitespace Tool and press Return.
- Paste or type your text into Input.
- Adjust the Options on the right if you need to. The defaults are listed below.
- Press Process, or ⌘↵.
- Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.
Options
| Option | Values | Default |
|---|---|---|
| OperationWhitespace operation to perform | Trim all lines, Remove all whitespace, Normalize spaces, Tabs to spaces, Spaces to tabs, Remove blank lines, Collapse blank lines, Show invisibles | Trim all lines |
| Tab widthSpaces per tab for conversion | 1–8 | 4 |
| Line endingsNormalize line endings | Keep original, Unix (LF), Windows (CRLF), Classic Mac (CR) | Keep original |
Example
Real output from Devly, with the default options.
Input
hello world from devly
hello world from devly
From Terminal
With the free command-line tool installed:
Terminal
devly whitespace --path input.txt # or pipe text in pbpaste | devly whitespace
Quick Switch also finds it by: whitespace, trim, spaces, tabs, normalize, clean.
More Text tools
String CaseConvert text between camelCase, snake_case, kebab-case, and moreRegex TesterTest and debug regular expressions with match highlightingRegex LibraryBrowse and copy common regex patternsString DiffCompare two strings and show differencesLine SorterSort, shuffle, dedupe, and manipulate text linesText StatisticsAnalyze text for word count, character frequency, and readability