Slug Generator

Turn any title into a clean URL slug. Removes special characters, lowercases everything, and joins with a separator.

Hyphen (-)
Underscore (_)
Dot (.)
lowercase
Preserve

What is a URL slug?

A slug is the human-readable part of a URL that identifies a specific page - the "seo-friendly-url-slugs" at the end of this page's address. It is what turns an opaque address like /post?id=4821 into something a person can read, remember and trust before clicking.

Slugs matter for search: they appear in results, they are used as anchor text when people copy a link, and search engines treat the words in them as a signal about the page. They also matter for humans, who are measurably more likely to click a URL they can understand.

Key takeaways

  • Use lowercase letters, numbers and hyphens only.
  • Hyphens separate words for search engines; underscores do not.
  • Keep slugs short - three to five meaningful words is usually enough.
  • Remove stop words unless they change the meaning.
  • Never change a published slug without setting up a 301 redirect.

What the generator does

  1. Converts to lowercase, because some servers treat URLs as case-sensitive.
  2. Transliterates accented characters - "café" becomes "cafe", "Zürich" becomes "zurich", and letters without a plain base letter are spelled out: "Straße" becomes "strasse", "smørrebrød" becomes "smorrebrod". Other scripts, such as Cyrillic or Chinese, are dropped, so write those slugs by hand.
  3. Replaces spaces with hyphens.
  4. Strips punctuation and special characters that would need percent-encoding.
  5. Collapses repeated separators so you never get a double hyphen.
  6. Trims leading and trailing separators.

Examples

Original titleGenerated slug
10 Best Coffee Shops in Paris!10-best-coffee-shops-in-paris
What's the Difference Between X & Y?whats-the-difference-between-x-y
Café Culture: A Guide (2026 Edition)cafe-culture-a-guide-2026-edition
Extra Spaces Everywhere extra-spaces-everywhere
C++ vs C#: Which Should I Learn?c-vs-c-which-should-i-learn

Note the last row: symbols that carry meaning, such as ++ and #, are stripped entirely. Titles that depend on symbols usually need a manually written slug.

What makes a good slug

DoAvoidWhy
best-running-shoesthe-10-best-running-shoes-for-beginners-in-2026Shorter is more readable and ages better
hyphens-between-wordsunderscores_between_wordsSearch engines treat hyphens as word separators
all-lowercaseMixed-Case-SlugAvoids duplicate-URL problems on case-sensitive servers
plain-asciicafé-münchenNon-ASCII gets percent-encoded and looks broken when copied
descriptive-wordsp=4821Users and search engines can both read it
stable-foreverchanged-after-publishingChanging a live URL breaks links unless you redirect
Leave the year out unless the content is genuinely time-bound. A slug like /best-laptops-2026 forces you either to publish a new page every year or to keep a stale year in the URL. /best-laptops lets you update the same page indefinitely and keep its accumulated authority.

Stop words: remove or keep?

Stop words are common words such as "the", "a", "and", "of" and "in" that carry little search meaning. Removing them shortens slugs, which is usually good - but not always. The generator keeps every word, so delete stop words by hand where it helps.

  • Remove them when the meaning survives: "the-history-of-coffee" to "history-coffee" reads fine.
  • Keep them when removal changes or obscures the meaning. "war-of-the-roses" should not become "war-roses".
  • Always keep them in a brand name, quoted phrase or established title.

Changing a slug after publishing

This is where real damage gets done. Changing a published URL breaks every existing link to it, including links from other sites, which are the single most valuable thing an established page has.

  1. Set up a 301 redirect from the old slug to the new one before or at the moment of the change.
  2. Update internal links across your own site so they point directly at the new URL.
  3. Resubmit the URL in your search console so the change is discovered quickly.
  4. Expect a temporary ranking dip of a few weeks while the change settles.
  5. Keep the redirect permanently. Old links can keep sending traffic for years.
The simplest advice: get it right the first time. A slug costs nothing to think about before publishing and can be expensive to change afterwards. Decide on it deliberately rather than accepting whatever your CMS auto-generates from a long headline.
Everything happens in your browser. Your text is processed entirely on your own device using JavaScript. Nothing is uploaded, stored or logged, which means you can safely paste confidential drafts, client work or personal notes. Closing the tab discards everything.

Frequently Asked Questions

What is a URL slug?

The readable portion of a URL that identifies a specific page - for example "seo-friendly-url-slugs" at the end of an address. It replaces opaque identifiers like ?id=4821 with words that people and search engines can both understand.

Should I use hyphens or underscores in a URL?

Hyphens. Search engines treat hyphens as word separators but historically treated underscores as joiners, meaning my_blog_post could be read as a single token. Hyphens are the universal convention for URL slugs.

How long should a slug be?

Short enough to read at a glance - usually three to five meaningful words. Long slugs get truncated in search results, are awkward to share, and dilute the emphasis on your key terms.

Should I remove stop words from slugs?

Usually yes, when the meaning survives without them. "the-history-of-coffee" works fine as "history-coffee". Keep them when removal changes the meaning, as in "war-of-the-roses", or when they are part of a brand or quoted title.

Can I change a slug after publishing?

You can, but you must set up a 301 redirect from the old URL to the new one, or you will break every existing link and lose the accumulated search value. Also update internal links and expect a short ranking dip while the change settles.

Should slugs include the year?

Only if the content is genuinely tied to that year. Putting 2026 in the slug forces you either to publish a fresh page annually or to leave a stale year in the URL. Omitting it lets you update the same page indefinitely and keep its authority.

Can slugs contain uppercase letters or accents?

Technically yes, but neither is a good idea. Some servers treat URLs as case-sensitive, so mixed case can create duplicate-content problems. Accented characters get percent-encoded and look broken when the URL is copied and pasted.

Do slugs actually affect SEO?

Modestly and indirectly. The words in a slug are a minor ranking signal, but the bigger effects are on click-through rate - people prefer readable URLs - and on the anchor text used when others link to you. Content quality matters far more.

Related Calculators