Slug Generator
- Paste your text — usually a page or product title.
- Choose the separator: hyphen, underscore or dot.
- Set the maximum length, between 10 and 200 characters.
- To shorten further, enable stop word removal and pick the right language for the text.
Accents are removed and letters folded to their unaccented equivalent: "ação" becomes "acao", "ñ" becomes "n".
Punctuation and symbols are dropped, and runs of whitespace collapse into a single separator.
Text is lowercased when that option is on, which is the default and the convention for URLs.
Length trimming respects the limit without leaving a dangling separator at the end.
For URLs, the hyphen is the recommended choice. Search engines treat a hyphen as a word separator and an underscore as part of the word — "complete-guide" reads as two words, "complete_guide" tends to read as one.
Underscores make sense in file names and code identifiers, where a hyphen could be parsed as a subtraction operator.
A dot works for file names and hierarchical keys, but avoid it in URLs: it can be mistaken for a file extension.
Stop word removal strips articles, prepositions and conjunctions — "the", "of", "for" in English. Long titles shrink noticeably, and the removed words rarely carry search intent.
The list is language-specific, which is why picking the right language matters: applying the English list to Portuguese text removes nothing.
A caveat: in some cases a preposition changes the meaning, and overly aggressive slugs become hard to read. If the URL is already short, leave it off.
Once published, avoid changing a URL. If you must, set up a 301 redirect from the old address to the new one, or you lose the history it accumulated.
Frequently asked questions
Technically yes, but they become percent-encoded sequences and the URL turns unreadable when copied. Stripping accents is the established practice.
Hyphen for URLs. Search engines split words on hyphens and not on underscores, which changes how the address is interpreted.
There is no official number. Short enough to read, long enough to describe the page — three to six words usually works well.
You can, but the old URL stops existing. Set up a 301 redirect from the previous address to the new one, or ranking history and inbound links are lost.
No. The conversion happens in your browser.