Slug Generator

URL slug—
Slug length (characters)—
Words in title—

How Slug Generator is calculated: Lowercase everything, drop punctuation, replace spaces with hyphens, trim hyphens from the ends.

What is a URL slug?

A slug is the readable part at the end of a URL. In https://example.com/how-to-start-a-blog, the slug is how-to-start-a-blog. It is the part people read, remember, and share, and it is the part search engines show in the results. A good slug says what the page is about in a few plain words.

Slugs are built from the page title, but they are not the title itself. The title keeps its capital letters, punctuation, and spaces; the slug drops all of that. Capitals become lowercase, spaces become hyphens, and punctuation disappears. What is left is a short, clean string that works anywhere a URL works.

Every page on the web has one, whether its owner chose it or not. Content systems generate a slug automatically when a title is saved, and the automatic version is often long and clumsy. A dedicated slug generator gives you the clean version before you publish, while you can still change it.

How this slug generator works

Type or paste a title and the slug appears as you type — there is no button to press. The tool lowercases every letter, removes punctuation and symbols, turns each run of spaces into a single hyphen, and trims hyphens from both ends. The result is shown in the results box and in the output box below, ready to copy.

The rules are the ones search engines and browsers agree on. Lowercase avoids the confusion of two URLs that differ only by case, which some servers treat as different pages. Hyphens are the word separator Google recommends, because it reads them as spaces. Underscores are not — Google treats an underscore as part of the word, so hello_world looks like one word to it.

The tool also counts the words in your title and the characters in the slug, so you can see at a glance whether the slug is getting long. A slug built from a ten-word title is usually too long to be useful, and the counts make that obvious before you publish. Everything runs in your browser; nothing is uploaded.

Short slugs beat long ones

The single most useful slug rule is to keep it short. A slug of three to five words is easy to read, easy to share, and easy to remember. A slug of twelve words is none of those, and it gets cut off in search results, in messages, and in social posts. Short slugs also look more trustworthy — people click a tidy URL more readily than a rambling one.

Short does not mean vague. The slug still needs the words that say what the page is about. How to start a blog in 2026 becomes how-to-start-a-blog-in-2026, which is nine words and 39 characters — readable, but already long. A tighter version, start-a-blog, says the same thing in three words and fits anywhere. The year can live in the title, where it still shows in search results.

Cut filler words first: a, an, the, and, of, to, in, on. They add length without meaning, and nobody searches for them. Then cut anything the page does not need — a slug is a label, not a summary. If you are unsure what to keep, keep the words someone would type into Google to find the page. A word counter helps when you are trimming a long title down to its essentials.

Dates deserve the same treatment. A year in a slug — how-to-start-a-blog-in-2026 — dates the page the moment it is published, and a reader in 2028 may skip it as outdated even if the advice still holds. If the year matters, keep it in the title, where it shows in search results, and leave it out of the slug. The same goes for words like best or ultimate: they add length, they age badly, and they promise more than the page can prove. A slug that survives for years is one built from the topic alone, not from the claims around it.

A worked example: from title to slug

Take the title on this page: Hello World! How to Start a Blog in 2026. It has 9 words. The generator lowercases it to hello world! how to start a blog in 2026, then drops the exclamation mark, then turns each space into a hyphen. The slug is hello-world-how-to-start-a-blog-in-2026 — 39 characters, with every word from the title in order.

Try a messier title: SEO and Marketing: 10 Tips!! The generator lowercases it, removes the colon, the ampersand, and both exclamation marks, and collapses the spaces. The result is seo-marketing-10-tips — 21 characters, five words, no punctuation. The number survives, because numbers are allowed in slugs and often carry the point of the title.

Try the simplest case: Hello World! That is two words, and the slug is hello-world — 11 characters. It is the classic first slug, and it shows the whole method in miniature: lowercase, strip punctuation, hyphenate the spaces. If your title has leading or trailing spaces, the generator trims them first, so no slug starts or ends with a hyphen.

Who uses a slug generator

