String Utilities

Pascal Case

Converts any text to PascalCase formatting, where each word starts with a capital letter and spaces/punctuation are removed. Access via MCP in Cursor or Windsurf, or hit GET /v1/string/pascal-case with your text. Perfect for generating class names, component identifiers, or API naming conventions. Handles edge cases like numbers, special characters, and mixed casing reliably.

API Endpoint

GET /v1/string/pascal-case

Code Examples

curl "https://tinyfn.io/v1/string/pascal-case" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/string/pascal-case', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/string/pascal-case',
    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 string tools:

{
  "mcpServers": {
    "tinyfn-string": {
      "url": "https://tinyfn.io/mcp/string",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How does PascalCase differ from camelCase?

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

Can I convert file names or URLs to PascalCase?

Yes, it handles any text input including file-names.txt, api/endpoints, or 'user input' by extracting words and capitalizing each one.

Does the MCP tool preserve numbers in PascalCase conversion?

Numbers are preserved as-is. 'user123 data' becomes 'User123Data', maintaining the numeric characters in their original positions.

What happens with special characters and punctuation?

Special characters are removed and act as word separators. 'hello-world_test!' becomes 'HelloWorldTest'.

How do I batch convert multiple strings to PascalCase?

Make separate API calls for each string, or use the MCP tool in your AI editor to process multiple conversions in one session.

Try Pascal Case Now

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

Get Free API Key