Slug Generator
Convert any string to a URL-friendly slug
About URL Slugs
A "slug" is the URL-friendly version of a string — typically lowercase, with spaces replaced by hyphens, and special characters and accents stripped or transliterated. Slugs make URLs readable, predictable, and SEO-friendly.
This generator normalizes Unicode (so "café" becomes "cafe"), strips characters that aren't safe in URLs, collapses runs of separators, and trims leading/trailing separators. Useful for blog posts, product URLs, file names, anchor IDs, and CSS class names.
Frequently asked questions
What about non-Latin alphabets (Cyrillic, Chinese)?
This tool only preserves ASCII letters and digits — non-Latin scripts are stripped. For full transliteration of Cyrillic, Greek, Chinese, etc., a server-side library is usually needed.
Should I use hyphens or underscores?
For URLs, Google explicitly recommends hyphens. Underscores work fine as separators in code identifiers but are treated as part of a word in URL parsing.