Case Conversion Utilities

To Path Case

Converts any text to path-case format where words are lowercase and separated by forward slashes. Access via MCP in Cursor or Windsurf, or call GET /v1/case/path directly. Perfect for URL paths, file structures, and routing. Input "Hello World Example" returns "hello/world/example" — deterministic conversion handles spaces, punctuation, and mixed cases consistently.

API Endpoint

GET /v1/case/path

Code Examples

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

What is path case and when should I use it?

Path case uses forward slashes to separate lowercase words, like 'user/profile/settings'. It's ideal for URL routing, file paths, and API endpoints where hierarchical structure matters.

How does the path case converter handle special characters and numbers?

Special characters are removed, numbers are preserved, and multiple separators collapse to single slashes. '[email protected]' becomes 'api/v2/user/domain/com'.

Can I use this tool in my AI coding assistant for automatic path generation?

Yes, MCP integration lets Claude Code, Cursor, and other AI tools convert variable names or descriptions directly to valid path formats during development.

What's the difference between path case and other case conversions?

Unlike kebab-case (hyphens) or snake_case (underscores), path case uses forward slashes to create hierarchical structures suitable for URLs and file systems.

Does the path case converter work with Unicode or international characters?

Yes, it properly handles Unicode characters by converting them to lowercase and preserving valid path characters while removing problematic symbols.

Try To Path Case Now

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

Get Free API Key