Skip to content
TextBench Lab

URL Slug Generator

Turn a title into a clean, readable URL slug: lowercase, accents removed, words joined with hyphens. Drop stop words, cap the length at a whole word, or convert a whole list at once. It runs in your browser, so nothing is uploaded.

Options

Preview: example.com/your-slug

Length
0
Words
0
Slugs
0

How to create a URL slug

  1. Type or paste a title

    The slug appears as you type, with a preview of the full address.

  2. Pick the style

    Hyphens or underscores, lowercase, and ASCII only or Unicode letters for non-Latin titles.

  3. Shorten it if needed

    Remove English stop words like a, the and of, and set a maximum length. The slug is cut at a whole word.

  4. Copy the slug

    Copy it into your CMS. Tick Bulk to turn a list of titles into one slug per line.

Features

  • Accents handled

    Café becomes cafe, Straße becomes strasse and Ærø becomes aero, so the slug works everywhere.

  • Never cut mid-word

    A maximum length shortens the slug at the last whole word that fits.

  • Bulk mode

    Convert hundreds of titles at once, one per line, for a migration or a content plan.

  • Private

    Everything happens in your browser. Your titles are never uploaded or stored.

What this tool does

A slug is the part of a web address that names a single page. In example.com/blog/how-to-bake-bread, the slug is how-to-bake-bread. This URL slug generator turns any title into a slug like that: lowercase letters, accents removed, punctuation dropped and words joined with hyphens. The preview under the result shows the full address, so you can see how it will look before you paste it into WordPress, Shopify, Ghost, a static site or your own code.

What makes a good slug

A good slug is short, readable and describes the page. Someone who sees only the address should be able to guess what the page is about. A few habits help:

  • Use hyphens between words. Google's own advice is to use hyphens rather than underscores, because hyphens clearly separate words. Underscores are fine for file names or systems that require them.
  • Use lowercase. Some servers treat /My-Page and /my-page as two different addresses. All lowercase avoids duplicates and broken links.
  • Keep it short. Three to six meaningful words are usually enough. Long slugs get cut off in search results and are hard to share.

For more on choosing words, the guide to camelCase, snake_case and kebab-case explains where each style is used. Slugs are kebab-case.

How the slug is built

The tool follows the same steps for every title:

  1. Accents are removed. "Café crème" becomes cafe-creme. Letters that have no accent to strip get a fixed spelling: ß becomes ss, æ becomes ae, ø becomes o, œ becomes oe and ł becomes l, so "Straße" becomes strasse.
  2. Apostrophes disappear. "Don't" becomes dont, not don-t, which is how most content systems handle it.
  3. Everything that is not a letter or a digit separates words. Spaces, punctuation, slashes and emoji all become a single separator. An ampersand becomes the word "and", so "Rock & Roll" becomes rock-and-roll; untick Convert & to and to drop it instead. Repeated separators collapse into one, and there is never a separator at the start or the end.
  4. Numbers are kept. "Top 10 tools of 2026" becomes top-10-tools-of-2026.

You can switch off lowercase, choose underscores instead of hyphens, and switch between ASCII only and Unicode letters.

Stop words and length

Tick Remove English stop words to drop small words such as a, an, the, and, of, to, in and for. "The Best Way to Learn a Language" becomes best-way-learn-language. Words that carry meaning, such as how, why and not, are never removed, and if a title has nothing but stop words, they are all kept so the slug is never empty. Check that the shorter slug still reads well, because sometimes a small word matters.

Maximum length cuts the slug at the last whole word that fits, so you never get a broken word at the end. Only when the very first word is longer than the limit is it cut inside the word. The length counter shows the characters of the slug, and the character counter helps with other limits. To keep page titles short too, see the guide to meta title length.

ASCII only or Unicode letters

ASCII only keeps only the letters a to z and the digits 0 to 9. It is the safest choice for titles in English and other languages written in Latin letters, because every system, email client and old browser handles it.

Keep Unicode letters keeps words in other scripts whole, such as Urdu, Arabic, Hindi, Russian, Greek, Chinese or Japanese. Modern browsers show these slugs in their own script, while behind the scenes they are sent percent-encoded, which makes the raw address much longer. Many sites in those languages use Unicode slugs. If you choose ASCII only for a title without Latin letters, the slug would be empty, and the tool tells you to switch.

Bulk mode

Tick Bulk to convert a whole list. Each line becomes one slug on the same line of the result, and blank lines stay blank so the lines still match. This is handy when you plan a series of posts, migrate a site or prepare redirects in a spreadsheet. Two pages cannot share one address, so the tool warns you when the same slug appears more than once and shows how many repeat. Tick Make duplicates unique to add -2, -3 and so on to the later copies. To find repeated titles in the list first, use Remove Duplicate Lines.

Changing a live slug

A new slug is a new URL. If a page is already published and linked, keep its slug unless there is a strong reason to change it. When you do change it, set up a 301 redirect from the old address so visitors and search engines find the new one. For titles in a different case, such as Title Case for headings, use the case converter, and the guide on meta description length covers the text that appears under your page in search results.

Privacy

Your titles are converted in your browser. Nothing is uploaded, saved or tracked, and there is no sign-up. Input is limited to 200,000 characters and, in bulk mode, 10,000 lines. Like every page on this site, this one may show ads from third-party vendors once ads are switched on, and those vendors can use cookies. Read the privacy policy for details.

Frequently asked questions

What is a URL slug?

The part of a web address that names one page. In example.com/blog/how-to-bake-bread, the slug is how-to-bake-bread. A good slug is short, readable and describes the page.

Should I use hyphens or underscores?

Hyphens. Google recommends hyphens to separate words in URLs, because an underscore can be read as part of a word.

Should I remove stop words from slugs?

Often, but not always. Removing a, the and of makes slugs shorter, but sometimes a small word carries meaning, as in to-be-or-not-to-be. Check that the slug still reads well.

Can a slug contain non-English letters?

Yes. Modern browsers show Unicode slugs and send them percent-encoded. Choose Keep Unicode letters for Urdu, Arabic, Hindi or Chinese titles. ASCII only is safest for Latin-script titles.

Should I change the slug of a page that is already live?

Only with a good reason. A new slug is a new URL, so set up a 301 redirect from the old address, or links and search rankings that point to the old URL are lost.

Are my titles uploaded?

No. Everything happens in your browser and nothing is sent or saved. Input is limited to 200,000 characters and 10,000 lines in bulk mode.

Topics