Skip to content
BenchkitTool
Text

Trim Whitespace

Remove spaces at the start and end of every line.

Input

Updates automatically as you type.

Result

Fill in the fields to see the result.

How to use

  1. 1Provide your input in the fields on the left.
  2. 2Adjust the options. The result updates in your browser as you go.
  3. 3Copy, preview or download the output. Nothing is sent to a server.

Tip: Text stays in this tab; results are copyable or downloadable.

Privacy & FAQ

Are my files uploaded?

No. All processing happens in this tab using browser APIs and Web Workers. Results are local Blobs.

Do I need an account?

No sign-up, no usage limits, no tracking of your files or text.

Does it work offline?

Yes. Once the app is loaded, tools keep working without a connection.

What if a file is too large?

Browsers cap memory per tab. Very large files may fail; the tool will tell you and nothing is lost.

Benchkit is free and has no ads. Buy me a coffee

You might also like

Related tools

All Text tools →

Developer

Base64 Encode / Decode

Encode text or files to Base64 and data URLs, or decode them back.

Open

Developer

URL Encode / Decode

Percent-encode or decode URLs and query strings.

Open

Developer

Regex Tester

Test regular expressions live with flags, capture groups and replace.

Open

Developer

Diff Checker

Compare two texts line by line and see additions and removals.

Open
Explore Text