Trim List Items

Trim whitespace from the left and right side of list items.

Input
Separator for the Input List
A specific symbol is used to separate input items.
A multi-character pattern is that can be matched with a regex is used to separate input items.
Separator. Specify the character or regex that separates list items here.
Separator for the Output List
Output Separator. Specify a character, multiple characters, or a short string that will separate output list items.
Trimming Side
Remove whitespaces from the left side of list items.
Remove whitespaces from the right side of list items.
Output

What this tool is for

Trim whitespace from the left and right side of list items.

The useful question is not whether the page transformed something, but whether it transformed the right unit in the right way for the next step in your workflow.

What this tool changes

Trim List Items applies a focused transformation to the input so you can compare the before and after without writing a custom script for a one-off task.

List tools usually treat each line or separator-delimited value as a discrete item, so separators and blanks affect the result.

This tool is deterministic: the same input and the same settings produce the same output every time. All processing happens in your browser, so your input stays on your device during the transformation.

When people usually reach for it

Clean pasted lists.

Normalize list item spacing.

Prepare lists for matching.

Examples

Quick before and after

Input
Trim List Items input:
Email: john.doe@example.com
Status: active

Output
Trim List Items output:
Email: john.doe@example.com
Status: active

Why results sometimes look unexpected

Unexpected output usually comes from one of three places: the wrong unit of transformation, hidden formatting in the source, or an option that changes the rule being applied.

For deterministic tools, the same input and the same settings should reproduce the same result. If not, the input likely changed in a small but meaningful way.

Frequently Asked Questions

Will the same input and settings always produce the same output?

Yes. This tool is deterministic, so repeating the same input with the same settings produces the same result.

Does this tool process data in the browser or on a server?

This tool runs locally in your browser, so your input is processed on your device rather than being uploaded for server-side conversion.