How to write a URL slug
A URL slug is the readable tail of a path: the part after the domain that says what the page is. It is not a headline with the spaces left in, and it is not a database id. This page is how to write one. The button that builds one from a headline is the URL slug generator.
The home lower button will not insert hyphens. When to use each case still says that, and it is still true. Lower case turns Spare Key Photo into spare key photo. You add the hyphens, or you use the slug page, which does that job and can drop short words and fold accents. Identifier shapes such as kebab-case, which keep every word and do not drop of or the, stay on the developer case converter. The language rules for those shapes are camelCase, snake_case, and kebab-case.
What Google actually says about the path
Google's URL structure guidance says to keep the structure simple. The page recommends readable words rather than long id numbers. It recommends words in your audience's language, with transliteration when that is how those readers search. It recommends hyphens to separate words, not underscores. The reason given is that underscores are already used in programming to hold a name together, as in format_date, while a hyphen signals a word boundary. The page was marked last updated 2026-10-21 UTC.
The recommended example on that page is a path like /wiki/Aviation. The not-recommended example is a long index.php query with an opaque id. A second pair contrasts summer-clothing with summer_clothing, and with the words smashed together as greendress. None of those examples is a character limit. The page does not say a slug must be under 60 characters, or under 75, or under any other number. Do not invent one and attribute it to Google.
The same document says to percent-encode non-ASCII characters in href attributes when you need to, and it shows both an encoded form and a raw non-ASCII form. Our slug tool does not percent-encode. It folds a limited set of accents and a small Cyrillic and Greek map toward ASCII, and it drops letters it cannot fold. If the path must stay in Japanese or Arabic as Google's own examples allow, do not run that string through a tool whose job is ASCII. Translate or transliterate on purpose, then slug the result, or leave the Unicode path alone and encode it in the href yourself.
Write the words before you click
Start from the thing the page is about, not from a marketing sentence. "How to fix a leaky faucet at O'Hare" has a job in it: fix, leaky, faucet, and the place. "You will not believe this one faucet trick" has a job the reader cannot use. The slug should survive being read out loud in a support call. If you would be embarrassed to say the path, rewrite the words, then convert.
Put the distinct words early. A shared prefix on every URL, such as blog-post-blog-post, wastes the part people and crawlers see first. Google's title link guidance makes the same point about title elements: distinct text, not boilerplate. The path and the title are different fields. They can share the important words. They do not have to be identical, and the path should not be the title with spaces turned into hyphens if the title is a full sentence you would not want in a URL bar.
Stop words are a choice, not a law. Google's hyphen section does not tell you to delete of, the, or to. Our slug tool can delete a short list when that box is checked: a, an, the, and, or, but, nor, so, yet, of, to, in, on, for, at, by, from, with, as, into, onto, over, per, via, and vs. "how to fix a leaky faucet" keeps how, fix, leaky, and faucet, and drops to. With the box off, to stays. How is not on the list, so it stays either way. If a short word is the point of the page, turn the box off or put the word back. The tool page lists the exact words and the accent fold. This guide will not repeat that table.
Case, apostrophes, and numbers
Lowercase is the usual slug. Mixed case in a path is legal and easy to get wrong twice: /Wiki/Aviation and /wiki/aviation can be two URLs on a server that treats paths as case-sensitive, and one URL on a server that does not. Pick lowercase unless the system you are publishing to preserves case on purpose. The slug tool lowercases by default. A checkbox keeps the capitals you typed. Keeping capitals is for a code token you already decided, not for a headline you have not decided.
Apostrophes are deleted, not turned into hyphens, so don't stays one piece, dont. O'Hare becomes ohare. That is a loss. If the place name matters, write the letters you want before you convert, or edit the slug after. An ampersand becomes the word and, and that word is removed when stop words are on, so Tom and Jerry with an ampersand becomes tom-jerry. Digits stay. HTML 5 becomes html-5. None of that is a style-guide title rule. Title case for the visible headline is a different page, Title Case rules, and the title case tools.
Words: How to Fix a Leaky Faucet
Stops on: how-fix-leaky-faucet
Stops off: how-to-fix-a-leaky-faucet
Those two outputs are the tool's rules, not a ranking. Use the shorter one when the short words add nothing. Use the longer one when to or a is part of a name you need to keep, and turn the stop list off so you do not have to paste the word back every time.
Length is a cut, not a score
The slug tool's length box defaults to 60 characters and cuts on a hyphen when it can, so you do not get a trailing hyphen or a word sliced in half unless the first piece is already longer than the max. A max of 10 on Spare Key Photo becomes spare-key, not spare-key- and not a cut through photo. If you set the max below the first word, the word is cut in the middle. Read that result. A chopped stem is often worse than a slightly longer slug.
Sixty is the tool's default, not a number from the Google page above. The character counter uses 60 as an editorial target for a title element and says, on that page, that Google's title link documentation does not publish a character maximum. Do not reuse the title bar as a slug law. A path can be shorter than the title because the path is a name, not a sentence. It can also be longer than 60 if the words are doing work. Look at the path in a browser bar on a phone. If it wraps into noise, cut a word, not a letter from the middle of a word.
Dates and ids belong in a path only when they are the thing the page is. /2026/11/how-to-fix-a-faucet is a choice some blogs make so archives sort. /how-to-fix-a-faucet?id=88421 hides the useful words behind a query the slug tool will not build. The tool does not emit a query string. Add ?id= only if the system requires it, and do it after you copy. Fragments, the part after #, are not a slug either.
One headline, many lines, and the tools that are not this job
A column of headlines is not one slug. Pasting a whole article into the slug box produces one long path, then the length box cuts it. For a column, take one headline at a time. Bulk line mode changes case per line. It does not insert hyphens. Run bulk case if the cells need sentence case or lower case first, then slug the lines you are actually publishing. Remove extra spaces is worth a pass when the paste has double spaces or hard wraps. Those marks become hyphens and then collapse, but a hard-wrapped headline can still surprise you. Clean the words, then slug them.
Changing the slug of a page that is already public is a redirect problem, not a capitalization problem. The converter will not write the redirect. If the old path has links, keep the old path answering, and point it at the new one, or leave the slug alone. Capitalization edits on a case-sensitive host are the same class of change. Fix the visible title freely. Change the path only when you mean to.
A short checklist
- Words a person can read, in the audience's language, not an opaque id.
- Hyphens between words. Underscores only when a legacy path must keep them. The slug tool turns underscores into hyphens. Do not run a legacy path through it if the underscores have to survive.
- Lowercase unless the system preserves case on purpose.
- Stop words off when a short word is part of the name. On when it is only glue.
- Cut on a word boundary. Then look at the path on a phone.
- Leave Unicode paths alone if the tool would drop the letters.
Open the slug generator when the words are ready. Open the tools index if the job turned out to be case, spaces, or quotes instead of a path. The visible headline, including hyphenated compounds in the title itself, is capitalizing hyphenated words in titles, not this page.