Slug Generator
Turn any text into a clean, URL-friendly slug: lowercased, accents stripped, and separators tidied up. Great for blog post URLs and SEO.
🔒 Processed locally in your browser
Loading…
How to use
- Type or paste any text — like a blog post title — into the text box.
- Your slug updates live below as you type; there's no button to press.
- Choose a hyphen or underscore separator, and optionally set a max length.
- Click Copy to copy the generated slug to your clipboard.
Features
- Strips accents and diacritics (e.g. café becomes cafe)
- Lowercases text and replaces spaces/punctuation with a separator
- Collapses repeated separators and trims leading/trailing ones
- Optional max-length truncation that never cuts a word in half
- 100% client-side — your text never leaves your browser
Frequently asked questions
What is a URL slug?
A slug is the readable part of a URL that identifies a specific page, usually derived from its title — for example, this page's slug is "slug-generator". Clean slugs are easier to read, share, and remember.
Why do slugs matter for SEO?
Search engines and users both benefit from short, descriptive URLs that contain relevant keywords. A clean slug like /blog/best-coffee-shops is more trustworthy and clickable than /blog/post?id=8231.
Why are accented characters removed?
URLs are most reliable when limited to plain ASCII characters. This tool converts accented letters to their closest plain equivalent (café → cafe) so the slug works consistently across browsers, servers, and sharing platforms.
Should I use a hyphen or underscore?
Hyphens are the standard choice — most SEO guides treat hyphen-separated words as distinct words, while underscores can sometimes be read as joining them together. Underscore is offered for tools or systems that specifically require it.
Does this tool store or upload my text?
No. The slug is generated entirely in your browser using JavaScript. Nothing you type is sent to a server or saved anywhere.