Case Conversion Utilities

To Kebab Case

Converts any text to kebab-case format where words are lowercase and separated by hyphens. Call via MCP in Cursor or Windsurf, or hit GET /v1/case/kebab with your text. Perfect for URL slugs, CSS classes, and file names. Handles mixed case, spaces, underscores, and special characters consistently.

API Endpoint

GET /v1/case/kebab

Code Examples

curl "https://tinyfn.io/v1/case/kebab" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/case/kebab', {
  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/kebab',
    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 do I convert text to kebab-case using MCP?

Use the to_kebab_case tool in your AI editor like Cursor or Claude Code. Pass any text and get back lowercase words separated by hyphens.

What happens to special characters and numbers in kebab-case conversion?

Special characters are removed or converted to hyphens, numbers are preserved, and multiple consecutive separators become a single hyphen.

Can I convert camelCase and snake_case to kebab-case?

Yes, the tool handles camelCase, snake_case, PascalCase, and mixed formats. 'firstName' becomes 'first-name', 'user_profile' becomes 'user-profile'.

What's the difference between kebab-case and other case formats?

Kebab-case uses hyphens (my-variable), snake_case uses underscores (my_variable), and camelCase capitalizes words (myVariable). Kebab-case is ideal for URLs and CSS.

Does kebab-case conversion preserve word boundaries correctly?

Yes, it intelligently splits on capital letters, spaces, underscores, and other delimiters. 'XMLHttpRequest' becomes 'xml-http-request' with proper word detection.

Try To Kebab Case Now

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

Get Free API Key