Trim Line Ends
Text copied out of PDFs, emails, or web pages often carries stray spaces at the start of a line, which turn into accidental blockquotes or code blocks in Markdown. Strip them from both ends of every line, leaving inner spacing intact.
How to use
- Paste the text into the box with its line breaks intact.
- Spaces and tabs are removed from both ends of each line; blank lines between paragraphs remain.
- Press Copy result and paste it back into Markdown or your editor — the stray indentation is gone.
FAQ
Does it remove full-width spaces?
No. Only ASCII spaces and tabs are trimmed, so the full-width space (U+3000) common in Japanese and Chinese pages survives. To clear those, replace them with normal spaces in an editor first, then run this tool.
Will the blank lines between paragraphs disappear?
No. Blank lines have no content to trim and stay as they are. Do note that Markdown hard line breaks made with two trailing spaces will break, because those spaces count as trailing whitespace — switch to a backslash or a blank line instead.