Skip to main content

Description

Converts a string to camelCase format by removing non-alphanumeric characters and capitalizing the first letter of each word except the first.

Syntax

Parameters

Returns

Type: string The input string converted to camelCase format. Returns null if input is null.

Examples

Example 1: Basic Usage

Output:

Example 2: Converting Field Names

Output:

Example 3: Normalizing Property Names

Notes

  • Returns null for null input
  • Removes all non-alphanumeric characters
  • First character is always lowercase
  • Subsequent words start with uppercase
  • Useful for normalizing field names to JavaScript/JSON conventions

See Also

Frequently Asked Questions

It recognizes spaces, hyphens, underscores, and transitions between lowercase and uppercase characters as word boundaries.
In camelCase the first letter is lowercase (e.g., helloWorld), while upperCamelCase (PascalCase) capitalizes the first letter too (e.g., HelloWorld).