Case Conversion Utilities

To Dot Case

Converts any text format to dot.case notation where words are separated by periods. Use via MCP in Cursor/Claude Code or REST at GET /v1/case/dot. Perfect for file extensions, namespaces, or configuration keys. Handles mixed cases, spaces, and special characters deterministically.

API Endpoint

GET /v1/case/dot

Code Examples

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

It normalizes any input (camelCase, snake_case, kebab-case, spaces) into lowercase words separated by dots: 'getUserName' becomes 'get.user.name'.

Can I use this MCP tool for bulk file renaming in AI agents?

Yes, AI agents in Windsurf or Cline can call this tool repeatedly to convert filenames to dot notation for consistent naming schemes.

What happens to special characters and numbers in dot case?

Special characters are removed, numbers are preserved, and consecutive separators collapse to single dots: 'API-v2_test!' becomes 'api.v2.test'.

Does dot case conversion preserve acronyms or uppercase sequences?

No, it converts everything to lowercase for consistency: 'XMLHttpRequest' becomes 'xml.http.request', not 'XML.Http.Request'.

How does this differ from other case conversion utilities?

Dot case is specifically for hierarchical naming (config.database.host) while snake_case uses underscores and kebab-case uses hyphens.

Try To Dot Case Now

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

Get Free API Key