How to make a slug
- Paste a headline, a file name, or a path into the first box.
- Leave lowercase and stop-word removal on unless you have a reason to change them.
- Set a max length, or type 0 if you do not want a cut.
- Copy the slug from the second box. The headline stays in the first box so you can try another length.
The slug is built in this tab. It is not sent anywhere. A saved exceptions list does not apply here, on purpose. A slug is a path, not a display name, so iPhone becomes iphone when lowercase is on. If you need the brand spelling for a title, keep that on the headline and use the slug only in the URL.
Google's URL structure guidance says to use hyphens between words. The same page says underscores already mean "keep this together" in programming languages, and it gives format_date as the example. This tool therefore turns spaces and underscores into hyphens. The developer case converter can still make kebab-case, and that button keeps every word. This page is the one that can drop short words and fold accents.
Case
Lowercase is checked by default. How to Fix a Leaky Faucet becomes how-fix-leaky-faucet when stop words are also removed, or how-to-fix-a-leaky-faucet when they are not. Uncheck lowercase and the letters keep the case you typed, after transliteration: iPhone 15 Pro becomes iPhone-15-Pro. Most public URLs are lowercase because servers and people disagree about whether /About and /about are the same path. Use keep-case only when a system you control treats them as different and you really want the capitals.
The fold uses the browser's ordinary lowercase map, not a Turkish locale. A dotted capital I can pick up a combining mark on some engines before the mark is stripped. If a name depends on that distinction, read the slug before you publish it.
Stop words
With the box checked, these words are removed when they stand alone between hyphens: a, an, the, and, or, but, nor, so, yet, of, to, in, on, for, at, by, from, with, as, into, onto, over, per, via, vs. The match is case-insensitive, so To and to both drop. Words that are not on the list stay, including not, be, how, is, and new. That is why "how to fix a leaky faucet" keeps how, fix, leaky, and faucet.
If every piece is a stop word, the tool keeps them. The And Of becomes the-and-of rather than an empty string. An empty slug is worse than a short one. Add extra stop words in the box under the checkboxes, one per line or separated by commas. Extras apply only to this page, and they are not saved. If your extra list removes the only remaining word, the original pieces are kept for the same reason.
Do not treat this list as a style manual. AP, Chicago, APA, and MLA decide which words to capitalize in a title. They do not decide which words belong in a path. Those small-word buttons are on the title case page. A path and a headline can disagree, and they usually should: the headline can say "How to Fix a Leaky Faucet" while the path says how-fix-leaky-faucet.
Length
The length box defaults to 60 characters. That number is a starting point on this page so a long headline does not become a huge path. It is not a limit Google publishes, and it is not a browser limit. Type 0, or clear the box, and the slug is not cut. A negative number is treated as 60.
The cut happens after stop words are removed, and it prefers a hyphen. Spare Key Photo at a max of 10 becomes spare-key, not spare-key- and not a slice through the next word. If the first piece is already longer than the max, there is no hyphen to use, so the piece is cut in the middle: abcdefghij at 5 is abcde. Read that result. A cut word is sometimes worse than a slightly longer slug.
Some CMSs store a slug in a fixed column. WordPress core defines post_name as varchar(200) in the posts table description. If you are filling that field, you can set 200 here. Other systems use shorter caps. The box is yours. This page does not look up your CMS.
Transliteration
Accented Latin letters are folded to ASCII before the hyphen pass. Café déjà vu becomes cafe-deja-vu. The German eszett becomes ss, so Straße becomes strasse. Ligatures ae and oe are written as two letters. A Latin letter this table misses is still run through Unicode compatibility decomposition, and combining marks are removed, so many other accents become the base letter.
Cyrillic and Greek use a small practical map, not a national standard. Привет мир becomes privet-mir. Omega becomes o. The map is for URLs, not for scholarly transliteration. ISO 9, BGN/PCGN, and library romanization can disagree with these letters, especially for й, х, щ, and the soft sign. If a publisher names a system, use that system and do not trust this box.
Letters with no map and no useful decomposition are dropped. Emoji, Han characters, Hangul, and Arabic script become hyphens and then disappear if nothing else is left. Hello plus a rocket plus World becomes hello-world. A string of only emoji becomes an empty slug, and the status line says there is nothing to convert. Do not use this page to romanize a language it does not know. Translate the words, then slug the translation.
Apostrophes are deleted instead of becoming hyphens, so don't stays one piece, dont. Straight apostrophes, curly apostrophes, and the modifier letter apostrophe are all removed. An ampersand becomes the word and, and that word is then removed if stop words are on. Tom & Jerry becomes tom-jerry. Digits stay. HTML 5 becomes html-5 when HTML is not a stop word, which it is not.
Edge cases
A value that is already a slug is mostly stable. how-to-fix with stop words on loses to and becomes how-fix. With stop words off, the hyphens stay and the letters only change case. Repeated separators collapse. a---b becomes a-b after the empty piece is dropped. Leading and trailing punctuation is trimmed, so a pasted quote around a title does not leave a hyphen on the end.
Slashes are separators, not folders. docs/install guide becomes docs-install-guide. This page does not build a directory tree and it does not encode a query string. If you need ?id=3, add it after you copy. Percent-encoding is also left to you. The output is plain ASCII letters, digits, and hyphens, plus capitals only when lowercase is off and you typed them.
The decision guide still says the home lower button will not insert hyphens. That is still true on the home page. Use this page when the job is the path. Use bulk line mode when you have a column of headlines and you want a slug on each line. Bulk mode does not slug. It changes case per line. Run the slug page once per headline, or paste one headline at a time. A whole article pasted here becomes one long slug, then the length box cuts it.
Frequently asked questions
Will this change my headline?
No. The first box is the source. The second box is the slug. Copy reads the slug.
Why did "to" disappear?
It is on the stop list. Uncheck Remove stop words, or accept the shorter path. The headline on the page can still contain the word.
Can I keep an underscore?
No. Underscores become hyphens, following the Google guidance linked above. If a legacy path must keep underscores, do not run it through this box.
Does the exceptions list protect iPhone?
No. Lowercase slugs fold the brand. Uncheck lowercase if you need the capitals, and know that many hosts will not treat that as a different URL from the lowercase form.