Slugify
Turn a title into a clean, URL-friendly slug.
Frequently asked questions
What is a slug?
A slug is the URL-friendly version of a title — lowercase, with spaces and punctuation replaced by hyphens, so it is readable and safe in a web address.
Why use slugs?
Clean, keyword-rich slugs are easier for people to read and share and can help with search engine optimisation compared with query strings or IDs.
How does it handle accents and symbols?
Accented letters are simplified to their closest ASCII equivalent and other symbols are removed, leaving letters, numbers and hyphens.