Text & Lists
Shorten Text Processor
Transform text with Truncate and the selected rules. Enter the text, set the transformation rules, then copy the result.
This tool runs open-source code from OmniTools (MIT License). See open-source credits.
Shorten Text Processor keeps a selected number of items from the start or end of a parsed list.
one two Processing runs in the browser.
Instructions
- Provide text or data for this tool.
- Choose whether the length applies from the start or end.
- Enter a non-negative item count and set the output separator.
- Compare the result with the original when the count exceeds list length.
Example
Input: one two three four
Settings: Shorten Text Processor: Split on newline, keep 2 items from the start, and join with newline.
Result: one two
Limits
- Shorten Text Processor: The length controls items, not characters.
- Shorten Text Processor: A negative or missing length fails validation.
- Shorten Text Processor: The operation runs in the browser and does not need a network service.