Skip to content
uencoder
PIPELINE Text Processing Beginner 2 steps

Dedent Text and Trim

Dedent removes common leading whitespace. Trim removes remaining leading/trailing spaces.

What it solves

Remove common indentation then trim whitespace.

Input → Output

Text Dedent input → Text Trim & Clean output across 2 steps.

Runs in

1–2 minutes · fully local in your browser.

Before you start

  • Text with indentation

The pipeline

  1. 1 Text Dedent text-dedent

    Text Dedent — pure client-side tool. Privacy-first, no server round-trip.

  2. Remove empty lines, trim whitespace, collapse spaces. Free, private, 100% client-side.

Open in Toolchain

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

  1. Text Dedenttext-dedent
  2. Text Trim & Cleantext-trim

Sample input

    hello
    world

Expected output

hello
world

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.

Tools used