Case Conversion Utilities

Capitalize Text

Converts text to sentence case by capitalizing only the first letter and lowercasing the rest. Use via MCP in Cursor or Windsurf for text processing, or call GET /v1/case/capitalize directly. Perfect for normalizing user input or AI-generated content. Returns deterministic results unlike LLM text manipulation which can be inconsistent.

API Endpoint

GET /v1/case/capitalize

Code Examples

curl "https://tinyfn.io/v1/case/capitalize" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/case/capitalize', {
  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/capitalize',
    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 capitalize text differ from title case?

Capitalize text only capitalizes the first letter of the entire string, while title case capitalizes the first letter of each word. 'hello world' becomes 'Hello world' (capitalize) vs 'Hello World' (title case).

Can I use this MCP tool to normalize AI agent responses?

Yes, it's ideal for standardizing text formatting from AI responses. Connect via MCP in Claude Code or Cline to ensure consistent sentence case output regardless of the original AI formatting.

What happens to numbers and special characters?

Numbers and special characters remain unchanged. Only alphabetic characters are affected - the first letter becomes uppercase, all others become lowercase.

Does it handle empty strings or whitespace?

Empty strings return empty, leading whitespace is preserved. 'hello' becomes 'Hello', but ' hello' becomes ' Hello' with spaces intact.

How do I call this via REST API?

Send GET request to /v1/case/capitalize with your text as a query parameter. Returns JSON with the capitalized result.

Try Capitalize Text Now

Get your free API key and start using Capitalize Text in seconds.

Get Free API Key