Normalize whitespace and wrap text
Free-form text pasted from emails or Slack often has inconsistent line lengths and trailing whitespace. This chain first trims every line (removing leading/trailing spaces and blank lines), then wraps the result at 80 characters for clean output.
What it solves
Clean up messy text by trimming lines, removing blank lines, then wrapping to a readable line width.
Input → Output
Text Trim & Clean input → Text Wrap output across 2 steps.
Runs in
1–2 minutes · fully local in your browser.
Before you start
- Free-form text with inconsistent formatting
The pipeline
-
Remove empty lines, trim whitespace, collapse spaces. Free, private, 100% client-side.
-
Wrap text to a specified line width. Free, private, 100% client-side.
Runs locally in your browser. The recipe defines the pipeline only — your input never leaves this tab.
▶Run this workflow
Enter your input below and click Run. All processing happens locally in your browser — nothing is uploaded.
Pipeline progress
- Text Trim & Cleantext-trim
- Text Wraptext-wrap
Sample input
hello world this is a test
Expected output
hello world this is a test
This pair is executed against the real tools at build time (tests/unit/recipes.test.ts) — the expected output is verified, not illustrative.
Related workflows
You might also need
Workflows sharing tools or topics with this recipe.