Slug Generator
A slug is the readable last part of a web address, like "my-first-post" in example.com/blog/my-first-post. Type or paste a title and get a clean slug as you type: lowercase, with spaces and punctuation replaced by a hyphen or an underscore, and no stray separators at the ends.
You can limit the length (cut at a whole word), remove accents from Latin letters, drop common English filler words, or switch to batch mode to turn a whole list of titles into slugs, one per line. Letters from other alphabets are kept as they are rather than guessed at. Everything runs in your browser.
Your slug
| Text | Slug | Copy |
|---|
What makes a good slug?
A good slug is short, readable and stable. It uses lowercase letters, numbers and one kind of separator, which keeps links easy to read aloud and avoids duplicate pages that differ only in capital letters. Hyphens are the usual choice for web addresses, because they are read as spaces; underscores are common in file names and code.
This tool splits your text into words made of letters and numbers, joins them with your separator, and drops everything else: punctuation, symbols and emoji become a separator, apostrophes simply disappear (so "don't" becomes "dont"), and repeated or leading and trailing separators are removed. When a maximum length is set, the slug is cut after the last whole word that fits. The length counts characters, not bytes, and letters from non-Latin alphabets become longer when a browser writes them as percent codes in a web address.
For Latin-script text you can choose to remove accents: "café" becomes "cafe", "ß" becomes "ss" and letters such as æ, ø, đ and ł are converted by a small built-in table. The tool does not translate other alphabets into Latin letters, because doing that correctly depends on the language. Cyrillic, Greek, Arabic, Hebrew, Chinese, Japanese, Korean, Hindi and other scripts are kept as written, and the page tells you when that happens. Modern browsers and search engines handle such web addresses well.
- Live slug as you type, with a hyphen or underscore separator.
- Lowercase or keep the original case.
- Maximum length, cut at a whole word.
- Remove accents from Latin letters, or keep every Unicode letter.
- Optional removal of common English stop words (English only).
- Batch mode with one slug per line, copy one slug or all, and download a text file.
How to use the Slug Generator
- Type or paste your title in the box. Turn on One slug per line for a list.
- Choose the separator and the other options. The slug updates as you type.
- Press Copy slug (or Copy all in batch mode).
- In batch mode you can also press Download .txt.
Is it private?
Yes. Your text is turned into slugs in your browser. It is not uploaded, not sent to any service and not stored.
Read our tools privacy policy →
Frequently asked questions
Hyphen or underscore: which should I use?
Use a hyphen in web addresses. Search engines treat a hyphen as a word separator, so "my-first-post" is read as three words. Underscores are fine for file names, database keys and code.
What happens to accents like é and ü?
By default they are kept, because modern browsers and search engines handle Unicode web addresses. Choose "Remove accents from Latin letters" for plain ASCII: é becomes e and ü becomes u. German ä, ö and ü lose their dots only; they do not become ae, oe and ue.
Why are my Russian, Arabic or Chinese letters still there?
The tool does not transliterate other alphabets, because correct transliteration depends on the language and a wrong guess is worse than none. Those letters are kept as written. If you need a Latin-letter slug, type the Latin version of the title.
Which stop words are removed?
A short list of common English words such as a, an, the, and, of, in, to and for. It only works for English text and it is off by default. If every word of a title is a stop word, none are removed so the slug is not empty.
What if the slug comes out empty?
This happens when the text has no letters or numbers, for example only punctuation or emoji. The tool tells you and leaves the slug empty rather than inventing one.