Slug Generator
Create a clean URL slug from a title or phrase.
Loading tool…
浏览器内运行这个工具能做什么
Convert text into a lowercase, hyphenated slug in the browser.
It removes punctuation, strips accents where possible, compresses separators, and keeps output clean.
Use it for blog URLs, documentation anchors, product page paths, changelog entries, and file names that need predictable lowercase hyphenation.
这个工具可以完成什么
Paste an article title and copy a lowercase slug that is readable in search results and safe to place in a URL path.
Turn a product feature name, release note heading, or docs section title into a consistent path segment without hand-editing punctuation.
Use slugs for exported files, screenshots, and notes when you want stable names that work across macOS, Windows, Linux, and URLs.
依赖结果前需要检查什么
- Performance and maximum practical input size depend on browser memory, device speed, and the structure of the input.
- Review the generated result before replacing or publishing an original file.
如何使用
- 1
Paste a title or phrase into the field.
- 2
Review the lowercase hyphenated output.
- 3
Copy the generated slug for URLs, anchors, docs, or file names.
使用场景
Paste an article title and copy a lowercase slug that is readable in search results and safe to place in a URL path.
Turn a product feature name, release note heading, or docs section title into a consistent path segment without hand-editing punctuation.
Use slugs for exported files, screenshots, and notes when you want stable names that work across macOS, Windows, Linux, and URLs.
CMS and markdown heading anchors often follow slug-like rules. Generate the candidate slug first so links remain predictable.
使用技巧
A good slug usually keeps the main nouns and drops filler words. Shorter slugs are easier to read, share, and inspect in analytics reports.
Slugs are designed to be readable, not secret. If you need an unguessable identifier, use the UUID Generator or Password Generator instead.
Hyphens are readable in URLs and are the convention most search engines and CMS platforms expect. Avoid underscores for public page URLs unless your system already standardizes on them.
常见问题
Does it keep uppercase letters?
No — slugs are always output in lowercase because URLs are case-sensitive and mixing cases creates duplicate-page problems for SEO. For example, /Blog and /blog are treated as two different URLs by search engines. The converter also strips accents (é → e, ü → u), replaces spaces and special characters with hyphens, and collapses multiple consecutive hyphens into one.
Are special characters removed?
Yes. Punctuation, symbols, and non-ASCII characters are stripped or converted. Accented letters are transliterated to their ASCII equivalents when possible (ñ → n, ö → o). Characters with no ASCII equivalent are dropped entirely. The result is a clean, URL-safe string containing only lowercase letters, digits, and hyphens.
Does it handle multiple spaces?
Yes. Consecutive spaces and hyphens are collapsed into a single hyphen.
下一步常用工具
如果还需要校验、转换或复用结果,可以继续打开相近的浏览器本地工具。