Skip to content
QuickKit

Home › URL Slug Generator

URL Slug Generator

Type or paste a title and get a clean slug you can use in a web address. Options let you choose the separator, trim the length and drop filler words.

What is a URL slug?

A slug is the readable last part of a web address that identifies a page, for example the better-sleep-tips in example.com/blog/better-sleep-tips. A good slug tells people and search engines what the page is about before it loads. This generator converts any title into a safe slug: it lowercases everything, strips accents, replaces spaces and punctuation with a separator and removes characters that can cause problems in links.

How the conversion works

  • Lowercase: web servers can treat upper and lower case paths as different pages, so lowercase avoids accidental duplicates.
  • Accents removed: "Café" becomes "cafe" and "Ünïcode" becomes "unicode". Letters such as ß, æ, ø and ł are transliterated to ss, ae, o and l.
  • Ampersands become "and": "Fish & Chips" turns into "fish-and-chips".
  • Apostrophes dropped: "It's" becomes "its" rather than "it-s".
  • Everything else becomes a separator: runs of spaces, punctuation and symbols collapse into a single hyphen or underscore, and nothing is left at the start or end.

Slug best practices

  • Keep it short and descriptive. Include the main keyword or topic, but do not stuff keywords. Three to six words is a good target.
  • Use hyphens, not underscores. Search engines such as Google recommend hyphens as word separators in URLs, because underscores can be treated as joining words together. The underscore option is here for file names and systems that require it.
  • Drop filler words when it helps. The stop-word option removes words such as "the", "of" and "and". Use it for long titles, but keep them if removing them would change the meaning.
  • Do not include dates unless they matter. A slug that never goes out of date is easier to keep if you update the content later.
  • Keep slugs stable. Changing a published slug breaks incoming links unless you add a redirect, so settle on the slug before you publish.

Length limits

There is no strict limit, but long addresses are truncated in search results and are awkward to share. The maximum length option shortens a slug at a word boundary, so you never get a half-cut word. If the first word alone is longer than the limit, it is cut at the limit.

Limitations

This tool produces ASCII slugs made of letters a–z and digits. Text in scripts such as Chinese, Arabic, Cyrillic or Greek has no Latin equivalent here and is dropped, so for those languages you may prefer to write a slug by hand or use a system that supports Unicode URLs. The conversion runs in your browser, and what you type is not stored or sent anywhere.

Frequently asked questions

What is a URL slug?

A slug is the human-readable part of a URL that identifies a specific page, such as "better-sleep-tips" in example.com/blog/better-sleep-tips.

Should I use hyphens or underscores in a slug?

Hyphens are the usual choice. Google’s guidance recommends hyphens to separate words in URLs because underscores can join words together. Use underscores only when a system requires them.

Does the slug generator handle accents and special characters?

Yes. Accented letters are converted to plain letters, "&" becomes "and", apostrophes are dropped and other symbols become separators.

How long should a slug be?

Short and descriptive, typically three to six words. The max-length option trims at a word boundary so words are never cut in half.

Can I use this for non-English text?

Accented Latin letters work. Scripts with no Latin equivalent, such as Chinese or Arabic, are removed because this tool outputs plain ASCII slugs.

More free tools