Unindent Text Online
Leading spaces and tabs can make pasted text look uneven or hard to reuse. This tool removes indentation so every line starts at the same left edge.
Paste your text, unindent it, and copy the cleaned output in seconds.
Input Text
Cleaned Text
Try It in 30 Seconds
Paste text that has extra indentation on each line.
Keep "Remove Indentation" enabled.
Click Clean Text and copy the left-aligned result.
Example (Input and Output)
Input
Output
How It Works
Paste text copied from code blocks, emails, or documents.
Remove leading indentation from each line.
Copy the cleaned text into your editor or form.
Frequently Asked Questions
Does this remove email quote markers (>)?
No. Use the Remove Email Indents option to strip leading > characters from quoted emails.
Will it remove all spaces?
No. It only removes indentation at the start of each line and keeps normal spacing inside lines.
Will line breaks stay intact?
Yes. Line breaks stay unless you enable "Remove All Line Breaks."
Is this safe for code?
Only if you want to remove indentation. If you need code indentation preserved, leave it off.
Is my text stored?
No. Everything runs locally in your browser.