Indent Text
Add N spaces (or tabs) to the beginning of every line.
About Indent Text
This tool prepends a configurable number of spaces or a tab character to the start of every line. Empty lines can optionally be skipped (the default) so you don't end up with whitespace-only lines.
When to use it
- Adding code-block indentation when embedding in a Markdown document
- Quoting text in an email or chat with a uniform left margin
- Producing nested output for a hierarchical list
- Re-indenting after a copy-paste flattened the formatting
How it works
Each line is split on LF/CRLF and prefixed with the configured indent string (N spaces or a tab). When 'skip empty lines' is enabled, lines with no content are left blank rather than getting whitespace prepended.
Examples
foo bar baz N=4 (spaces)
foo
bar
bazFrequently asked questions
- Does it indent blank lines?
- By default, no — blank lines stay blank to avoid creating whitespace-only lines that lint tools flag. Toggle the option to indent them anyway.
- Can I use a tab instead of spaces?
- Yes. Switch the 'Indent with' control to Tab. The line gets one tab character prepended regardless of the count value.