socket.help

Text formatter

Clean up the layout of a block of text.

Runs in your browser
OutputText · 0 bytes
Your result will appear hereAdd your input, choose the options and run the tool.

Your input stays on this device. Nothing is uploaded or saved.

About Text formatter

Normalize text layout, sort lines, or remove duplicate lines while preserving the first occurrence.

When to use it

Tidy lists or copied configuration text.

Text formatter example
beta
alpha
beta

Unique lines: beta, alpha

How to use it

  1. Paste your text.
  2. Choose a formatting operation.
  3. Copy the result.

Limits & privacy

Normalizing converts line endings and removes trailing spaces while preserving indentation. Sorting is deterministic and case-sensitive. Duplicate removal compares complete lines.

Use this tool from the API reference or connect through the SDK, CLI, SSH, or MCP. Hosted calls share your plan allowances.