Text to Slug
Convert text into a URL slug - lowercase words joined by hyphens, with accents and punctuation removed.
About the Text to Slug tool
A slug is the human-readable part of a web address, the bit after the last slash. This tool takes a page title or any sentence and turns it into a tidy slug: it lowercases every letter, strips accents so cafe replaces cafe with a diacritic, removes punctuation and symbols, and joins the remaining words with single hyphens. The result is safe to drop straight into a URL, a filename, or a CSS class.
How to use it
- Paste or type your title into the input box.
- Read the slug from the output as you type - no button needed.
- Copy the result and use it in your CMS, router, or static-site path.
Slugs are great for SEO and shareability because they describe the page in the link itself, for example /blog/how-to-bake-bread. A common gotcha: very long titles make long slugs, so trim filler words first. Note that this tool does not check whether a slug is already in use on your site, so confirm uniqueness yourself. Everything runs in your browser, so your text is never uploaded.
Frequently asked questions
What characters are allowed in a URL slug?
Standard slugs use lowercase ASCII letters, digits, and hyphens. This tool removes everything else, including spaces, punctuation, and accent marks, so the output is safe in any URL.
Does the slug tool handle accented or non-English letters?
Yes. Accented characters like a-acute or u-umlaut are transliterated to their plain ASCII equivalent before the slug is built, so you get clean, predictable output.
Why are my words joined with hyphens instead of underscores?
Hyphens are the convention search engines treat as word separators in URLs, while underscores are read as part of a single word. That is why this tool uses hyphens.
Is my text sent to a server?
No. The conversion happens entirely in your browser using JavaScript, so the text you enter never leaves your device.