Convert arbitrary titles into URL slugs: lowercase, accent-stripped, with spaces and punctuation replaced by hyphens. The pipeline matches the slug rules used elsewhere in Tool Plaza for URI generation.
Algorithm
- Normalize and trim input
- Remove diacritics (NFD)
- Replace non-alphanumeric runs with a separator (default hyphen)
- Collapse duplicate separators and trim edges
When to use it
- Preview blog post permalinks before publishing
- Generate consistent file names from human titles
- Batch-convert product names for static site generators
Limitations
Empty or punctuation-only input returns an error. The tool does not check slug uniqueness against your CMS or reserved URL paths.
Example
Hello World! slugifies to hello-world. Accented titles such as Café résumé become cafe-resume after diacritic removal and hyphenation. Punctuation-only input is rejected so you do not publish empty permalinks; always review uniqueness in your CMS after generating a candidate slug.