Case Conversion Utilities

To Pascal Case

Converts any text to PascalCase formatting where each word starts with a capital letter and spaces are removed. Access via MCP in Cursor or Windsurf, or call GET /v1/case/pascal with your text. Perfect for class names, component identifiers, and API naming conventions. Returns deterministic results regardless of input formatting.

API Endpoint

GET /v1/case/pascal

Code Examples

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

Use the TinyFn case conversion tool in your MCP-enabled editor like Cursor or Claude Code. Pass any text and it returns proper PascalCase formatting.

What's the difference between PascalCase and camelCase?

PascalCase capitalizes the first letter (MyVariable), while camelCase keeps it lowercase (myVariable). Both remove spaces and capitalize subsequent words.

Can PascalCase conversion handle special characters and numbers?

Yes, it processes numbers and special characters by treating them as word boundaries, so 'user-id_123' becomes 'UserId123'.

What REST API endpoint converts text to PascalCase?

Send a GET request to /v1/case/pascal with your text parameter. Returns the converted PascalCase string.

When should I use PascalCase in programming?

Use PascalCase for class names, interfaces, enums, and public methods in languages like C#, Java, and TypeScript. Also common for React components and API resource names.

Try To Pascal Case Now

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

Get Free API Key