String Utilities

Camel Case

Converts any text string to camelCase format, handling spaces, hyphens, underscores, and mixed capitalization. Access via MCP in Cursor or Windsurf for instant variable naming, or call GET /v1/string/camel-case directly. Input "hello world" returns "helloWorld". Preserves alphanumeric characters while removing delimiters and applying proper capitalization rules.

API Endpoint

GET /v1/string/camel-case

Code Examples

curl "https://tinyfn.io/v1/string/camel-case" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/string/camel-case', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/string/camel-case',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's string tools:

{
  "mcpServers": {
    "tinyfn-string": {
      "url": "https://tinyfn.io/mcp/string",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How does camelCase conversion handle special characters and numbers?

Removes non-alphanumeric characters (except spaces, hyphens, underscores) and preserves numbers. 'user-name-123' becomes 'userName123'.

Can I use this MCP tool in Cursor for variable naming?

Yes, perfect for converting descriptions to JavaScript/TypeScript variable names. Highlight text and use the MCP tool to instantly get camelCase output.

What happens with already camelCase input?

Returns the input unchanged if it's already valid camelCase. 'myVariable' stays 'myVariable'.

Does it work with multiple words separated by different delimiters?

Yes, handles mixed separators. 'first_name-with spaces' becomes 'firstNameWithSpaces'.

How does it differ from PascalCase conversion?

camelCase starts lowercase ('userName'), PascalCase starts uppercase ('UserName'). Same word separation logic, different first character.

Try Camel Case Now

Get your free API key and start using Camel Case in seconds.

Get Free API Key