Case Conversion Utilities

Inverse Case

Flips the case of every character in a string — uppercase becomes lowercase, lowercase becomes uppercase. Use via MCP in Cursor or other AI tools, or call GET /v1/case/inverse with your text. Perfect for creating alternating case effects or inverting existing text formatting. Returns the transformed string with all cases swapped.

API Endpoint

GET /v1/case/inverse

Code Examples

curl "https://tinyfn.io/v1/case/inverse" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/case/inverse', {
  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/inverse',
    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 inverse case work with mixed case strings?

Each character flips individually: 'Hello World' becomes 'hELLO wORLD'. Uppercase letters become lowercase, lowercase become uppercase, non-alphabetic characters remain unchanged.

Can I use inverse case in MCP-enabled editors like Cursor?

Yes, AI agents in Cursor, Claude Code, Windsurf, and other MCP tools can call this function directly to transform text case without hallucinating results.

What happens to numbers and symbols with inverse case?

Numbers, spaces, punctuation, and special characters remain unchanged. Only alphabetic characters (a-z, A-Z) have their case inverted.

Is there a difference between inverse case and swap case?

No, they're identical operations. Both flip uppercase to lowercase and vice versa for each character in the string.

How do I call the inverse case REST API?

Send a GET request to /v1/case/inverse with your text as a parameter. The API returns the case-inverted string deterministically.

Try Inverse Case Now

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

Get Free API Key