Text to Slug
URL slug generator
URL slug generator Runs locally in your browser
About the
The Text to Slug converter turns a heading or a title into a URL-safe slug: lowercase, with spaces and punctuation replaced by hyphens. The output updates as you type, so you can adjust the title until the slug reads well rather than editing the result afterwards. It is the tool for producing the part of a URL that follows the last slash before you publish a post or a product page.
Where people use the
- Creating the URL for a new blog post or docs page.
- Producing a slug for a product or category page.
- Turning a heading into an anchor id for in-page links.
- Checking that a slug is readable before you publish.
How to use the
- 1
Type or paste a title
Enter the heading exactly as you want it to appear to readers.
- 2
Read the slug
The slug appears below and updates with every keystroke.
- 3
Tidy it up
Remove filler words from the title if the slug is too long. Short slugs are easier to read and to share.
- 4
Copy it
Use the copy button and paste the slug into the URL field of your page.
Tips and best practices
- Drop filler words from the title so the slug stays short.
- Do not change a slug after publishing unless you can redirect the old one.
- Hyphens, not underscores, are the convention for word separators.
Frequently asked questions
What characters are removed?
Anything that is not a letter, a digit, a space or a hyphen. Punctuation and symbols are dropped rather than encoded, which keeps the slug readable.
Are underscores handled?
Yes. Underscores are treated as word separators and become hyphens, which is what most style guides recommend.
Does it handle non-English text?
Letters from other scripts are kept where the browser recognises them as word characters. If a slug must be pure ASCII, transliterate the title first.
Should I change a slug after publishing?
Only with a redirect. Changing a published URL breaks existing links and loses whatever search visibility the old one had.
Can it process a whole list of titles?
One at a time. Paste each title and copy the result.