Text to Slug

Convert any text to a URL-friendly slug.

Ad Slot
Ad Slot

Frequently asked questions

What happens to underscores in the text?

They're treated the same as spaces and hyphens — any run of underscores, spaces, or hyphens collapses into a single hyphen, so "hello_world" becomes "hello-world" just like "hello world" does.

What happens to accented letters, like é or ñ?

They get stripped out entirely rather than converted to their plain equivalent — the cleanup pattern only keeps ASCII letters, digits, underscores, spaces, and hyphens, so "café" becomes "caf", not "cafe".

Why don't I ever see a slug that starts or ends with a hyphen?

Any hyphen left at the very start or end after cleanup is trimmed off, so punctuation at the edges of your text never leaks into the slug as a stray dash.

We use cookies for analytics and to show ads that keep this site free. No personal data is sold.