Overview
This node performs simple text transformations on an input string. It supports converting text to uppercase, lowercase, or reversing the text. This node is useful in scenarios where you need to normalize or manipulate text data within a workflow, such as formatting user input, preparing data for case-insensitive comparisons, or generating reversed strings for encoding or display purposes.
Practical examples:
- Converting product names or tags to uppercase for consistent database storage.
- Lowercasing email addresses before validation or comparison.
- Reversing strings for creating palindromes or obfuscating text.
Properties
| Name | Meaning |
|---|---|
| Input Text | The text to transform. Accepts any string input. |
The operation property is fixed to "To Uppercase" based on your selection, so only that transformation will be applied.
Output
The node outputs an array of JSON objects, each containing:
result: The transformed text after applying the selected operation (uppercase conversion).inputText: The original input text provided.operation: The operation performed, here always"toUppercase".
Example output JSON:
{
"result": "HELLO WORLD",
"inputText": "Hello World",
"operation": "toUppercase"
}
No binary data is produced by this node.
Dependencies
- No external services or API keys are required.
- The node relies solely on built-in JavaScript string methods.
- No special n8n environment variables or credentials are needed.
Troubleshooting
- Unsupported Operation Error: If an unsupported operation value is somehow passed, the node throws an error indicating the operation is not supported. This should not occur if using the node's UI properly.
- Empty Input Text: Providing an empty string results in an empty output string without errors.
- Continue On Fail: If enabled, the node will continue processing subsequent items even if one item causes an error, returning the error message in the output JSON.