Converts any text into clean, URL-safe slugs by removing special characters, replacing spaces with hyphens, and lowercasing everything. Use via MCP in Cursor or Windsurf for instant slug generation, or call GET /v1/slug/slugify with your text. Perfect for creating SEO-friendly URLs from article titles like "My Blog Post!" → "my-blog-post". Handles Unicode characters and multiple languages reliably.
curl "https://tinyfn.io/v1/slug/slugify" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/slug/slugify', {
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/slugify',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
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"
}
}
}
}
Slugify removes or converts special characters to hyphens, handles Unicode properly for international text, and strips accents from characters like é → e.
Yes, slugify works in Cursor, Windsurf, and other MCP tools to instantly convert article titles, form inputs, or any text into URL-ready slugs during development.
Slugify does comprehensive sanitization: lowercases text, removes punctuation, handles consecutive spaces, trims edges, and ensures valid URL characters throughout.
Yes, it maintains word separation by converting spaces and punctuation to single hyphens, so "Hello, World!" becomes "hello-world" not "helloworld".
The tool accepts reasonable text lengths for typical use cases like article titles, product names, and page headings without arbitrary limits.