Skip to main content

Text Change Case

Uncontrolled node

Overview​

Transforms text into various case formats commonly used for file naming, variable naming, or text formatting. This node supports standard case conversions (uppercase/lowercase) as well as programming-style cases like camelCase, snake_case, and kebab-case.

The node runs automatically whenever the input text changes, making it ideal for real-time text formatting within workflows.

Case Options​

CaseDescriptionExample InputExample Output
UPPER CASEConverts all characters to uppercase"hello world""HELLO WORLD"
lower caseConverts all characters to lowercase"HELLO WORLD""hello world"
camelCaseLowercase first word, uppercase first letter of subsequent words"hello world""helloWorld"
dot.caseReplaces spaces with dots, lowercase"hello world""hello.world"
kebab-caseLowercase with hyphens between words"hello world""hello-world"
snake_caseLowercase with underscores between words"hello world""hello_world"

Inputs​

InputTypeDescriptionDefault
textTextThe input text to transform.-

Properties​

PropertyTypeDescriptionDefault
textCaseEnumThe target case format. Options: upperCase, lowerCase, camelCase, dotCase, kebabCase, snakeCase.lowerCase

Outputs​

OutputTypeDescription
outputTextThe transformed text in the selected case format.

Runtime Behavior and Defaults​

This is an uncontrolled node that executes immediately when the input text is provided or changes. It does not require an event trigger to run.

  • Default Case: If no case is specified, the node defaults to lowerCase.
  • Empty Input: If the input text is empty or undefined, the output will be an empty string.
  • Whitespace Handling: For dotCase, kebabCase, and snakeCase, whitespace is normalized and replaced according to each format's specification.
  • Special Characters: Non-alphanumeric characters are generally preserved except where they interfere with the case transformation (e.g., spaces are replaced in camelCase, kebab-case, etc.).

Example​

Converting a Filename to snake_case​

Use this node to standardize filenames for storage or processing:

  1. Connect a Plain Text node (or any text source) to the text input with value: "My Document File"
  2. Set the textCase property to snakeCase
  3. The output will be: "my_document_file"

This is particularly useful when combined with the Write To Library node to ensure consistent file naming conventions.