Converts any text string to camelCase format by capitalizing the first letter of each word (except the first) and removing spaces, hyphens, and underscores. Access via MCP in Cursor or Windsurf for instant variable naming, or call GET /v1/case/camel directly. Input "hello world" returns "helloWorld" — perfect for JavaScript variables, API fields, and object properties.
curl "https://tinyfn.io/v1/case/camel" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/case/camel', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/case/camel',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's case conversion tools:
{
"mcpServers": {
"tinyfn-case": {
"url": "https://tinyfn.io/mcp/case",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Special characters like hyphens, underscores, and spaces are removed, while numbers are preserved in their original position. 'user-name-123' becomes 'userName123'.
Yes, Claude Code can call the camelCase tool to convert variable names instantly. Just paste your text and get properly formatted JavaScript/Java variable names.
camelCase keeps the first letter lowercase ('userName'), while PascalCase capitalizes it ('UserName'). Use camelCase for variables, PascalCase for class names.
The tool processes all input uniformly, so 'alreadyCamelCase' may become 'alreadycamelcase'. It doesn't detect existing formatting.
Make separate GET requests to /v1/case/camel for each string, or build a simple script to iterate through your list and call the endpoint.
Get your free API key and start using To Camel Case in seconds.
Get Free API Key