đ Text Indenter
Add and adjust indentation to text lines instantly. Perfect for formatting code, creating structured documents, and organizing lists with customizable indentation levels and spacing options.
- Paste or type your text in the textarea
- Select the indent level (1-10)
- Choose indent type: spaces (4 per level) or tabs
- Click "Indent Text" to add indentation to each line
- Click "Remove Indent" to reduce indentation
- Statistics update automatically
đ Examples:
- Format and indent code blocks for readability
- Organize lists with proper hierarchy and indentation
- Create structured documents with indented sections
- Prepare text for documentation or presentations
- Fix indentation in copied code snippets
- Create outlines with hierarchical indentation
- Format configuration or markup files
The two buttons are not exact opposites
Indent respects the level box; Remove Indent does not. It strips a single unit, once, no matter what the level says:
Indent prepends 4 x level spaces, or level tabs, to every line
Remove Indent strips one 4-space run (or one tab) from lines that begin
with it, and leaves every other line alone
Both buttons also read the input box afresh each time and write to the panel below it, so pressing Indent twice does not double the indent, and pressing Remove Indent twice does not strip two levels. To go deeper, raise the level. To strip a second level, copy the result back into the input box first.
Edges worth knowing
- Blank lines are indented too. An empty line in the middle of your text comes back holding four spaces, which linters flag as trailing whitespace and which shows up as a change in a Git diff.
- The remover is mode-sensitive and literal. In Spaces mode a tab-indented line is untouched, and a line indented with two spaces stays as it is, because it does not start with a full run of four.
- Level 0 behaves as level 1. Zero is treated as unset, so it still adds one level rather than nothing.
- Windows line endings are normalised. Input split on CRLF is rejoined with plain newlines, which can make a whole file look changed to version control.
Frequently asked questions
How many spaces is one indent level?
Four. Level 2 gives eight spaces and level 3 gives twelve, which suits Python and most style guides. Switch to Tabs and you get one tab character per level instead, whatever width your editor renders it at.
How do I remove more than one level of indentation?
Copy the output back into the input box and press Remove Indent again. Each press takes off exactly one unit, so three nested levels need three rounds.
Can I indent only some of the lines?
Not in one pass - every line in the box is treated the same. Paste the block you want moved on its own, indent it, then put it back into your document.