Indent List Items

This tool adds indentation to each item in a list using tabs, spaces, or a custom string. You can specify how many indent units to apply and choose whether to indent all lines or only non-empty ones. All formatting updates instantly in the preview.

Paste your input above or import a file below.
No file chosen
Supported file types: .txt, .csv, .tsv, .log, .md, .ini, .yaml, .yml, .html, .htm, .css
Total characters: 0
Options
Trim each line
Ignore empty lines
Add line numbers
Maximize output

How to Use:

  1. Paste or import your list into the Input List box.
  2. Select the indentation type:
    • Spaces
    • Tabs
    • Custom string (e.g. -- or >>>)
  3. Choose how many indent units to apply (e.g. 4 spaces or 2 tabs).
  4. Use the Options:
    • Trim lines: removes extra whitespace before indenting
    • Ignore empty lines: leaves blank lines untouched
    • Indent all lines: includes empty lines (if not ignored)
  5. The indented output appears instantly in the Indented Output box.
  6. Use Copy Output or Export to File to save your result.
  7. Click Clear All to reset the tool.

Example:

Input:

apple
banana

cherry

Indent Type: Space Amount: 2 Trim lines: ON Ignore empty lines: ON

Output:

  apple
banana

cherry

Common Use Cases:

Use this tool to format nested content, create indented lists for Markdown, prepare code or data for structured processing, or apply consistent formatting to line-based input for documentation, logs, or display purposes.

Useful Tools & Suggestions:

If you’re indenting list items, Add a List Item Prefix works well alongside it especially when you want to label or style each line in a nested format. And if you need to undo or adjust spacing later, Trim List Items helps clean things up without losing structure. It’s a useful combo for outlining, organizing thoughts, or formatting lists for visual clarity.