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

Cleaning Options

Cleaned Text

Try It in 30 Seconds

  1. Paste text that has extra indentation on each line.

  2. Keep "Remove Indentation" enabled.

  3. Click Clean Text and copy the left-aligned result.

Example (Input and Output)

Input

line one line two line three

Output

line one line two line three

How It Works

  1. Paste text copied from code blocks, emails, or documents.

  2. Remove leading indentation from each line.

  3. 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.