Converts alphanumeric strings (uppercase and lowercase) to camelcase, and removes non-alphanumeric characters - including spaces, dashes, forwardslashes, and underscores. This is useful for creating variable-style keys or formatting labels consistently in integrations. Digits are preserved.
-
Convert a product type to camelcase
{{camelcase record.product.type}}Input:
{ "record": { "product": { "type": "hand crafted item" } } }Output:
handCraftedItem
-
Convert from dash-separated string
{{camelcase record.category}}Input:
{ "record": { "category": "new-arrival-products" } }Output:
newArrivalProducts
-
Preserve numbers and remove special characters from in a string
{{camelcase "version-2_1-final"}} → version21Final
Tip
-
Numbers remain unchanged but are preserved in the output (e.g.,
"order_123_id"→order123Id). -
All caps strings are switched to camelcase ("
HELLO&WORLD" → "helloWorld") -
Use this helper to standardize keys for APIs or when generating identifiers programmatically.
-
Unlike
sentence, this helper does not add spaces or adjust casing beyond camelCase rules. -
Non-alphanumeric characters (except digits) are treated as separators and removed
-
Leading and trailing whitespace is trimmed before conversion
-
Non-string datatype inputs (like numbers or boolean) are converted to strings before processing. Arrays of primitive types (like strings or numbers) are converted into a comma-separated string before processing. If inputs are objects or object arrays, the output will be unusable.