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.
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)
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"
}
}
}
}
Each character flips individually: 'Hello World' becomes 'hELLO wORLD'. Uppercase letters become lowercase, lowercase become uppercase, non-alphabetic characters remain unchanged.
Yes, AI agents in Cursor, Claude Code, Windsurf, and other MCP tools can call this function directly to transform text case without hallucinating results.
Numbers, spaces, punctuation, and special characters remain unchanged. Only alphabetic characters (a-z, A-Z) have their case inverted.
No, they're identical operations. Both flip uppercase to lowercase and vice versa for each character in the string.
Send a GET request to /v1/case/inverse with your text as a parameter. The API returns the case-inverted string deterministically.
Get your free API key and start using Inverse Case in seconds.
Get Free API Key