Bloggers use it on every post. A post title is written for readers, with flair and punctuation, and the slug is written for the URL. Running the title through a slug generator gives a clean address before the post goes live, and changing a slug after publishing breaks every link to the page — so it pays to get it right the first time.

Shop owners use it for product and category pages. A product called Men's Leather Wallet — Brown, Handmade becomes mens-leather-wallet-brown-handmade, which is readable in the address bar and in the search results. A slug full of codes and symbols, by contrast, tells neither the buyer nor Google anything about the product.

Developers and SEOs use it when building or moving sites. A site migration means hundreds of old URLs need clean new slugs, and doing them by hand is slow and error-prone. The generator does one at a time, instantly, with the same rules every time. Once the slug is set, a title tag checker makes sure the title that goes with it is the right length for search results.

Slug generator vs typing the slug yourself

Typing a slug by hand works for one page, but it is easy to get wrong in small ways. A capital letter slips in, a space becomes an underscore, a stray punctuation mark survives — and each of those creates a URL that looks fine but behaves differently. The generator applies the same rules every time, so the tenth slug is as clean as the first.

The other difference is speed. A title with fifteen words takes a few seconds to slug by hand, and the result is usually the full title hyphenated, which is too long. The generator shows the full slug and its length instantly, so you can see it is too long and trim the title before you commit. The word count next to it tells you how many words you started with.

There is one thing the generator cannot do: decide which words matter. It keeps every word in the title, in order. Choosing the three or four words that carry the meaning is still your job — the tool just makes the mechanical part instant and error-free. A meta tag generator handles the next step, the title and description tags that sit alongside the slug.

Common mistakes with slugs

The first mistake is keeping the slug too long. A slug that repeats the whole title word for word is hard to read and gets cut off in search results. Cut filler words and anything the page does not need. If the slug is longer than about 60 characters, it is almost certainly too long.

The second mistake is using underscores instead of hyphens. Google reads a hyphen as a word separator and an underscore as part of the word, so hello_world is one word to Google and hello-world is two. Always use hyphens. The third mistake is changing a slug after the page is published: every link, bookmark, and search result pointing at the old URL breaks. If you must change it, set up a redirect from the old slug to the new one.

The fourth mistake is stuffing keywords into the slug. Repeating the same keyword three times, or adding words the page does not cover, looks like spam and does not help rankings. One clean mention of the topic is enough. And the fifth mistake is leaving the automatic slug in place — a title like 10 Best Phones (2026) often becomes 10-best-phones-2026 by default, which is fine, but a title with a date, a brand, and a question can produce a mess worth cleaning up first.

How to use this slug generator

Type or paste your page title into the box. The slug appears live in the results box and in the output box below, along with the slug length and the word count of your title. There is nothing to click and nothing to install — the conversion happens in your browser as you type.

Read the slug and the length together. If the slug is longer than about 60 characters, shorten the title: drop filler words, drop the year, drop anything the page does not need, then watch the slug update. A SERP preview tool shows how the finished URL will look next to your title in the search results.

Copy the slug from the output box and paste it as the page URL when you publish. Do not change it afterwards without a redirect. The tool keeps nothing you type — close the page and the title is gone.

Frequently Asked Questions

Hyphens. Google treats a hyphen as a word separator, so hello-world reads as two words, while it treats an underscore as part of the word, so hello_world reads as one. Hyphens are the standard for URLs, and every major content system uses them by default.

Aim for three to five words, and keep it under about 60 characters. Short slugs are easier to read, share, and remember, and they do not get cut off in search results. Cut filler words like a, the, and, and of first — they add length without meaning.

You can, but every link, bookmark, and search result pointing at the old URL will break unless you set up a redirect from the old slug to the new one. It is better to get the slug right before publishing. If you must change it, add a 301 redirect so the old address still reaches the page.

Yes. Numbers are valid in slugs and often carry the point — 10-tips or 2026 in a slug tells the reader exactly what to expect. Keep them as plain digits, and do not pad them with leading zeros.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.