How to Generate a Clean URL Slug from a Title

By Daniel · Updated July 2026

A slug is the readable part of a URL — the how-to-generate-a-slug in this page's address. A good slug is lowercase, uses hyphens, and strips out accents and punctuation, which keeps links clean, shareable and friendly to search engines.

What makes a good slug

  • Lowercase only — some servers treat /About and /about as different pages.
  • Hyphens between words, not spaces or underscores — Google reads hyphens as word separators.
  • No accents or symbols — café becomes cafe, and &, ?, quotes and slashes are removed.

How to generate one

  1. Open the slug generator and paste your title.
  2. It lowercases, swaps spaces for hyphens and strips anything unsafe.
  3. Copy the slug into your CMS or link.

Keep it short and stable

Trim filler words so the slug stays short and keyword-focused — tips-for-writing-slugs beats 10-amazing-tips-for-writing-the-best-slugs-ever. And once a page is published and linked, avoid changing its slug: old links will break unless you set up a redirect.

Slug Generator
Turn any title into a clean, hyphenated URL slug instantly.
Open the tool →

Common questions

Should a slug use hyphens or underscores?

Hyphens. Search engines treat hyphens as spaces between words; underscores join words together.

Why lowercase?

Some web servers are case-sensitive, so mixed-case slugs can create duplicate or broken URLs. Lowercase avoids the problem.

What happens to accented letters?

They are converted to their plain equivalents (é to e) so the URL stays universally safe.

Is the tool private?

Yes, it runs in your browser.

Keep reading

How to Convert Text Case · How to Count Words and Characters · How to Remove Duplicate Lines