UtilityBase logoUtilityBase

Text Tools

Slug Generator

Convert any title into a clean, SEO-friendly URL slug.

Updated July 7, 2026

How to use the slug generator

  1. 1Paste or type the title — the slug updates live.
  2. 2Keep hyphens as the separator unless your platform requires underscores.
  3. 3Optionally enable stop-word removal for a tighter slug.
  4. 4Copy the slug into your CMS, framework route, or file name.

Common uses

  • Creating permalinks for blog posts and articles
  • Naming product and category URLs in an online store
  • Generating clean file and folder names from titles
  • Batch-standardizing messy URLs during a site migration

Frequently asked questions

Hyphens or underscores?

Hyphens. Google explicitly treats hyphens as word separators and underscores as word joiners — 'blue-widgets' is read as two words, 'blue_widgets' as one. Use underscores only when a legacy system demands them.

Should I remove stop words from slugs?

It's optional. Removing them shortens URLs without losing keywords, which many SEO practitioners prefer. Keeping them can read more naturally for short titles. Either way, never change a slug after publishing without a redirect.

How long should a slug be?

Aim for 3–6 meaningful words. Slugs are a minor ranking signal at best, but short, keyword-bearing URLs get better click-through in search results and are easier to share.

What happens to accented and special characters?

Accents are transliterated to plain ASCII (é→e, ñ→n) and everything that isn't a letter or number becomes a separator. This avoids the percent-encoded mess non-ASCII URLs can turn into when copied.

About this tool

The slug generator converts titles and headlines into clean URL slugs as you type: lowercased, accents transliterated (café becomes cafe), punctuation stripped, and words joined with hyphens — the format search engines parse as separate words and every web framework expects. An optional stop-word filter drops filler like 'a', 'the', and 'of' for shorter slugs, and an underscore mode exists for systems that require it (though hyphens are the SEO-correct choice, since Google treats them as word separators and underscores as word joiners). Live output with a character count keeps slugs readable and reasonably short.

Like everything on UtilityBase, the slug generator runs entirely in your browser — nothing you enter is uploaded or stored on a server. It's free to use with no account required. Browse more text tools here.

Was this tool helpful?

Related tools