How to use the Indent Remover For Plain Text
- Paste the text that has unwanted indentation.
- Pick whether to strip leading, trailing, both or all whitespace on each line.
- Set the tab size so tab characters expand predictably.
- Optionally drop blank lines and copy the result.
About this tool
The Indent Remover For Plain Text is built for speed and accuracy: every calculation runs in your browser, so your data never leaves your device and the result updates as you type. It works equally well on a phone, a tablet or a desktop, and it is free to use as many times as you like.
Common use cases
- De-indenting Python pasted from an email.
- Cleaning up a nested list from a document.
- Removing trailing spaces before a commit.
- Flattening a config file for a diff.
Tips for the best result
- Use the latest figures you have - even a small change in rate or term can shift the outcome by hundreds.
- For annual figures, divide by 12 to get a monthly number you can compare with the result.
- Bookmark this page and revisit the calculation as the inputs change.
Frequently asked questions
Why does tab size matter?
A tab can be 2, 4 or 8 spaces depending on the editor. Expanding tabs to a fixed width first makes the stripping predictable across files.
Can this break Python code?
Yes if you strip leading indentation from Python - indentation is syntax there. Use "Trailing whitespace" for code, and "Leading" only for prose or data.