Skip to content
NMSnabbit.

Indent Text Lines

Add a consistent leading indent to every line of text.

Text Tools Runs in your browser

How do you indent lines of text?

“line one” over “line two” becomes “ line one” over “ line two”: an indent pass prefixes each non-blank line with the same run of spaces so the whole block shifts right together. Internal alignment is preserved because every line moves by an identical amount, and blank lines are skipped rather than filled, which avoids trailing-whitespace warnings from linters and git diffs.

How to use the Indent Tool

  1. 1 Add the block of text that needs shifting right.
  2. 2 A uniform run of spaces is prefixed to every non-blank line.
  3. 3 Blank lines are skipped, so no trailing whitespace is introduced.
  4. 4 Copy out the indented block; run Left Align Text later to undo it.

What you can use it for

  • Nesting text under a heading or list item.
  • Quoting a block inside a larger document.
  • Indenting plain-text code snippets.
  • Shifting a paragraph to align with surrounding content.

Frequently asked questions

How big is the default indent?
A fixed run of spaces goes in front of every non-blank line. Since the same amount is added everywhere, relative alignment inside the block, such as nested bullets, is preserved.
Are blank lines indented too?
No, they stay truly empty. Indenting them would create whitespace-only lines, which linters flag and git highlights as trailing-whitespace noise in diffs.
How do I remove an indent again?
Run the block through the Left Align Text tool, which strips leading whitespace from every line and brings the text back to the margin.

Related tools

More Text Tools

More tools like this:

All Text Tools