Case Conversion Utilities

To Camel Case

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.

API Endpoint

GET /v1/case/camel

Code Examples

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)

Use via MCP

Add to your AI agent

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"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How does camelCase conversion handle special characters and numbers?

Special characters like hyphens, underscores, and spaces are removed, while numbers are preserved in their original position. 'user-name-123' becomes 'userName123'.

Can I use this MCP tool in Claude Code to quickly rename variables?

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.

What's the difference between camelCase and PascalCase conversion?

camelCase keeps the first letter lowercase ('userName'), while PascalCase capitalizes it ('UserName'). Use camelCase for variables, PascalCase for class names.

Does the tool preserve existing camelCase formatting?

The tool processes all input uniformly, so 'alreadyCamelCase' may become 'alreadycamelcase'. It doesn't detect existing formatting.

How do I batch convert multiple strings to camelCase via REST API?

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.

Try To Camel Case Now

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

Get Free API Key