Text

Whitespace Tool

Remove, normalize, or format whitespace in text.

How to use it

  1. Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type Whitespace Tool and press Return.
  2. Paste or type your text into Input.
  3. Adjust the Options on the right if you need to. The defaults are listed below.
  4. Press Process, or ⌘↵.
  5. Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.

Options

OptionValuesDefault
OperationWhitespace operation to performTrim all lines, Remove all whitespace, Normalize spaces, Tabs to spaces, Spaces to tabs, Remove blank lines, Collapse blank lines, Show invisiblesTrim all lines
Tab widthSpaces per tab for conversion1–84
Line endingsNormalize line endingsKeep 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