DevKit Tools

URL Slug Generator

Turn a title into a clean URL slug with accent folding, a length cap that never cuts mid word, and optional stop word removal.

Transform/URL Slug Generator

Turn a title into a clean URL slug, with accent folding and optional stop word removal.

Slug

the-10-best-css-tricks-for-modern-layouts

https://example.com/blog/the-10-best-css-tricks-for-modern-layouts

41 characters

the-10-best-css-tricks-for-modern-layouts

About the url slug generator

A slug is the readable part of a URL, and it is one of the few ranking factors you fully control. Good ones are lowercase, hyphen separated, short, and made of the words a person would actually search for.

The details are where slugs go wrong: accented characters that turn into percent codes, an apostrophe that becomes a stray hyphen, or a truncation that leaves half a word at the end. This handles all three, folding accents to their base letters and cutting back to a word boundary when the length cap applies.

How to use it

  1. 1Paste your title.
  2. 2Choose hyphen, which is what search engines treat as a word separator.
  3. 3Set a maximum length, or zero for none.
  4. 4Optionally strip stop words like the and of.
  5. 5Copy the slug.

Questions

Hyphens or underscores?

Hyphens. Search engines treat a hyphen as a word separator and an underscore as a joiner, so my_blog_post reads as one word while my-blog-post reads as three.

Should I remove stop words?

Only when the slug is too long. Removing them can make a title read oddly, and the length saved is rarely worth it on a short title.

What happens to accented characters?

They are folded to their base letter, so café becomes cafe. Leaving them in produces percent encoding, which is valid but ugly and easy to mistype.

Should I change a slug after publishing?

Avoid it. Changing a URL loses the ranking history unless you set up a permanent redirect from the old address.

More Text & Data tools