Skip to main content

Slugify

Slugify converts any text into a URL-safe slug by lowercasing all letters, replacing spaces and non-alphanumeric characters with hyphens, and stripping everything else. The result is ready to use as a URL path, filename, post slug, or database identifier.

Characters 0
Words 0
Lines 0

Frequently Asked Questions

What is a URL slug?

A slug is the part of a URL that identifies a specific page in a human-readable form, e.g. "my-blog-post-title" in "example.com/blog/my-blog-post-title".

Does it handle accented characters?

Accented characters are typically removed or replaced with their base ASCII equivalent where possible.