Case Conversion Utilities

To Header Case

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.

API Endpoint

GET /v1/case/header

Code Examples

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)

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 header case conversion handle different input formats?

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'.

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

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.

Can I use this MCP tool to generate HTTP header names in my API client code?

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.

Does header case preserve numbers and special characters?

Numbers are preserved as-is, but most special characters except hyphens are removed or converted to word boundaries for proper header formatting.

What happens with already hyphenated text or mixed case input?

It normalizes everything to proper Header-Case regardless of input format. 'x-api-KEY' becomes 'X-Api-Key', and 'CONTENT-type' becomes 'Content-Type'.

Try To Header Case Now

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

Get Free API Key