Trim Whitespace from Text
Free online tool to trim leading and trailing whitespace from every line of your text.
How it works
The text is transformed as it is typed or pasted, with the result ready to copy from the output panel. Every transform in the switcher runs on the same input, so it is easy to try another one without re-pasting.
Everything happens in the browser. Nothing is uploaded and no request is made, which makes it safe for configuration, tokens and anything else that should not be sent to a server. Transforms that expect structured input, such as the JSON and Base64 ones, report the parse error instead of a result when the input is invalid.
More whitespace & line tools pages
Related tools
Case Converter
Convert text between UPPERCASE, camelCase, snake_case, kebab-case, slugs and more.
Encode, Decode & Format
Format and minify JSON, encode and decode Base64, URLs and HTML entities.
Cron Expression Explainer
Type a cron schedule and get plain English, a field breakdown and the next run times.
Number Base Converter
Convert numbers between binary, octal, decimal and hex at any size, via BigInt.
Free and open source from Earthling Digital, an independent creative agency. Built with Earthling UI.