Paste a headline and the generator turns it into a lowercase, hyphenated URL slug. Words stay whole: don't becomes dont, iPhone becomes iphone and café becomes cafe.
Every part it removes is listed under the result with the rule behind it, and the slug's length is shown, never cut. Stop words, length, numbers and non-English letters stay your call – see what the generator leaves for you to decide.
What the slug generator changes in your text
Eight changes happen when text becomes a slug:
- Capital letters become lowercase. URLs are case sensitive, so Google treats /APPLE and /apple as two different addresses. (Google)
- Spaces become single hyphens. Google recommends hyphens between words because they clearly signal a word boundary.
- Apostrophes are dropped without splitting the word. Don't becomes dont, not don-t, so the slug still reads as one word.
- Accented letters become plain letters. Café becomes cafe, ß becomes ss and Å becomes a. In a link, café would otherwise travel percent-encoded as caf%C3%A9.
- An ampersand becomes "and". In a URL the & is a reserved character that separates query parameters, so the word keeps its meaning instead.
- Other punctuation and symbols are removed. Between two letters or digits they leave a hyphen, so Next.js becomes next-js and 2.5 becomes 2-5 rather than 25.
- Numbers stay where they are. 10% becomes 10 and 16 stays 16.
- Extra hyphens at the ends and in the middle are trimmed. A slug never starts or ends with a hyphen and never doubles one.
Don't Stop: Café Résumé & 10% Off! becomes dont-stop-cafe-resume-and-10-off
What's New in Next.js 16? becomes whats-new-in-next-js-16
Straße über Ångström becomes strasse-uber-angstrom
Pasted: Don't Stop: Café Résumé & 10% Off!
- dontApostrophe dropped, word kept
- stopLowercase, colon removed
- cafeAccent becomes a plain letter
- resume
- and& becomes "and"
- 10% removed, number kept
- off! removed, no hyphen at the end
One limit comes from the rules themselves: symbols that carry the meaning are lost, so C++ and C# both become c.
C++ vs C# — which? becomes c-vs-c-which
How a slug differs from kebab case and snake case
Kebab case also joins lowercase words with hyphens, but it is made for code: the kebab-case converter splits iPhone into i-phone, because a capital inside an identifier starts a new word. Snake case joins words with underscores for variables and database columns, which is what the snake_case converter is for.
| Slug | iphone-15-pro-max-review |
|---|---|
| kebab-case | i-phone-15-pro-max-review |
| snake_case | i_phone_15_pro_max_review |
For URLs, Google recommends hyphens instead of underscores (Google). A slug is kebab case plus the URL rules above: words stay whole, accents become plain letters and symbols go.
What the generator leaves for you to decide
Four decisions stay with you: whether to keep stop words, how long the slug should be, whether a year or a number belongs in it, and when to keep non-English letters.
Should a slug keep stop words like “the” and “of”?
Keep them unless the slug reads naturally without them. Removing them can change the meaning, which is why “Remove stop words” is off by default:
The Cat in the Hat becomes the-cat-in-the-hat
The Cat in the Hat becomes cat-hat
With the switch on, the generator removes a, an, the, and, or, but, nor, of, in, on, at, to, for, by, with, from, as, vs. If every word is a stop word, it keeps them all. Google's URL guidelines do not mention stop words (Google).
How long should a slug be?
Google's URL guidelines give no length limit; they ask for readable words rather than long ID numbers (Google). Ghost recommends keeping a slug “as short as possible” (Ghost). The generator never cuts a slug: it shows the character count, so you can drop words by meaning rather than at a fixed number of characters.
Should a slug keep the year or a number from the title?
Keep a number that is part of the subject, such as the 15 in iphone-15-pro-max-review or the 10 here:
10 Tips for Writers becomes 10-tips-for-writers
Leave out a year if you plan to update the page next year: the slug would then need changing, and a changed slug needs a redirect.
When should a slug keep non-English letters?
When your readers search in that language. The generator always turns accented letters into plain ones, which suits an English-speaking audience. Google recommends words in your audience's language in the URL, and its own example writes gemüse in a link as gem%C3%BCse (Google). For such a page, type the slug in that language by hand. Letters with no plain Latin form, such as Cyrillic or Japanese, are removed, so write those slugs by hand too.
From a headline to a published URL
A slug comes late in publishing: settle the headline, generate the slug, paste it into your CMS – and leave it alone once the page is live.
Fix the headline's case before you make the slug
The headline and the slug go live together, so finish the headline first. If you are asking how to capitalize my title, the converter answers for AP, APA, Chicago and MLA and marks the rule behind every word. The slug lowercases everything anyway; what matters is that it matches the final wording.
Changing a published slug needs a redirect
Once a page is live, the old URL needs a redirect to the new one, or links to it end on a “page not found” error (Shopify). WordPress redirects old slugs of published posts with a 301 on its own (WordPress source), but not of pages, and it does not update links to the old URL inside your content. Shopify pre-selects “Create a URL redirect” when you change the handle of a page or blog post (Shopify) and offers the same choice for collections. In Ghost, you add the redirect yourself in redirects.yaml (Ghost).
Where to paste the slug in WordPress, Shopify and Ghost
- WordPress: in the post or page settings sidebar, open Slug. You can edit it once the post is saved as a draft (WordPress).
- Shopify: in the Search engine listing section of a product, collection, page or blog post, edit the URL handle field (Shopify).
- Ghost: in the post settings, edit Post URL (Ghost).
Each platform also builds a slug from the title on its own and treats symbols such as & and apostrophes in its own way, so pasting the slug is how you get exactly the one shown above.
Questions about URL slugs
What is a URL slug?
A slug is the last part of a URL that names the page, such as slug-generator in titlecaseconverter.online/slug-generator. Django's documentation defines it as "a short label for something, containing only letters, numbers, underscores or hyphens."
Why is it called a slug?
The word comes from newspapers. Charles G. Ross's 1911 handbook The Writing of News defines a slug as a line of machine-set type and, for copy readers, "the identifying name given a story." Django calls slug "a newspaper term."
Should a slug use hyphens or underscores?
Hyphens. Google recommends hyphens instead of underscores to separate words in URLs, because hyphens clearly signal a word boundary.
What is the difference between a slug and a permalink?
A permalink is the full, permanent URL of a page or post; the slug is its last part. WordPress describes the slug as "the last part of the URL" that you can edit.
What does slugify mean?
To slugify text is to turn it into a slug. The word is a function name in developer tools: Django's slugify, for example, "converts a string to a URL slug."
Does the slug affect SEO?
Very little. Google says keywords in the URL path "alone have hardly any effect beyond appearing in breadcrumbs." It still recommends words that are useful for readers over random identifiers.