Text to Slug Converter
Turn a title into a URL-friendly slug.
Try it
Output
The result appears here.
About Text to Slug Converter
A text to slug converter turns a title or phrase into a URL-friendly slug. A slug is the part of a web address that names a page, such as 'how-to-compress-pdfs'. Clean slugs are easy to read and share, and they help search engines understand what a page is about.
Paste the title and run the converter. It lowercases the text, replaces spaces and punctuation with hyphens, and removes characters that do not belong in an address. The slug can then be copied into a link, a file name or a content system.
How to use Text to Slug Converter
- Paste the title or phrase into the input box.
- Run the converter to create the slug.
- Check that the result reads clearly and keeps the key words.
- Shorten the slug if it is long, by removing filler words such as 'the' or 'a'.
- Copy the slug into your address, file name or content system.
What a good slug looks like
A good slug uses lower-case letters, numbers and hyphens, and describes the page in a few words. It should match the title closely enough that a reader can tell what they will find. Long slugs full of small words are harder to read and to share, so keep them short where the meaning allows.
Accents and special characters need converting. An accented letter such as é is usually changed to its plain form, so a title with café becomes cafe. Symbols such as & and % are removed or spelled out, because they have special meaning in web addresses.
Keeping slugs stable
Once a page is published, its slug should rarely change. Changing it breaks links that point to the old address, and search results may take time to catch up. If a title changes, keep the original slug or set up a redirect from the old address to the new one.
Use the same pattern across a site. If one slug uses hyphens and another uses underscores, or if one contains a year and another does not, the site looks inconsistent and is harder to maintain. Agree on a pattern and apply it to every new page.
Test a slug in the address bar before publishing. A slug that looks tidy in a box can still read awkwardly as part of a full address, especially when it is shared in a message or printed on paper.
Frequently asked questions
Why are my hyphens doubled or missing?
Runs of spaces and punctuation become a single hyphen, and hyphens at the start or end are removed. Check the result against the rule your site uses.
Does the slug keep my keywords?
It keeps the words of the title in the same order. Remove filler words by hand if you want a shorter address.
Can I use the slug in a file name?
Yes. A slug contains only letters, numbers and hyphens, so it is safe in file names.
Is my text stored?
No. The slug is created on the page and cleared when you leave.
Related tools
Tools that pair well with this one.