Slug Generator
Type a title or any text below to get a clean, URL-friendly slug.
What this tool does
A slug is the URL-friendly version of a title — lowercase, with spaces and punctuation replaced by hyphens, and any character that isn't a letter, number, or separator stripped out entirely. This tool converts any text into a clean slug live as you type: accented letters are converted to their plain ASCII equivalent where possible, runs of whitespace or punctuation collapse into a single separator, and leading or trailing separators are trimmed. Everything happens locally in your browser.
Example use case
Publishing a blog post titled "10 Tips for Better Sleep (2026 Guide)!" needs a URL like
/10-tips-for-better-sleep-2026-guide rather than the raw title with spaces and punctuation,
which browsers would otherwise percent-encode into an ugly, hard-to-read address. Slugs are also commonly
used for file names, CSS class names, or unique keys derived from a display name.
Hyphens vs. underscores
Hyphens are the web convention — search engines treat them as word separators, while underscores are sometimes treated as joining two words into one. Most platforms (WordPress, GitHub, e-commerce URLs) expect hyphens, but some systems such as certain file-naming conventions or legacy databases expect underscores instead, which the toggle above switches between.