URL Slug Generator
You are creating a new page and the title is "What is New in C++20?" You need it to become a URL. Breaking this down by hand -- lowercase, strip punctuation, replace spaces with hyphens -- is the kind of busywork that breeds typos.
Paste the title. Get the slug. Copy it.
How it transforms text
"My Awesome Blog Post" becomes my-awesome-blog-post.
The tool lowercases, strips special characters, replaces spaces with your separator (hyphen, underscore, or none), and collapses consecutive separators. The result is safe to put in a URL path.
Options
- Separator -- hyphen, underscore, or none. Pick hyphen unless you have a reason not to.
- Character set -- ASCII-only transliterates non-Latin characters; Unicode mode keeps them intact (modern browsers handle both fine).
- Max length -- truncate at a word boundary so you do not cut mid-word.
- Stop word removal -- drops articles and common words (
a,the,and,of,in). "The Best Guide to Python" becomesbest-guide-python. Shorter, same meaning.
Separator: hyphen or underscore?
Google says hyphens. That is the answer. my-blog-post reads as three words to the search engine; my_blog_post reads as one long word. Use hyphens.
After you generate
- Check for duplicates. The tool does not know what slugs your CMS already uses. Verify before publishing.
- Do not change slugs after launch. If you must, set up a 301 redirect from the old URL. Otherwise every link, bookmark, and search result pointing at the old slug 404s.
- Batch mode -- paste a list of titles, get one slug per line. Useful when you are migrating a site or generating slugs for a product catalog.