URL/Slug Utilities

Deslugify

Deslugify transforms URL slugs back into human-readable text by replacing hyphens with spaces and applying proper capitalization. Use via MCP in Cursor or Windsurf, or call GET /v1/slug/deslugify directly. Input "react-native-best-practices" returns "React Native Best Practices" — perfect for converting slugified content back to display titles.

API Endpoint

GET /v1/slug/deslugify

Code Examples

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

response = requests.get('https://tinyfn.io/v1/slug/deslugify',
    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 url/slug tools:

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

Learn more about MCP setup →

FAQ

How does deslugify handle capitalization?

It capitalizes the first letter of each word, converting "javascript-array-methods" to "Javascript Array Methods". The transformation assumes standard title case formatting.

Can I deslugify slugs with underscores instead of hyphens?

The tool is designed for hyphen-separated slugs. For underscore-separated strings, you'll need a different text transformation approach or manual replacement.

What's the reverse of deslugify in MCP tools?

Use TinyFn's slugify tool to convert readable text back to URL-safe slugs. Both tools work together for bidirectional slug/text conversion in AI agents.

Does deslugify preserve numbers and special characters?

Numbers are preserved ("api-v2-guide" becomes "Api V2 Guide"), but the tool focuses on hyphen-to-space conversion with basic capitalization rules.

When would I use deslugify in a development workflow?

Common use cases include generating page titles from URL slugs, converting filename slugs to display names, or transforming slugified database entries back to readable labels.

Try Deslugify Now

Get your free API key and start using Deslugify in seconds.

Get Free API Key