Slug Generator|URL Slug 生成器

Slug Generator|URL Slug 生成器

Slug Generator URL Slug 生成器

将标题/句子快速生成 SEO 友好的链接片段(slug):去空格、去符号、统一小写、用短横线连接。
Generate SEO-friendly slugs from titles: remove spaces/symbols, normalize case, and join words with hyphens.

1. 输入参数 · Inputs
你输入的标题通常来自:文章标题、视频标题、产品页面标题等。Slug 是 URL 中“可读的一段”。
Input a post/video/product title. A slug is the readable segment in a URL.
提示 · Tip:一般建议短一些、包含关键词、避免无意义符号。
短横线(-)是最常见的 slug 分隔符,阅读体验好,也更符合多数网站习惯。
Hyphen (-) is the most common separator and tends to be the most readable.
若你的网站路由用点号或下划线,也可以切换。
有些站点支持中文 URL(浏览器会做编码),保留中文可以更贴近原意;但也有站点更偏好纯英文 slug。
Some sites accept CJK slugs (will be URL-encoded). Others prefer ASCII-only slugs.
注意 · Note:本工具不做拼音转写(pinyin transliteration),仅提供“保留/移除”策略。
Trim edges:避免 slug 以 “-” 开头/结尾,更美观。
Collapse repeats:把 “—-” 这类连续分隔符合并成一个。
Stopwords:移除英文里常见的 “a / the / and / of …”,让 slug 更短、更聚焦关键词。
Stopwords removal helps keep slugs short and keyword-focused (English only).
3. 使用说明 · Notes
  • Slug 是什么? · What is a slug?
    Slug 通常指 URL 中用来标识页面的“可读片段”,比如:/tools/slug-generator 里的 slug-generator
    A slug is the human-readable segment in a URL (often derived from the page title).
  • 为什么要“去空格、去符号、用短横线连接”? · Why remove spaces/symbols and use hyphens?
    因为 URL 不适合直接放空格与复杂符号:可读性差、复制粘贴易出错、不同系统编码表现也不一致。用 把单词连起来,是业界最常见、最稳定的做法。
    URLs don’t play well with spaces and messy punctuation; hyphen-joined words are readable and widely adopted.
  • SEO 层面建议 · SEO-friendly tips
    ① 保留核心关键词(最好来自标题前半段),避免纯口号。Keep the key terms, avoid meaningless slogans.
    ② 长度建议控制在 50–90 字符左右(不是硬规则),太长会显得“堆词”。A common practical range is ~50–90 chars; avoid keyword stuffing.
    ③ 全小写更统一,减少重复 URL 的风险(有些系统大小写敏感)。Lowercase keeps URLs consistent and reduces case-related duplication.
  • 中文标题怎么处理? · Handling Chinese titles
    如果你的网站/系统支持中文 URL(会自动做 URL 编码),可以选择“保留中文字符”,这样更贴近原始语义;如果你更想要纯英文风格、或担心分享时编码太长,则选择“移除中文字符”,再手工补充英文关键词。
    If your site supports CJK slugs, keeping CJK preserves meaning. If you prefer ASCII-only slugs, drop CJK and add English keywords manually.
  • 停用词(Stopwords)要不要移除? · Should you remove stopwords?
    对英文标题,“the / a / an / and / of / to …” 这类词经常不影响含义但占长度。移除后 slug 更短更聚焦;但如果你的标题很短,移除停用词可能会让语气/结构不自然,可按需开关。
    Removing stopwords can shorten slugs, but for short titles it may feel unnatural—toggle as needed.
  • 复制与落地使用 · Copy & real usage
    点击“复制结果”即可把 slug 复制到剪贴板,然后粘贴到 WordPress 的固定链接、文章 URL、工具中心路由路径等位置。
    Click “Copy” to paste the slug into WordPress permalinks, routes, or tool page URLs.

说明:本工具在浏览器本地运行,不上传你的标题内容;输出结果仅作为 URL 命名参考,不构成任何 SEO 承诺或排名保证。
Note: This tool runs locally in your browser and does not upload your text. Output is for naming reference only and does not guarantee any SEO ranking.