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.
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)
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"
}
}
}
}
Removes non-alphanumeric characters (except spaces, hyphens, underscores) and preserves numbers. 'user-name-123' becomes 'userName123'.
Yes, perfect for converting descriptions to JavaScript/TypeScript variable names. Highlight text and use the MCP tool to instantly get camelCase output.
Returns the input unchanged if it's already valid camelCase. 'myVariable' stays 'myVariable'.
Yes, handles mixed separators. 'first_name-with spaces' becomes 'firstNameWithSpaces'.
camelCase starts lowercase ('userName'), PascalCase starts uppercase ('UserName'). Same word separation logic, different first character.