What makes a good URL slug
A slug is the human-readable part of a URL. Good ones are lowercase, hyphen-separated, free of punctuation and accents, and short enough to read in a search result or a shared link. Bad ones carry query strings, dates nobody needs, capital letters that break case-sensitive routing, or encoded characters that turn a shared link into a wall of percent signs.
The rules are simple enough to apply by hand and tedious enough that nobody does it consistently across a hundred posts — which is where the inconsistency in most sites' URLs comes from.
Accents are folded, symbols are spelled out
Two different problems get conflated in slug generation. Accented letters have an obvious ASCII equivalent: café should become cafe, not caf. This tool decomposes the character and drops the combining mark, which handles every accented Latin letter correctly rather than relying on a lookup table with gaps.
Symbols are different — they have a meaning that would be lost if they were simply deleted. Tom & Jerry becoming tom-jerry loses the word; becoming tom-and-jerry keeps it. The same goes for % to percent and @ to at. Characters like ß and æ are transliterated to their conventional two-letter spellings.
Hyphens, not underscores
For public URLs, use hyphens. Search engines treat a hyphen as a word separator and an underscore as a word joiner, so clean_urls can be read as one token while clean-urls is read as two. The underscore option exists because some internal systems, file naming conventions and identifier schemes require it — not because it is a good choice for a web page.
Stop words and length
Dropping a, the, of and similar produces shorter slugs and is what most CMS platforms do. It is off by default because it occasionally mangles meaning — The Who is not improved by it — and the tool never lets stop-word removal empty a slug entirely.
Truncation stops at a word boundary. A slug cut mid-word reads as broken and can accidentally form an unintended word, so the last partial segment is dropped rather than kept.