Text Formatter Workflow Action in Sparkforge
Text Formatter is a free workflow action that transforms text mid-flow: case conversion, trim, replace, split, extract URL or email, strip HTML, and more. Add it from the Internal Tools category.
Text Formatter cleans up data inside a workflow before it reaches the next action. It's a free internal action and handles the small transformations that otherwise require custom code or a third-party tool.
What Text Formatter does
It takes text input from earlier in the workflow and applies one transformation at a time. Use multiple Text Formatter actions in sequence to chain transformations.
Action types
Case conversion
- Upper Case — standardize input or output to all caps.
- Lower Case — normalize for case-insensitive comparison.
- Title Case — capitalize the first letter of every word, useful for headings and titles.
- Capitalize — capitalize only the first letter of the string.
Cleanup
- Trim Whitespaces — strip leading and trailing whitespace from messy form input.
- Remove HTML Tags — strip HTML to get plain text for SMS or alerts.
- Default Value — return a fallback when the input is empty.
Truncation and length
- Trim — shorten text to a specified length. Optional: skip characters from the start or append an ellipsis.
- Length — returns the character count.
- Word Count — returns the word count.
Search and replace
- Replace Text — swap one substring for another. Useful for templated content with placeholders.
- Find — returns the position of the first match of a pattern.
Extraction
- Extract URL — pulls the first URL out of a block of text.
- Extract Email — pulls the first email address out of a block of text.
- Split — breaks text on a delimiter and returns First, Second, Last, or Second Last segment.
How to add the action
- Click the + icon to add an action.
- Find Text Formatter under the Internal Tools category, or search for it.
- Pick an Action Type from the list above.
- Configure the inputs (varies by action type).
Configuring Trim
Select the input text and the target length. Optional fields: skip a number of characters from the beginning, and toggle on an ellipsis at the end.
Configuring Split
Select the input text, enter a separator, and pick which segment to return: First, Second, Last, or Second Last.
Frequently Asked Questions
Does Text Formatter cost extra?
Can I chain multiple transformations?
What's the difference between Capitalize and Title Case?
Where does Extract URL find URLs?
Can Text Formatter parse JSON?
Was this article helpful?
Thanks for the feedback.