Slug Generator

Convert text to URL-friendly slugs (lowercase, hyphens, no special chars). All in your browser.

Try it with this example

Type "How to Build a Website in 2024!" and get how-to-build-a-website-in-2024.

What is this tool?

URL slugs are the readable part of a URL: /how-to-build-a-website, /product-name, /blog-post-title. Good slugs are lowercase, use hyphens, and contain no special characters or spaces. Turning a title or phrase into a slug by hand is tedious and error-prone. This Slug Generator converts text to URL-friendly slugs: lowercase, hyphens for spaces, accented characters normalized, punctuation removed. Paste a title, get a slug. All processing runs in your browser.

Use it for blog URLs, product pages, category names, and filenames. "How to Build a Website in 2024!" becomes how-to-build-a-website-in-2024. SEO-friendly and consistent. Paste a headline from your CMS, generate the slug, copy into your URL field. Content creators use it before publishing. Developers use it when building dynamic routes or file-based sites. The same input always produces the same slug—good for idempotent URL generation.

Slug rules vary by platform. This tool uses common conventions: ASCII letters and digits, hyphens for word separation. Some systems allow underscores; we use hyphens for readability. Non-ASCII characters are transliterated where possible (e.g. é to e). Check your platform's requirements and adjust the output if needed. For most websites, the default output works.

Fast and private. No server round-trip, no storage. Paste titles, headlines, or product names. Get slugs. Bookmark it for whenever you need a clean URL from messy text.