RevealTheme logo

URL別名(slug)產生工具

將文字轉換為適合URL的別名。轉為小寫、移除特殊字元,並用連字號分隔單字。

如何使用本工具

  1. 1

    Type or paste your page title or heading into the input box.

  2. 2

    Watch the slug update instantly below the field as you type — there is no Generate button.

  3. 3

    Click Copy to put the generated slug on your clipboard, ready to paste into your CMS or route.

  4. 4

    Edit the title if the slug was cut off at 80 characters or ends in a stray hyphen, then copy again.

什麼是URL別名(slug)產生工具?

URL別名(slug)是頁面標題適合用於URL的版本:通常為小寫,空格替換為連字號,並移除特殊字元。別名能改善SEO(URL中的關鍵字)、無障礙性(可讀的URL)和分享便利性。WordPress會根據文章標題自動產生別名;本工具複刻了這一邏輯,並增加了自訂分隔符等額外功能。

常見使用場景

  • Generate a clean post slug from a blog headline before publishing in your CMS.

  • Create stable URL paths for product or category pages in an e-commerce store.

  • Turn documentation section titles into anchor-friendly identifiers for deep links.

  • Produce predictable route segments when scaffolding pages in a static site generator.

  • Normalize accented names like 'Renée Dubois' into ASCII slugs such as 'renee-dubois'.

  • Quickly check whether a long title will be truncated by an 80-character URL limit.

常見問題

用連字號還是底線?
連字號。Google將連字號視為單字分隔符;而將底線視為單個單字的一部分。
我應該包含停用詞嗎?
通常不:移除「一個」「這個」「的」之類的詞,可以得到更短、更簡潔的URL。如果它們對表達清晰是必需的,則予以保留。

相關工具