Slug生成器
將文本轉換為適合URL的slug,用於SEO和網頁開發。
什麼是URL Slug?
URL Slug是URL中以人類可讀形式標識特定頁面的部分。好的Slug使用小寫字母,單詞之間用連字元,並且只包含相關關鍵詞。
推薦工具
精心挑選的實用工具
Creating Clean URL Slugs from Text
Overview
A slug is the readable part of a URL that identifies a page, like 'my-first-post' in /blog/my-first-post. Clean slugs are lowercase, hyphenated, and free of special characters, which helps both readers and search engines. This generator converts any title into a tidy slug instantly.
How to Use (Step by Step)
- 1
Enter your title
Type or paste the text you want to convert.
- 2
Generate the slug
The tool returns a lowercase, hyphenated, URL-safe version.
- 3
Use it in your URL
Copy the slug into your CMS or routing setup.
How It Works
The tool lowercases your text, replaces spaces with hyphens, strips punctuation and special characters, and collapses repeats — producing a URL-safe string. It can also transliterate accented or non-Latin characters into plain ASCII so the slug stays clean. The result is short, descriptive, and safe to use directly in a URL.
When to Use This
Turning a blog post or product title into its URL. Standardizing slugs across a content database. Cleaning up messy URLs that contain spaces or symbols.
Frequently Asked Questions
Search engines treat hyphens as word separators but may read underscores as joining words. Hyphens are the recommended choice for slugs.