Text Indenter

Add or remove indentation across a block of lines.

Tool Panel

Loading tool...
About Text Indenter

Adds or removes indentation by a chosen width — faster than editing by hand, and consistent across the block.

  • 1

    Adding indentation prepends N spaces to each line and leaves blank lines untouched, so no invisible trailing whitespace appears on empty lines.

  • 2

    Removing indentation matches `^ {0,N}`, so a line with fewer than N spaces is simply cleared rather than skipped, and tabs are not touched at all.

  • 3

    One direction per run: it never guesses whether a line should gain or lose indentation, which keeps mixed files from being mangled.

Related tools

View all
Word Counter
Text Tools

Word Counter

Count characters, words and lines as you type.

Text Tools
Case Converter
Text Tools

Case Converter

Switch between upper, lower, camel, snake and other case styles.

Text Tools
Text Diff
Text Tools

Text Diff

Compare two texts and highlight exactly what changed.

Text Tools
Find and Replace
Text Tools

Find and Replace

Replace across a whole document, with optional regular expressions.

Text Tools
Text Cleaner
Text Tools

Text Cleaner

Strip extra spaces, blank lines and stray markup in one pass.

Text Tools
Remove Duplicate Lines
Text Tools

Remove Duplicate Lines

Drop repeated lines and leave the list unique.

Text Tools