Left Align Text Online
Strip leading whitespace so every line is flush left.
Text Tools Runs in your browser
How do you left align text?
Left-aligning strips the whitespace bookending every line, so “ Chapter One” collapses to “Chapter One” flush against the margin. Both spaces and tabs go, which makes it the quickest way to undo a centering pass or the ragged indents that PDFs leave behind when you copy from them. Blank lines survive, so paragraph breaks stay where they were.
How to use the Left Align Text
- 1 Paste the indented or centred text you want flattened.
- 2 Leading and trailing spaces and tabs vanish from every line.
- 3 Check that paragraph breaks survived — blank lines are kept as-is.
- 4 Take the flush-left result wherever it is headed.
What you can use it for
- Removing indentation copied from code or docs.
- Undoing centered or padded plain text.
- Flattening text pasted out of PDFs.
- Resetting a left margin before re-formatting.
Frequently asked questions
What exactly is removed from each line?
Whitespace at the two ends of a line: leading spaces, leading tabs, and any trailing run left over from padding. Interior spacing between words is not touched.
Can it undo centered or indented text?
That is the main job. Centring and indenting both work by adding leading spaces, so stripping them restores the original left edge in one pass.
Are blank lines kept?
Yes. An empty line comes out as an empty line, so paragraph separation and the overall shape of the document are unchanged.
Related tools
More Text Tools
More tools like this:
All Text Tools