Slug Generator
Turn any title into a clean, URL-friendly slug.
Lowercase, hyphenated, accents folded and punctuation stripped, live as you type, then copy it in one click.
Your URL Slug
What is a URL slug?
A URL slug is the readable part of a web address that names a specific page. In wordcounters.ca/blog/my-first-post, the slug is my-first-post. A slug generator turns a title or any text into one: type or paste into the box above and the clean, URL-safe slug appears instantly, ready to copy. It runs entirely in your browser, so your text never leaves your device.
Clean slugs help both readability and SEO. A short, descriptive slug tells people and search engines what the page is about before they open it, it makes a shared link more clickable, and it can include the keyword you want the page to rank for. The tool does the tidying for you: it lowercases the text, folds accented letters to their plain form so café becomes cafe, strips punctuation, symbols and emoji, and replaces every run of spaces or other characters with a single hyphen. Leading and trailing hyphens are trimmed and repeats are collapsed, so the result is always neat.
A few best practices make a slug work harder. Keep it short and drop filler words like a, the and of where they do not add meaning. Use hyphens, not underscores, because search engines treat a hyphen as a word separator and an underscore as a word joiner. Keep it lowercase, since URLs can be case-sensitive and mixed case invites duplicate-content problems. And include the main keyword so the slug matches what the page is about. The optional maximum length helps here: it trims the slug at a word boundary so it never ends mid-word.
To use the tool, type your title, choose your separator, and copy the slug. It is idempotent, so pasting an existing slug back in leaves it unchanged. This sits alongside the other text tools: the case converter changes the letter case of text, and remove extra spaces tidies messy whitespace. Everything runs in your browser with no account and nothing to install. Paste a title above to generate its slug instantly.
Slug Generator Examples
| Behaviour | Input | Slug |
|---|---|---|
| Messy title | My First Blog Post! | my-first-blog-post |
| Spaces and symbols | 10 Tips & Tricks (2026) | 10-tips-tricks-2026 |
| Accented title | Crème brûlée & café | creme-brulee-cafe |
| Underscore separator | Save as draft | save_as_draft |
| Trimmed to length | The Complete Guide to Writing Better Headlines | the-complete-guide-to |
*Every row is produced by the same engine this page uses. The input column is the real text; the slug column is what the tool returns.
Features of Our Slug Generator
Slugs
Folding
Underscore
Max Length
You Type
Copy
& Private
Frequently Asked Questions
Click any question to read the answer.
What is a URL slug?
A URL slug is the readable part of a web address that identifies a specific page, the bit after the domain and any folders. In "wordcounters.ca/blog/my-first-post", the slug is "my-first-post". A good slug is short, lowercase and uses hyphens between words, so it is easy to read, share and remember. This tool turns any title into one.
Should I use hyphens or underscores in a slug?
Use hyphens. Google treats a hyphen as a word separator but an underscore as a word joiner, so my-first-post reads as three words while my_first_post can read as one. Hyphens are the long-standing convention for URLs and are the safer choice for SEO and readability. This tool defaults to hyphens and offers underscores only if you specifically need them.
Should slugs be lowercase?
Yes. URLs can be case-sensitive on some servers, so MyPage and mypage could point to different pages or cause duplicate-content issues. Keeping slugs lowercase avoids that entirely and is the standard convention. This tool lowercases by default, with an option to preserve case if you have a specific reason.
How long should a URL slug be?
Shorter is usually better. A slug of a few words that captures the main topic is easier to read and share than a long one that repeats the whole title. Trim filler words like a, the and of where they do not add meaning. This tool has an optional maximum length that truncates cleanly at a word boundary so the slug never ends mid-word.
Do URL slugs affect SEO?
A clean, descriptive slug helps in small ways: it tells people and search engines what the page is about before they open it, it makes the link more clickable when shared, and it can include the keyword you want to rank for. It is not a magic ranking lever, but a readable slug is part of a well-structured, user-friendly URL.
What characters are allowed in a slug?
Keep it to lowercase letters, numbers and hyphens. This tool folds accented letters to their plain form (café becomes cafe), strips punctuation and symbols, drops emoji, and replaces spaces and other separators with a single hyphen. The result uses only URL-safe characters, so it works everywhere without needing to be encoded.
What happens to accents and non-English letters?
Accented Latin letters are folded to their closest ASCII letter, so "Crème brûlée" becomes "creme-brulee". By default, letters from other scripts that have no ASCII form are dropped in strict mode. The tool produces a clean ASCII slug that is safe in any URL.
Is my text stored when I use this tool?
No. The tool runs entirely as JavaScript inside your browser, so your text is never uploaded, logged, or sent to a server. The page keeps working offline once it has loaded, and nothing you type leaves your device. You can generate a slug from a private title with no privacy risk at all.