URL slug generator
A URL slug is the readable part of a web address after the domain, like /how-to-build-an-app. Paste a title and the generator lowercases it, swaps spaces and punctuation for hyphens, strips accents and symbols, and can drop small words or cap the length.
URL slug
how-to-build-a-mobile-app-in-2026-a-founders-guide
50 characters · 11 words
- Slug
- how-to-build-a-mobile-app-in-2026-a-founders-guide
- Length
- 50 characters11 words
How is a URL slug made from a title?
The title is split into words: runs of letters and digits, with spaces, punctuation and symbols such as & and ! treated as gaps. The words are lowercased and joined with hyphens, so there is never a hyphen at either end or two in a row. Apostrophes are dropped rather than turned into hyphens, so “Founder’s” becomes founders. Hyphens and underscores are both unreserved characters in RFC 3986, so neither needs encoding in a URL, but Google recommends hyphens.
Accented Latin letters become plain ones: the text is decomposed with Unicode NFKD, which splits é into e plus a combining accent, and the accents are removed. NFKD can't split a few letters that are separate letters in their own right, so a table maps them: ß → ss, æ → ae, ø → o, đ → d, ł → l, œ → oe, þ → th, ð → d and ı → i.
Words in other scripts, such as Hindi, Tamil or Arabic, have no plain-Latin spelling that a rule can produce, and their vowel signs are combining marks too, so stripping marks would break them. This tool keeps them by default: Google's URL guidance says to use words in your audience's language and to percent-encode non-ASCII characters in links, which the result shows. Choose ASCII only to remove them instead; the result then says which script was removed rather than dropping it silently.
Small words are removed only when you ask, from this list: a, an, the, and, or, but, nor, of, to, in, on, at, by, for, from, with, as, into, is, are, was, were, be, it, its. If every word is on the list, none are removed. A length cap drops whole words from the end until the slug fits.
title → NFKD, remove accents (é → e), map ß æ ø đ ł œ þ ð ı
→ lowercase → drop apostrophes
→ words = runs of letters, digits and marks
→ [remove small words] → [cut whole words to fit]
slug = words joined with "-"What do common titles look like as slugs?
| Title | Slug | Small words removed | ASCII only |
|---|---|---|---|
| How to Build a Mobile App in 2026 | how-to-build-a-mobile-app-in-2026 | how-build-mobile-app-2026 | how-to-build-a-mobile-app-in-2026 |
| Crème Brûlée: The Classic French Recipe | creme-brulee-the-classic-french-recipe | creme-brulee-classic-french-recipe | creme-brulee-the-classic-french-recipe |
| Straße & Café Guide | strasse-cafe-guide | strasse-cafe-guide | strasse-cafe-guide |
| Ærø, Øresund and Łódź | aero-oresund-and-lodz | aero-oresund-lodz | aero-oresund-and-lodz |
| Đà Nẵng Travel Tips | da-nang-travel-tips | da-nang-travel-tips | da-nang-travel-tips |
| What’s New in Next.js 16? | whats-new-in-next-js-16 | whats-new-next-js-16 | whats-new-in-next-js-16 |
| 10 Tips for Writing Better URLs!!! | 10-tips-for-writing-better-urls | 10-tips-writing-better-urls | 10-tips-for-writing-better-urls |
| मोबाइल ऐप कैसे बनाएं | मोबाइल-ऐप-कैसे-बनाएं | मोबाइल-ऐप-कैसे-बनाएं | (nothing left) |
| தமிழ் இணையதளம் | தமிழ்-இணையதளம் | தமிழ்-இணையதளம் | (nothing left) |
How to make a URL slug from a title
- 1Paste the titleType or paste the page title. Tick “One slug per line” to convert a whole list of titles at once.
- 2Choose the styleKeep hyphens and lowercase, which suit most sites, and choose whether accents become plain letters and whether words in other scripts stay.
- 3Trim it if you wantRemove small words such as a, the and of, drop numbers, or set a maximum length; the cut always falls between words.
- 4Copy the slugCopy the slug, its percent-encoded form for non-ASCII text, or the whole list, and use it as the last part of the page's URL.
Frequently asked questions
Should I use hyphens or underscores in a URL slug?
Should URL slugs be lowercase?
Should I remove stop words like “a” and “the” from a slug?
Can a URL slug use Hindi, Tamil or Arabic words?
Should I change the slug of a page that is already published?
Sources
- Google Search Central, URL structure best practices for Google Search (hyphens, case, audience's language, percent encoding) (checked 20 Oct 2026)
- Google Search Central, Redirects and Google Search (301 and 308 permanent redirects) (checked 20 Oct 2026)
- RFC 3986, Uniform Resource Identifier, §2.3 Unreserved Characters (letters, digits, - . _ ~) (checked 20 Oct 2026)
- MDN, String.prototype.normalize() (NFKD compatibility decomposition) (checked 20 Oct 2026)
Need a custom dev tool for your team?
We build internal tools, dashboards, APIs, and SaaS platforms. If you can describe it, we can ship it.
Built by CountryDevs · No signup · No ads · We count visits, never what you enter