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.
How to Use:
- Paste or import your list into the Input List box.
- Select the indentation type:
- Spaces
- Tabs
- Custom string (e.g.
--
or>>>
)
- Choose how many indent units to apply (e.g. 4 spaces or 2 tabs).
- 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)
- The indented output appears instantly in the Indented Output box.
- Use Copy Output or Export to File to save your result.
- 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.