Converts text to Header-Case format where each word starts with uppercase and subsequent letters are lowercase, connected by hyphens. Access via MCP in Cursor or Windsurf, or call GET /v1/case/header directly. Perfect for HTTP headers, CSS properties, or API naming conventions. Handles spaces, underscores, and camelCase intelligently.
curl "https://tinyfn.io/v1/case/header" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/case/header', {
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/header',
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"
}
}
}
}
It converts spaces and underscores to hyphens, splits camelCase at capital letters, and capitalizes the first letter of each word. 'user_name' becomes 'User-Name', 'firstName' becomes 'First-Name'.
Header case uses hyphens as separators and follows HTTP header conventions, while title case uses spaces. 'content type' becomes 'Content-Type' in header case vs 'Content Type' in title case.
Yes, it's ideal for converting variable names to proper HTTP header format. Your AI assistant can call it to transform 'authToken' into 'Auth-Token' for header keys.
Numbers are preserved as-is, but most special characters except hyphens are removed or converted to word boundaries for proper header formatting.
It normalizes everything to proper Header-Case regardless of input format. 'x-api-KEY' becomes 'X-Api-Key', and 'CONTENT-type' becomes 'Content-Type'.
Get your free API key and start using To Header Case in seconds.
Get Free API Key