The text changes in this tab
Remove the shared indent
The shortest indent on a non-empty line is removed from every line.
Relative indents stay, so a nested line remains further in.
The work stays in this tab.
This tool runs in your browser. Turn on JavaScript to use it.
Dedent
The sample is fixed. It uses the same rule as the form.
- Input
- a b
- Result
- a b
How to use it
- 1Edit the text.
- 2Read the result beside it.
- 3Copy what you need.
Good to know
- Tabs and spaces are both counted as one character.
- This page does not upload the text.
- Text longer than one hundred thousand characters is rejected.
Questions
Does the result leave this browser?
No. The calculation finishes in the current tab.
What does this page leave out?
Tabs and spaces are both counted as one character.
What if the input is huge?
Past one hundred thousand characters, the page stops and asks you to shorten it.
Related tools
- Replace tabs with two spaces
Every tab character becomes two spaces, wherever it sits.
- Trim each line
Spaces and tabs at both ends of every line are removed.
- Sort, trim, and count lines
Lists in a text box are awkward to clean by hand. This page trims, filters, sorts, or reverses the lines, and always shows the counts.