Slug Generator

Turn titles into clean, URL-safe slugs — one per line, batch supported

Type a title above to generate its slug

About this tool

The Slug Generator converts titles or arbitrary text into clean, URL-safe slugs — lowercase, hyphen-separated, with accented characters transliterated to their closest ASCII equivalent (café becomes cafe, not café or c%C3%A9af%C3%A9). Paste multiple lines to batch-convert an entire list of titles at once.

When to use it

  • Generating a URL slug for a new blog post or documentation page title
  • Batch-converting a spreadsheet export of article titles into slugs for a CMS import
  • Creating consistent, readable URLs from product names for an e-commerce catalog
  • Cleaning up user-submitted titles before using them in a URL path

Tips

  • Batch mode processes one line at a time — paste an entire list of titles to get a matching list of slugs instantly.
  • Accented and non-Latin characters are transliterated where possible (café → cafe) rather than stripped, keeping the slug readable.
  • Set a max length to keep slugs from becoming unreasonably long for titles with many words — the cut respects word boundaries via the separator.

Frequently asked questions

Why use hyphens instead of underscores in a slug?

Google has confirmed it treats hyphens as word separators in URLs but treats underscores as joining characters, meaning 'my-post-title' is read as three words while 'my_post_title' may be read as one token. Hyphens are the SEO-conventional choice; underscores are mainly seen in older systems or specific frameworks that expect them.

What happens to special characters and emoji in the title?

Accented Latin characters are transliterated to their closest plain-ASCII equivalent (é → e, ñ → n). Characters with no reasonable ASCII equivalent — emoji, symbols, most non-Latin scripts — are stripped and treated as word breaks, collapsing into the surrounding separator.

Should slugs match the page title exactly?

Not necessarily — slugs are commonly shortened versions of the full title, dropping filler words (a, the, of) to keep the URL concise. Search engines don't require an exact match between title and slug, but including your primary keyword in the slug is still a commonly cited on-page SEO practice.

Can I change a slug after a page is already published and indexed?

You can, but it breaks the existing URL unless you add a redirect. Changing a published slug without a 301 redirect from the old URL to the new one loses any search ranking and backlinks the original URL had accumulated. If you must change it, always redirect the old slug to the new one.

Related tools

🥷 ToolNinja