Overview
This node performs simple text transformations on an input string. It supports converting text to uppercase, lowercase, or reversing the text. This is useful in scenarios where you need to normalize text data, prepare strings for case-insensitive comparisons, or manipulate text formatting within an automation workflow.
Practical examples:
- Converting user input to lowercase before storing it in a database to ensure consistency.
- Reversing a string for encoding or obfuscation purposes.
- Changing text to uppercase for display or comparison.
Properties
| Name | Meaning |
|---|---|
| Input Text | The text string that you want to transform. |
The operation type ("To Lowercase" in this context) is fixed by your selection and not listed here as a property because you specified it explicitly.
Output
The node outputs JSON objects with the following structure:
{
"result": "transformed text",
"inputText": "original input text",
"operation": "toLowercase"
}
result: The transformed text after applying the selected operation.inputText: The original input text provided.operation: The operation performed (e.g., "toLowercase").
No binary data output 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 will simply return an empty string as the result 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 for that item.