Slugify string

    Turn any string into a clean, URL-safe slug.

    Loading tool…

    About the slugify string

    Converts any text into a clean URL slug: accents are stripped to their base letters, punctuation is removed, whitespace collapses to a single separator, and the result is trimmed and optionally length-limited without leaving a dangling hyphen.

    Frequently asked questions

    How are accented characters handled?

    The text is normalised and combining marks are removed, so café becomes cafe and Zürich becomes zurich rather than losing the letters entirely.

    Should slugs contain the date or an ID?

    An ID prefix makes slugs permanently stable when titles change, which avoids redirect chains. A date in the URL makes older articles look stale in search results — a trade worth thinking about before launch.

    Often used alongside