Free Online Text Indenter, Indent or Unindent Every Line
Indent a whole block of text or take the indentation off again. Pick spaces or tabs and how many, indent only some lines, or remove the smallest indentation the block shares so that nested lines keep their relative shape instead of being flattened.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Indent or Unindent Text
A few steps, and nothing is uploaded.
What to Know About Indenting
Including what unindent does to lines that are already at the left.
Key Features & Capabilities
What this tool does, and what it deliberately does not.
About the Text Indenter
Moving a block of text one level in or out is a two second job in an editor and a nuisance everywhere else: in a comment box, in an email, in a chat message, in a content management system that eats tabs. This page does the same thing as the editor command, without needing the editor.
The part that is easy to get wrong is unindenting. The naive version removes a fixed number of characters from the start of every line, which works until one line is already at the margin, and then everything after it is pulled left by a different amount and the structure collapses. Measuring the shared indentation first and removing exactly that keeps the inner shape intact, which is the behaviour people expect without being able to name it.
The counters are there for the same reason as elsewhere on this site: so that you can see what the text is before you change it. A block whose smallest indent is three and largest is eleven is telling you something about how it was written, usually that two people used different settings.
Frequently Asked Questions
Tabs, blank lines, nesting and markdown code blocks.