Slug Generator

Turn a title or phrase into a clean, lower case URL slug with accents removed and an optional length limit.

The text stays in your browser.

characters

Cuts at a whole word. Leave empty for no limit.

URL slug

how-to-build-a-cafe-website-10-tips-and-tricks-2026

51 characters, within the common 60 character rule of thumb

Length
51 characters
Words in the slug
11
Example address
/blog/how-to-build-a-cafe-website-10-tips-and-tricks-2026
how-to-build-a-cafe-website-10-tips-and-tricks-2026

The slug is 51 characters long and uses only lower case letters, digits and "-".

Add this calculator to your website

Free to use on any site or blog. Paste this code where you want the calculator to appear. It stays up to date, needs no account, and keeps your visitors' numbers in their own browser.

Preview

How it works

A slug is the readable last part of a web address, for example "how-to-build-a-cafe-website" in example.com/blog/how-to-build-a-cafe-website. The tool makes it in these steps: the text is put in lower case, apostrophes are dropped, "&" becomes "and", accents are removed, and every run of spaces and punctuation becomes one separator. Separators at the start and end are removed.

Accents are removed by splitting each letter into its base letter and accent mark (Unicode normalization form NFD) and dropping the marks, so "é" becomes "e" and "ñ" becomes "n". Letters that do not split are replaced from a short table: ß becomes ss, æ becomes ae, œ becomes oe, ø becomes o, đ and ð become d, þ becomes th and ł becomes l. Letters from other alphabets are dropped unless you choose to keep them.

Hyphens are the usual choice because Google recommends them over underscores in URLs. The optional length limit cuts the slug at a whole word. The tool warns when the slug is longer than 60 characters. That number is a common rule of thumb for keeping a URL short and readable, not a limit set by search engines or the web standards.

Check it by hand: take "How to Build a Café Website: 10 Tips & Tricks (2026)". Step 1: make it lower case and drop the accent, which gives "how to build a cafe website: 10 tips & tricks (2026)". Step 2: replace the & with "and". Step 3: turn every run of spaces and symbols into one hyphen. The result is how-to-build-a-cafe-website-10-tips-and-tricks-2026, which has 11 words and 51 characters.

Worked example

"How to Build a Café Website: 10 Tips & Tricks (2026)" becomes "how-to-build-a-cafe-website-10-tips-and-tricks-2026". It is 51 characters, within 60. With small words removed it becomes "how-build-cafe-website-10-tips-tricks-2026", 42 characters, and with a limit of 30 characters it is cut at the last whole word to "how-to-build-a-cafe-website-10" (30 characters).

Good to know

  • Changing the slug of a page that is already published changes its address. Set up a redirect from the old address, or links and search rankings from the old one may be lost.
  • The 60 character length is a rule of thumb. Search engines can index longer URLs, but short ones are easier to read, share and fit in results.
  • Transliteration covers common Latin accents only. It does not turn Cyrillic, Greek, Arabic or Chinese into Latin letters. Keep those letters if you want a non-Latin slug, which browsers show as is but copy as percent codes.
  • If every word is a small word, the small word option is ignored so the slug is not empty.
  • Very long text is refused above 1,000,000 characters so the page stays fast.

Questions people ask

What is a URL slug?

It is the part of a web address that names the page, such as "my-first-post" in example.com/blog/my-first-post. A good slug is short, lower case and readable.

Should I use hyphens or underscores in a slug?

Use hyphens. Google says it treats hyphens as word separators in URLs and recommends them over underscores. Underscores are fine for file names and code.

How long should a URL slug be?

Short enough to read at a glance. About 60 characters is a common rule of thumb for the slug, and many sites aim for 3 to 5 words. It is not a hard rule.

Should I remove words like "the" and "and" from a slug?

It is optional. Removing them makes the slug shorter, but it can make it harder to read. Keep them if the slug stops making sense without them.

How are accents and special letters handled?

Accents are removed, so "café" becomes "cafe" and "Zürich" becomes "zurich". Letters such as ß, æ and ø are replaced with ss, ae and o. Other symbols become separators.

What is a permalink?

A permalink is the permanent web address of a page or post. Its last part is the slug, so a permalink generator and a slug generator do the same job here.

How do I remove stop words from a slug?

Turn on the stop words option. "The Art of the Deal" becomes art-deal, which is shorter and still easy to read.

Part of the guide: Text tools: word counter, case converter, duplicate lines and more

Formulas and text last checked on 14 October 2026. Everything is calculated in your browser, so nothing you enter is sent or stored. Spotted a mistake? Tell us and we will fix it.