CompleteToolkit

Slug Generator

Turn any title into a clean, SEO-friendly URL slug — live as you type, accents and symbols handled.

Separator

Your slug

your-slug-appears-here

About this tool

A slug is the last part of a URL that identifies the page — in completetoolkit.com/text-tools/slug-generator, the slug is "slug-generator". Good slugs are lowercase, hyphen-separated, and contain only letters and numbers. Bad slugs — with spaces that become %20, ampersands, apostrophes or accented characters — look broken when shared, can cause encoding issues, and read poorly in search results.

This generator converts any title into a clean slug live as you type, applying the rules properly: everything lowercased, accents stripped to their base letters (café → cafe), the ampersand expanded to "and" (a nicety most generators skip), all other symbols removed, and runs of spaces collapsed into single separators with none left dangling at the ends.

You can choose hyphens or underscores as the separator. Unless you have a specific technical reason, choose hyphens — Google has stated for years that it treats hyphens as word separators but treats underscores as word joiners, meaning "best-coffee-tips" is read as three words while "best_coffee_tips" may be read as one. For blog posts, product pages and documentation, hyphens are the correct default. Everything runs locally in your browser, instantly.

How to use the Slug Generator

  1. 1Type or paste your title into the input — the slug generates live as you type.
  2. 2Choose your separator: hyphen (recommended for SEO) or underscore.
  3. 3Check the result — accents, symbols and extra spaces are cleaned automatically.
  4. 4Click Copy and paste the slug into your CMS or code.

Frequently asked questions

What is a URL slug?

The human-readable identifier at the end of a URL. In example.com/blog/my-first-post, the slug is 'my-first-post'. Good slugs are short, lowercase, hyphen-separated and descriptive of the page content.

Should I use hyphens or underscores in slugs?

Hyphens. Google treats hyphens as word separators, so 'best-coffee-tips' is understood as three words. Underscores are treated as word joiners, which can hurt how search engines parse your URL. Use underscores only if a specific system requires them.

How does it handle accented characters like é or ñ?

They're transliterated to their base letters: café becomes cafe, señor becomes senor. This keeps slugs ASCII-safe so they display correctly everywhere and never get percent-encoded into unreadable strings.

How long should a slug be?

Short and descriptive — usually 3 to 6 words. Drop filler words that don't add meaning ('a', 'the', 'of') where the slug still reads clearly. There's no strict limit, but shorter slugs are easier to read, share and remember.