Slug generator
Turn a title into a clean URL slug: accents removed, punctuation dropped, words joined by hyphens.
Input
Result
Fill in the input and press Run.
Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.
Use it from code or an agent
curl -s https://setget.net/v1/tools/slugify \
-H 'Content-Type: application/json' \
-d '{"input":{"text":"Crème Brûlée: The Ultimate Guide!"}}'
import json, urllib.request
body = {'input': {'text': 'Crème Brûlée: The Ultimate Guide!'}}
request = urllib.request.Request("https://setget.net/v1/tools/slugify", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/slugify", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"text":"Crème Brûlée: The Ultimate Guide!"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "slugify",
"input": {
"text": "Crème Brûlée: The Ultimate Guide!"
}
}
{
"input": {
"text": "Crème Brûlée: The Ultimate Guide!"
}
}
Endpoint: POST /v1/tools/slugify. Over MCP: run_tool with slug: "slugify".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
text |
string | yes | The title or phrase to turn into a slug. |
separator |
string | no | Character placed between words. One of: -, _, .. Default: "-". |
lowercase |
boolean | no | Convert the slug to lower case. Default: true. |
max_length |
integer | no | Longest slug allowed, cut at a word boundary. 0 means no limit. Default: 0. From 0 to 10000. |
Examples
Input
{
"text": "Crème Brûlée: The Ultimate Guide!"
}Result
{
"text": "creme-brulee-the-ultimate-guide"
}Cut at a word boundary
Input
{
"text": "Hello, World & Friends",
"separator": "_",
"max_length": 12
}Result
{
"text": "hello_world"
}Questions
- What happens to accented letters?
- They are replaced by their plain letter: "é" becomes "e", "ø" becomes "o" and "ß" becomes "ss".
- What about non-Latin scripts such as Cyrillic or Chinese?
- They are dropped, because they have no agreed plain-letter form. A title written only in such a script gives an empty slug.
Related tools
- Case converterConvert text between lower, UPPER, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case and more.
case-convert - Unicode normaliserNormalise text to NFC, NFD, NFKC or NFKD, and optionally strip accents or invisible characters.
unicode-normalize - URL encoder and decoderPercent-encode text for use in a URL, or decode it. Works on one value or a whole URL.
url-encode - Apply a patchApply a unified diff to a text and get the patched result, with clear errors when a hunk does not fit.
patch-apply - Escape and unescape textEscape or unescape text for HTML, URLs, JSON strings, shell commands, regular expressions and CSV fields.
escape-unescape - Extract emails and URLsPull every email address and web link out of a text, and optionally IPv4 addresses and hashtags.
extract-emails-urls