Skip to content
Plaintools

Slug generator

Paste a heading or product name. The slug is lowercased, punctuation is replaced with hyphens, and common English stop words can be dropped. Accented letters are transliterated so “Crème brûlée” becomes creme-brulee.

Example

A long blog title

“The Ultimate Guide to Crème Brûlée in São Paulo” with stop words on and a 60-character cap becomes ultimate-guide-creme-brulee-sao-paulo.

Related: UTM generator, Open Graph generator, Case converter

FAQ

What is a slug generator?
A slug generator turns a title or phrase into a URL path segment: lowercase, hyphenated, without punctuation. This one can also drop English stop words and transliterate unicode so “Crème brûlée” becomes creme-brulee.
Does this slug generator send my titles to a server?
No. The slug is built in this tab with string transforms only. There is no upload and no request that includes your heading. Refresh the page and the text is gone.
Which words are treated as stop words?
A short English list: articles, common prepositions, and copulas such as a, the, and, of, in, to, for, with, is. If stripping them would leave nothing, the original tokens are kept.
What does transliterate do?
It maps letters such as é, ø, ß, and ł to ASCII lookalikes, then strips remaining combining marks. Turn it off if you want unicode code points to stay in the slug.
How does max length work?
The slug is cut to your limit, then trimmed back to the last hyphen when that hyphen sits in the final 40% of the string. That avoids a dangling half-word in most cases.
Should I change slugs on published pages?
Only with a redirect. This tool does not check whether a slug is already in use; it only formats the string.
How do I build the same slug without this page?
Trim. If transliterate (UI default on): map æ/Æ→ae, ø/Ø→o, å/Å→a, œ/Œ→oe, ß→ss, ł/Ł→l, đ/Đ→d, þ/Þ→th, ð/Ð→d, then NFD and strip combining marks. Lowercase; strip ' and ’. Replace non-alphanumerics with hyphens ([^a-z0-9] if transliterate, otherwise [^\p{L}\p{N}]). Split on hyphens. Optionally drop English stop words (a, an, the, and, or, but, nor, of, in, on, at, to, for, from, with, by, as, is, it, its, this, that, these, those, be, are, was, were, been, being, am, do, does, did, into, over, under, about, after, before, between, through, during, without, within, than, then, so, if, not, no, yes, you, your, we, our, they, their, he, she, them) unless that would leave nothing. Join with “-”. If maxLength > 0 (UI default 60) and the slug is longer, clip, then trim back to the last hyphen when that hyphen is at or after floor(max * 0.6).