Input (each line, both ends)
Test Hello
Output
Test Hello
Text Tools
Trim leading and trailing whitespace from whole text or each line, with modes for both ends, leading only, or trailing only. Useful for pasted tables and cleaned lists.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
文本处理
等待输入
已复制结果
Input (each line, both ends)
Test Hello
Output
Test Hello
No. Only leading and trailing whitespace for the chosen scope is removed.
Each line is trimmed independently. When disabled, only the start and end of the whole block are trimmed.
Tools
Continue with another translated tool for a nearby task.
Remove Empty Lines
Remove blank lines from text, with an option to also drop whitespace-only lines. Line cleanup runs entirely in your browser.
Merge Spaces
Collapse consecutive spaces into one, with optional Tab collapsing and edge trimming. Newlines stay intact while intra-line whitespace is cleaned locally.
Case Converter
Convert text into uppercase, lowercase, title case, sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONST_CASE at the same time. Useful for variable names and heading cleanup.