Tool 018 / text / free / runs locally
Slug Generator
Paste a title or phrase to get a clean URL slug in lowercase with hyphens between words. It strips accents, punctuation, and extra spaces so the result is safe for links and file names. The slug updates live as you type, entirely in your browser.
How it works
A slug is the clean, lowercase, hyphenated part of a URL that identifies a page, like my-first-post. This tool turns any title or phrase into a safe slug: it lowercases the text, strips accents by normalising characters and removing combining marks, replaces every run of non-alphanumeric characters with your chosen separator, and trims the ends. It runs in your browser as you type.
Accent stripping uses Unicode NFKD normalisation, which separates a letter from its accent so the accent can be removed, turning café into cafe and résumé into resume. That keeps slugs ASCII-safe and predictable across systems. You can pick a hyphen (the SEO-friendly default) or an underscore as the word separator.
Good slugs are short, readable, and stable. Because the output contains only lowercase letters, digits, and your separator, it is safe to drop straight into a URL path without further encoding.
How to use it
- Type or paste your title or phrase into the input field.
- Choose the separator: Hyphen (recommended for URLs) or Underscore.
- Read the generated slug below.
- Click Copy slug to use it in your URL or filename.
Worked examples
Input: My Awesome Blog Post Title!
Output: my-awesome-blog-post-title
The exclamation mark and spaces collapse into hyphens and the trailing one is trimmed.
Input: Café & Résumé Tips (2026)
Output: cafe-resume-tips-2026
Accents are stripped and the ampersand and parentheses become separators.
Edge cases and limits
- Only ASCII letters a to z and digits survive. Non-Latin scripts such as Cyrillic or Chinese, which have no accent to strip, are removed entirely, which can leave an empty slug.
- It does not truncate length, so a very long title produces a very long slug; trim it yourself for tidy URLs.
- It does not de-duplicate against existing slugs; uniqueness across your site is your responsibility.
- Numbers are kept, so a title with a year or version stays in the slug.
Common mistakes
- Using underscores in public URLs for SEO. Search engines treat hyphens as word separators but not underscores, so prefer the hyphen.
- Expecting transliteration of non-Latin text. Accents are removed, but a fully non-Latin title can reduce to nothing.
- Letting slugs grow unbounded from long titles instead of shortening to the key words.
Frequently asked questions
What makes a good URL slug for SEO?+
A good slug is short, lowercase, and readable, with words separated by hyphens and no punctuation or stop words you do not need. Hyphens are preferred over underscores because search engines treat them as word separators.
How does the tool handle accented characters and symbols?+
Accented letters like e with an accent are normalized to their plain ASCII form, and symbols or punctuation are removed. Spaces and repeated separators collapse into a single hyphen.
Can I choose a different separator instead of hyphens?+
Yes. You can switch the separator between a hyphen and an underscore, which is handy for file names or systems that expect underscores in identifiers.
Related tools
More Text tools that run entirely in your browser.