Text to Slug
Convert any text to a URL-friendly slug.
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.
Related tools
Word Counter
Count words, characters, sentences, and paragraphs in real-time.
Character Counter
Count characters with and without spaces instantly.
Case Converter
Convert text to UPPER, lower, Title, camelCase, snake_case, or kebab-case.
Lorem Ipsum Generator
Generate placeholder text in any number of paragraphs or words.