URL slug generator

On-Page

Turn a page title into a short, clean URL slug with accents removed, stop words dropped and a length limit you set. Free, no signup, and it runs entirely in your browser.

How to use it

  1. Enter the page title or phrase you want to turn into a slug.
  2. Set a base URL and max length, and choose the word filters.
  3. Copy the finished slug or the full URL.

What a URL slug is

The slug is the part of a URL that identifies a specific page, usually after the last slash. In example.com/blog/cafe-websites-sao-paulo, the slug is "cafe-websites-sao-paulo." It appears in search results, in shared links and in the browser bar, so it helps people understand what a page is about before they open it.

Clean slugs are easier to read, easier to share and less likely to break when copied into emails or chat apps.

What this generator does

  • Converts to lowercase and replaces spaces and punctuation with hyphens.
  • Removes accents, so "café" becomes "cafe" and "São" becomes "sao." This avoids encoded characters that look messy in links.
  • Turns ampersands into "and" and drops apostrophes so contractions stay intact.
  • Drops stop words such as the, and, of and a, if you leave that option on. If removing them would leave nothing, they stay.
  • Drops numbers if you choose. This is handy for list posts you plan to update, so "10 best" can become "15 best" without changing the URL.
  • Stops at whole words before your max length, so the slug never ends in a cut-off fragment.

Slug habits worth keeping

Keep slugs short and descriptive. A slug that states the topic in three to five words is usually enough. Use hyphens between words, not underscores, since Google treats hyphens as word separators. Avoid dates unless the content is truly tied to one, because a dated URL makes evergreen pages look stale.

Most importantly, decide on the slug before you publish. Changing a live URL means setting up a 301 redirect from the old address, updating internal links and waiting for search engines to catch up. Our internal linking guide covers how to keep links tidy when URLs do change.

When to override the result

The generator follows simple rules, so read the output before you use it. Sometimes a stop word carries meaning, as in "how-to" content, or a number is part of a product name. Edit the slug by hand when the automatic version loses something important. For location pages, include the city or area, since that is often what searchers type. Then check how the full result looks with the SERP snippet preview.

Questions, answered

Should I remove stop words from every slug?

Usually it helps keep slugs short, but it is not a rule. Remove them when the slug still reads clearly without them. Keep them when dropping a word changes the meaning or makes the slug confusing, as with phrases like "how-to" or a product name that includes "the." Read it aloud before you publish.

Hyphens or underscores in URLs?

Use hyphens. Google has long recommended hyphens to separate words in URLs, because it treats them as spaces. Underscores can cause words to be read as one long string. Hyphens are also the convention most people expect, which makes your links easier to read, type and share.

Is it bad to change a slug after publishing?

It is not bad, but it has a cost. You need a 301 redirect from the old URL to the new one, and you should update internal links that point to the old address. Without a redirect, visitors and search engines hit an error page. Change slugs only when there is a clear reason.

How long should a slug be?

Short enough to read at a glance. As a rule of thumb, three to five meaningful words cover most pages, and the 60-character default in this tool leaves comfortable room. Longer slugs are not penalized on their own, but they get truncated in results and are harder to share or remember.

Find out what is holding your rankings back

Send us your site. Within 2 business days you get a written audit, an AI visibility check and a short fix list ranked by impact. Free, with no contract attached.

Request my free audit