Skip to main content
matte

Slugify

Clean URL slugs and filenames.

Runs in your browser

About

Slugify converts text into a URL-safe slug or filename — lowercasing, stripping accents and diacritics, and replacing anything that isn't a letter, number, or your chosen separator. It handles non-ASCII input correctly (café becomes cafe, not a mangled entity), which naive slug generators often get wrong. Custom separator, max length, and prefix/suffix options are available. Runs entirely client-side.

Frequently asked

Does it handle accented characters like é or ñ correctly?
Yes, accents and diacritics are stripped to their closest plain-ASCII equivalent (é → e) rather than being dropped or mangled.
Can I set a maximum slug length?
Yes, there's a max-length option that truncates cleanly at a word boundary rather than mid-word.