Left Align Text
Strip leading whitespace from every line in your browser. Trailing spaces are kept; blank-looking lines become truly empty.
What this left align text does
Leading spaces and tabs are stripped from every line while trailing whitespace is kept exactly as pasted. A line that held only whitespace becomes empty rather than keeping invisible spaces that a diff would later flag. Lines that already start at the margin pass through unchanged, so running the page twice is the same as running it once.
How to use it
Left Align Text: paste the text into the box above, and press Run to get the result below.
Worked example
Input:
indented line
nested deeper
flush left
Output:
indented line
nested deeper
flush left
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads text and returns result; reloading the page discards both.
Leading spaces and tabs are stripped from every line while trailing whitespace is kept exactly as pasted. A line that held only whitespace becomes empty rather than keeping invisible spaces that a diff would later flag. Lines that already start at the margin pass through unchanged, so running the page twice is the same as running it once.
Strip leading whitespace from every line in your browser. Trailing spaces are kept; blank-looking lines become truly empty.
How to use it
Left Align Text: paste the text into the box above, and press Run to get the result below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads text and returns result; reloading the page discards both.
What to Expect
Best for
- Converting text to result when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
indented line nested deeper flush left
Sample output
indented line nested deeper flush left
Frequently asked questions
How do I use the left align text?
Left Align Text: paste the text into the box above, and press Run to get the result below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.