TEXT OPERATIONS
Trim the leading and trailing whitespace of each line individually and return the trimmed lines joined by newline characters.
WHAT THIS DOES
Runs entirely in your browser.
/tools/trim-each-linetrim-each-linev4.0.0LOCAL · LOCAL RUNIMPLEMENTED — This workbench is functional in the current release.Presets for this workbench
No preset yet. A preset stores the values in this form — never the result — and only for workbenches that run entirely in your browser.
Collections
Saved on this device only. Turn on sync to carry them to another device.
BATCH / ONE VALUE PER LINE
Up to 200 lines, one at a time, in this browser. Each line takes the place of text and everything else stays as you set it. Nothing is uploaded, and the row limit is not exceeded silently.
METHOD / LOCAL RUN
Each line is processed with the browser `String.prototype.trim` and the trimmed lines are joined with newlines.
Boundary: Only edges are trimmed; internal whitespace runs are preserved within each line.
The calculation or transformation runs in your browser using the values entered above. No input is sent to UtilityForge for this tool.
EXAMPLES / LOCAL RUN FIXTURES
FAQ
Only edges are trimmed; internal whitespace runs are preserved within each line.
No. This published tool runs locally in your browser. UtilityForge does not send the values entered in this workbench to a server.
No. This workbench runs in the page: Text are read by the code your browser already downloaded, and UtilityForge receives neither the values nor the result.
Yes, and it is enforced rather than advertised: Text (100,000 characters). The limit is a browser input limit on a tool that runs on this device, so nothing is truncated after being sent anywhere.
RELATED TOOLS
LOCAL — Runs entirely in your browser.
COMMON USE CASES / SOURCE NOTE
Last reviewed:
Source information: Local per-line whitespace trimming; no document editor or remote service is used.