Skip to content
Accessibility
Theme
Text size
High contrast
Limit animations
Readable fontAtkinson Hyperlegible
Increased text spacing
Underline links
Always show focus

Runs in your browser — nothing you paste is uploaded.

Slug Generator

Turn a title into a clean URL slug — lowercase, accents removed, spaces and punctuation to hyphens — the way WordPress sanitize_title() does. Runs in your browser.

Slug updates as you type.


    

What it does

A slug is the URL-friendly version of a title — the part after your domain in a permalink. This tool lowercases the text, strips accents (café → cafe), converts anything that isn't a letter or number to a hyphen, and collapses and trims the hyphens.

Matches WordPress

The rules mirror WordPress sanitize_title() for Latin text, so the slug you see here is what WordPress would store for a post with that title.

Privacy

Everything runs locally in your browser; nothing is uploaded.

Frequently asked questions

Does this match WordPress exactly?

For Latin text, yes — it mirrors sanitize_title: lowercase, accents stripped, non-alphanumerics turned to hyphens, then collapsed and trimmed.

What happens to non-Latin scripts?

Accents are removed via Unicode normalisation; scripts with no Latin form (Cyrillic, CJK, …) are dropped — matching WordPress's default without a transliteration plugin.

Related tools