String Utilities

Title Case

Converts strings to proper title case following standard capitalization rules. Access via MCP in Cursor or Windsurf, or REST at /v1/string/title-case. Returns "hello world guide" as "Hello World Guide" — handles articles, prepositions, and conjunctions correctly. Deterministic formatting ensures consistent results across AI workflows.

API Endpoint

GET /v1/string/title-case

Code Examples

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

What capitalization rules does title case follow?

Capitalizes first and last words, all major words (nouns, verbs, adjectives), but keeps articles (a, an, the), short prepositions (in, on, of), and conjunctions (and, or, but) lowercase unless they're the first or last word.

How do I use title case formatting in my MCP-enabled editor?

Call the title-case tool through MCP in Cursor, Claude Code, or other supported editors. Pass your text string and get properly formatted title case back instantly.

Does it handle special cases like hyphens and colons correctly?

Yes, it capitalizes words after hyphens and colons. "state-of-the-art system" becomes "State-of-the-Art System" and "chapter one: the beginning" becomes "Chapter One: The Beginning".

What's the difference between title case and sentence case?

Title case capitalizes all major words ("The Quick Brown Fox") while sentence case only capitalizes the first word and proper nouns ("The quick brown fox").

Can I process multiple strings or just one at a time?

The tool processes one string per request. For batch operations, make multiple API calls or use it repeatedly in your MCP workflow.

Try Title Case Now

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

Get Free API Key