Text Dedent

Remove common visual indentation while preserving relative layout.

Scope: Indent width uses a chosen fixed tab stop and does not inspect an editor or rendered font.

Workbench

Inputs stay on this page.

Removes the smallest shared visual indentation from non-blank lines while preserving relative layout. Line endings are normalized to LF.

How to use Text Dedent

  1. Fill in the fields:

    • Indented text.
    • Tab width: 1 to 16.
  2. Press “Remove common indentation”.

  3. Copy the result, or download it as dedented.txt.

About this tool

Remove common visual indentation while preserving relative layout.

Removes the smallest shared visual indentation from non-blank lines while preserving relative layout. Line endings are normalized to LF.