A text to slug converter turns a title into the readable part of a URL. It lowercases the text, replaces accented letters with plain ones, removes punctuation and symbols, and joins the words with hyphens. "Crème Brûlée: A Beginner's Guide!" becomes "creme-brulee-a-beginners-guide". You can also cap the length and drop small words.
How to use the Text to Slug
- Enter a titleType or paste a headline, product name or file name. Use one line per title for a batch.
- Set the optionsChoose hyphens or underscores, and optionally a maximum length or small-word removal.
- Copy the slugPress Copy and paste the slug into your CMS, router or file name.
What the text to slug converter changes
A slug is the last part of a web address, the piece that identifies one page: in example.com/blog/how-to-bake-bread the slug is how-to-bake-bread. To make one, the converter does the following in order:
- Rewrites letters that have a standard plain form: é becomes e, ñ becomes n, ü becomes u, ß becomes ss, æ becomes ae, ø becomes o and so on. The ampersand becomes the word "and".
- Drops apostrophes so that "don't" becomes "dont" instead of "don-t".
- Converts everything to lowercase, unless you untick the box.
- Replaces every run of spaces, punctuation and symbols with a single separator.
- Removes separators from the start and the end.
If you set a maximum length, the slug is cut at the last whole word that fits, so it never ends in half a word. Letters from other scripts are removed by default because many systems expect plain ASCII; tick "Keep non-Latin letters" if your site uses Unicode URLs.
Writing slugs that work well
- Use hyphens between words. Google's URL guidelines recommend hyphens instead of underscores because hyphens are treated as word separators. Underscores are mainly useful for file names and identifiers in code.
- Keep it short and descriptive. A few meaningful words are easier to read, share and remember than a full sentence. Removing small words such as "a", "the" and "of" is an easy way to shorten a slug, as long as it still reads clearly.
- Stay lowercase. Paths can be case sensitive on many servers, so mixed case invites broken links and duplicate pages.
- Avoid dates and numbers that will change. "best-laptops" ages better than "best-laptops-2026" if you plan to update the page.
- Do not change a live slug without a redirect. The old address stops working, and links pointing to it break.
A slug only uses characters that are safe in a URL, so it never needs escaping. For query strings and other parts of a URL that do, use the URL encoder and decoder. To restyle a title before publishing, try the case converter. The slug is generated in your browser.
Frequently asked questions
What is a URL slug?
A slug is the part of a web address that names a specific page, usually made from the page title: lowercase words joined by hyphens, with no spaces or special characters.
How does the text to slug converter handle accents?
Accented letters are replaced with their plain equivalents, for example é to e, ç to c and ö to o. Special letters such as ß, æ and ø become ss, ae and o.
Should I use hyphens or underscores in a slug?
Use hyphens for web addresses. Search engines read hyphens as spaces between words, while underscores can join words together. Underscores suit file names and code.
How long should a slug be?
There is no strict rule, but shorter is better: three to six meaningful words is a good target. Use the maximum length field to cut long titles at a whole word.
Can I convert many titles at once?
Yes. Put each title on its own line and the tool returns one slug per line in the same order.
Last updated 24 November 2026 by the TheTechFolk team.