Slugify API - Convert Text to URL-Friendly Slugs
Transform any text into a clean, URL-safe slug. Removes special characters, converts spaces to hyphens, lowercases everything. Free: 1,000 requests/day, no API key required.
{
"input": "Hello World!",
"pipeline": [
"slugify"
]
}Response:
{
"success": true,
"input": "Hello World!",
"pipeline": [
"slugify"
],
"result": "hello-world",
"steps": [
{
"step": 1,
"action": "slugify",
"result": "hello-world",
"execution_time_ms": 1
}
],
"execution_time_ms": 4
}Use Case: Turn user-generated titles into routing keys and URLs
slugify lowercases, strips punctuation, and joins words with hyphens. For camelCase identifiers like userAccountBalance, use kebabcase instead — slugify leaves the casing. Pick the transform to match the input shape.
Example: Transform any text into a clean, URL-safe slug. Removes special characters, converts spaces to hyphens, lowercases everything. Free: 1,000 requests/day, no API key required.
Related guide:
Slugify API: turn any title into a URL-safe slug →Frequently Asked Questions
Does slugify lowercase my text?
Yes. slugify lowercases everything and joins words with hyphens, producing a clean URL segment.
How is slugify different from kebabcase?
slugify strips punctuation and lowercases; kebabcase only converts casing and inserts hyphens. For camelCase identifiers, use kebabcase.
Quick Start
curl -X POST https://textforge.co/v1/run -H "Content-Type: application/json" -d '{"input":"Hello World!","pipeline":["slugify"]}'fetch("https://textforge.co/v1/run", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ input: "Hello World!", pipeline: ["slugify"] })
}).then(r => r.json()).then(console.log);import requests
payload = { "input": "Hello World!", "pipeline": ["slugify"] }
response = requests.post("https://textforge.co/v1/run", json=payload)
print(response.json())<?php
$payload = json_encode([ "input" => "Hello World!", "pipeline" => ["slugify"] ]);
$ch = curl_init("https://textforge.co/v1/run");
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
$response = curl_exec($ch);
echo $response;
?>Why use the API?
Sub-5ms latency
p95 response time, no cold starts
Composable pipelines
Chain transforms in one request
Fair free tier
1,000 requests/day, no credit card
Works everywhere
curl, Python, JS, PHP - no SDK needed
Built-in analytics
Usage tracking, rate limit headers
HTTPS only
CORS enabled, production ready