Overview
Text Indent Formatter normalizes leading whitespace in multi-line text. It supports indent add/remove, tab-space conversion, and live stats for code cleanup and formatting workflows.
Core Features
- Four operations: Add indent, remove indent, tab to spaces, spaces to tab.
- Indent units: 2/4/8 spaces for common style conventions.
- Output controls: Preserve empty lines and trim trailing whitespace.
- Live metrics: Total lines, empty lines, max indent, and tab-containing lines.
Use Cases
- Code normalization: Align indentation style before review/merge.
- Indent-sensitive fixes: Clean YAML, Python, and similar files.
- Log preprocessing: Prepare line-based text for downstream tooling.
- Style migration: Convert historical content between tabs and spaces.
How to Use
- Paste input text.
- Choose operation, indent unit, and indent level.
- Configure preserve-empty-lines and trim-trailing-whitespace if needed.
- Review output, then copy or download.
FAQ
Does remove indent delete all spaces in a line?
No. It only changes leading indentation and keeps inner-line spaces.
How does tab-to-spaces keep alignment?
Tabs are expanded by column using the selected indent unit to avoid misalignment.
Is my text uploaded to a server?
No. Processing is local in your browser.