文本转短链 | 快速生成短链
将长链接转换为短链接,便于分享。支持自定义,提升可读性和点击率,适用于社交媒体和邮件营销,方便管理和追踪效果。
将您的文本转换为URL!即时创建一个URL友好的slug。输入您的文本并点击转换。
输入
选项
结果:
使用方法
- 在输入框中输入或粘贴您的文本
- 选择您的格式选项
- 点击转换以生成slug
- 复制并在任何地方使用您的slug
主要功能
- 即时slug生成
- 可定制的选项
- 特殊字符处理
- 一键复制
常见用例
- 创建SEO友好的URL
- 博客文章永久链接
- 文件命名规范
- 内容组织
从你的AI智能体调用此工具
免费的JSON API和Model Context Protocol (MCP) 服务器。无需注册、无需API密钥、CORS开放。专为Claude、ChatGPT、Cursor、脚本和前端应用设计。
curl -X POST https://mate.tools/api/v1/slugify.php \
-H "Content-Type: application/json" \
-d '{"text":"Hello, World! Slug me"}' import urllib.request, json
req = urllib.request.Request(
"https://mate.tools/api/v1/slugify.php",
data=json.dumps({"text":"Hello, World! Slug me"}).encode(),
headers={"Content-Type": "application/json"},
)
with urllib.request.urlopen(req) as r:
print(json.load(r)) const r = await fetch("https://mate.tools/api/v1/slugify.php", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({"text":"Hello, World! Slug me"}),
});
console.log(await r.json()); 添加到 claude_desktop_config.json(Claude Desktop)、~/.cursor/mcp.json(Cursor)或任何其他MCP兼容客户端:
{
"mcpServers": {
"mate-tools": {
"command": "npx",
"args": ["-y", "@mate-tools/mcp-server"]
}
}
} 常见问题
Slug是文本的URL友好版本,通常用于网络地址。它由小写字母、数字和连字符组成,易于阅读且对SEO友好。
Slug提高了网站的SEO,使URL更易读,并有助于内容组织。它们对于创建干净、专业的网页内容URL至关重要。
Slug通常包含小写字母(a-z)、数字(0-9)和连字符(-)。特殊字符、空格和大写字母要么被移除,要么被转换以保持URL兼容性。