devtools@themeimpact

WordPress Slug Generator

Convert text to WordPress-friendly URL slugs

Input

Options

Generated Slug

(enter text to generate slug)

About WordPress Slugs

WordPress slugs are URL-friendly versions of post/page titles.

  • • Lowercase letters (a-z)
  • • Numbers (0-9)
  • • Hyphens or underscores as separators
  • • No spaces or special characters
  • • Accented characters are transliterated

Function: sanitize_title_with_dashes()

How to Use This Tool

1. Enter Title/Text: Type post title, page name, category name, or any text to convert to URL-safe slug.

Slug Conversion:

2. Auto-Generate: Tool instantly creates slug using WordPress sanitize_title_with_dashes() logic. No manual conversion needed.

Lowercase: All letters converted to lowercase (My Post → my-post).

Hyphens: Spaces and underscores replaced with hyphens for readability.

Transliteration: Accented characters converted (México → mexico, Zürich → zurich).

Special Chars Removed: !@#$%^&*() and other non-alphanumeric characters stripped.

Options:

3. Separator: Choose hyphen (-) or underscore (_) as word separator. Hyphens preferred for SEO.

4. Bulk Mode: Process multiple titles at once. One line per title generates corresponding slug.

WordPress auto-appends numbers to duplicate slugs (my-post-2). Use descriptive, keyword-rich slugs for better SEO. Shorter is better.

WordPress Slug Generator: FAQ

A slug is the URL-friendly version of a post title or term name. It appears in permalinks: "My Great Post!" becomes "my-great-post". Slugs must be lowercase, alphanumeric with hyphens, and unique within their context (posts, pages, terms).

URLs can't contain spaces, special characters, or non-ASCII characters. Slugs remove these, transliterate accented characters, prevent duplicate URLs, and create cleaner, more shareable links. "Café & Bar #1" becomes "cafe-bar-1".

WordPress automatically appends numbers to duplicates: "my-post", "my-post-2", "my-post-3". This ensures unique URLs. Our tool shows you what the slug will be, but WordPress will handle conflicts when you save.

WordPress transliterates many characters: "México" → "mexico", "Zürich" → "zurich". Characters without Latin equivalents may be removed. For better multilingual support, consider plugins that preserve original characters in slugs.