Text to Slug Generator
A good URL is short, readable, and free of spaces and odd characters — 10-tips-for-better-sleep, not 10%20Tips%20for%20Better%20Sleep!. That readable part is called a slug, and every post, page and product needs one.
Paste any title or phrase and get a clean URL slug instantly — lowercase, hyphenated, accents stripped — ready to paste into your CMS.
Your Slug
How It Works
A slug is made in four steps. First the text is lowercased — URLs are case-sensitive on most servers, and lowercase avoids duplicate-content confusion. Then accented letters are converted to plain ones (é becomes e, ü becomes u, ß becomes ss), because accented characters get percent-encoded into unreadable %XX sequences. Then every run of characters that is not a letter or digit — spaces, punctuation, symbols, emoji — is replaced by a single hyphen. Finally, leading and trailing hyphens are trimmed, and the slug is cut to your maximum length.
Characters with no plain equivalent are dropped: Chinese, Arabic and other non-Latin scripts, emoji, and symbols simply disappear, because there is no safe way to put them in a slug. Styled Unicode letters are different characters too — an Instagram font generator turns plain text into bold, script and other styles. If your title is entirely in such characters, the result will be empty — write the slug by hand in that case, using a romanised version of the title.
Worked Example
"10 Tips for Better Sleep!" becomes 10-tips-for-better-sleep — 24 characters. The exclamation mark disappears, the spaces become hyphens, and the capital letters become lowercase. "Café & Crème Brûlée" becomes cafe-creme-brulee: the accents are stripped and the ampersand becomes a hyphen.
How to Use This Tool
Type or paste your text and the slug appears instantly. Adjust the maximum length if you need a shorter slug, then copy it.
- Enter your text. A title, product name or heading — the slug updates live as you type, or click Generate Slug to refresh it.
- Set a maximum length. 60 characters is a good default; shorter slugs are easier to share and remember.
- Copy the slug. Click Copy Slug, then paste it into your CMS, static-site front matter, or link builder.
The result is always a valid URL path segment: lowercase letters, digits and hyphens only, with no leading or trailing hyphen and no double hyphens.
Tips and Practical Advice
- Keep slugs short and descriptive. Three to six words is ideal — enough to say what the page is, short enough to read at a glance in search results.
- Put the important words first. Search engines and readers both weight the start of a URL more heavily, so lead with the topic, not filler words.
- Drop stop words when it helps. "how-to-bake-bread" reads better than "how-to-bake-a-loaf-of-bread-at-home" — but keep words that change the meaning.
- Never change a published slug lightly. Changing a live URL breaks links and bookmarks. If you must change one, set up a redirect from the old slug to the new one.
Frequently Asked Questions
What is a URL slug?
The readable part of a URL that identifies a page — in example.com/10-tips-for-better-sleep, the slug is 10-tips-for-better-sleep. Good slugs are short, lowercase, hyphenated and descriptive.
Why are accents removed from slugs?
Accented characters get percent-encoded in URLs (é becomes %C3%A9), which is ugly and hard to share. Converting é to e keeps the slug readable in every browser, email client and chat app.
What happens to emoji and non-Latin scripts?
They are dropped — there is no plain-text equivalent to convert them to. If your title is entirely in another script, write the slug by hand using a romanised version of the title.
How long should a slug be?
Three to six words, under 60 characters, is a good rule. Short slugs are easier to read, share and remember, and search engines show them cleanly in results.
Last updated: