LOCAL TEXT TOOL · VERIFIED LOCAL TOOL

Trim leading and trailing lines

Remove empty lines only at the start and end.

LOCAL PROCESSING · No upload or network lookup · Maximum input 1 MB

Input

Result

Loading local tool…

All text conversion happens in this browser tab. You decide whether to copy or download the result. Outputs are not saved on CraftAI servers.

Explore all released tools

Remove Leading and Trailing Blank Lines

Remove empty lines only at the start and end of a text block. Use this browser-based utility to process supplied text and inspect the generated result.

Will blank lines inside paragraphs be removed?

No. Interior blank lines are preserved by this operation.

Related tools: collapse repeated blank lines · trim text whitespace

Built on Hatchable