Text Dedent
Remove common visual indentation while preserving relative layout.
- Free
- No sign-up
- Runs in your browser
- Nothing uploaded
Scope: Indent width uses a chosen fixed tab stop and does not inspect an editor or rendered font.
Workbench
Inputs stay on this page. Press Ctrl or ⌘ + Enter to run.
How to use Text Dedent
Fill in the fields:
- Indented text.
- Tab width: 1 to 16.
Press “Remove common indentation”.
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.

