My Tool Studio
Text

URL Slug Generator

Type a page title or product name and this slug generator turns it into a clean URL slug as you type, such as how-to-choose-the-right-running-shoes-for-flat-feet. Accented letters become plain ASCII, or you can keep Hindi, Arabic, Chinese and other letters as they are. Punctuation is dropped, an ampersand becomes and, and spaces become a hyphen, underscore or dot. Remove stop words or numbers, add your own replacements such as C++ to cpp, and set a maximum length that cuts at a full word. Live checks flag long slugs, years and repeated words. Bulk mode turns a list or a .txt or .csv file into slugs, keeps repeats unique and downloads a CSV for Shopify or WooCommerce imports. Everything runs in your browser.

Always freeNo sign upRuns in your browser
Custom replacements
Slug51 characters
how-to-choose-the-right-running-shoes-for-flat-feet
  • Note: 10 words. Shorter slugs with the main keyword are easier to read and share.
  • Note: Contains stop words: to, the, for. Tick Remove stop words to drop them.

How to use

01

Enter a title

Type or paste into Title or phrase. To make many slugs at once, tick Bulk: one slug per line and paste one title per line, open a .txt or .csv file, or click Try bulk sample.

02

Set the options

Choose a Separator and Letters, keep Lowercase ticked, tick Remove stop words to shorten the slug, and enter a Max length if your platform has a limit. Add a Base URL to preview the full address.

03

Copy the slug

Read the checks under the slug, then press Copy. In bulk mode, Copy takes every slug, one per line, and the .csv button saves each title next to its slug.

Why URL Slug Generator

Good and weak slug examples

The slug generator gives you a clean starting point, and a quick edit often makes it better. These examples show common problems and a tidier version. Turning on Remove stop words and a Max length gets you part of the way automatically.

Page titleWeak slugBetter slugWhy
How to Choose the Right Running Shoes for Flat Feethow-to-choose-the-right-running-shoes-for-flat-feetrunning-shoes-flat-feetShorter, keeps the words people search for
Budget Travel Tips for 2025budget-travel-tips-for-2025budget-travel-tipsNo year, so the URL still fits when you update the post
Men's Waterproof Hiking BootsMen's_Waterproof_Hiking_Bootsmens-waterproof-hiking-bootsLowercase, hyphens, no apostrophe
Product 4471p4471blue-ceramic-coffee-mugDescribes the page instead of an internal ID
Crème Brûlée Recipecrème-brûlée-recipecreme-brulee-recipeAccented letters turn into codes like cr%C3%A8me when the link is copied

Slug rules in WordPress and Shopify

Both platforms create a slug from the title automatically, but you can edit it before publishing, which is the moment to paste a cleaner one.

  • WordPress: the slug is set in the post or page settings under URL or Permalink. It becomes the last part of the address when your permalink structure includes the post name.
  • WordPress keeps slugs unique, so if the slug is already taken it usually adds -2 to the end.
  • Shopify calls the slug a handle. Products live under /products/handle, collections under /collections/handle and pages under /pages/handle.
  • In Shopify, edit the handle in the Search engine listing section of the product or page. When you change it on a live item, keep the option to create a URL redirect ticked.
  • On both platforms, lowercase letters, numbers and hyphens are the safe set of characters for a slug.

Common questions

What makes a good URL slug for SEO?
A good slug is short, lowercase, uses hyphens between words and describes the page with its main words. Avoid dates, IDs and filler words unless they are needed to make sense. A clear slug also tells people what the page is about before they click the link.
Should I remove stop words from my slugs?
Often it helps, because words like the, and and of make the slug longer without adding meaning. Tick Remove stop words to drop them. Check the result reads well, since removing them can change the meaning, as in to be or not to be.
How does the slug generator handle accented letters?
With Letters set to Transliterate to ASCII, accented letters become plain letters, so déjà vu becomes deja-vu and Crème Brûlée becomes creme-brulee. Emoji and most symbols are removed. A check warns you when a word could not be converted, such as Hindi or Chinese text, so nothing disappears silently.
How do I make slugs for many titles at once?
Tick Bulk: one slug per line and paste one title per line, or open a .txt or .csv file. Each line becomes its own slug and blank lines stay blank. With Make repeated slugs unique ticked, a second my-post becomes my-post-2. Copy takes the whole list, and .csv saves titles and slugs side by side.
What does the Max length setting do to a slug?
When the slug is longer than the number you set, it is cut at the last separator that fits, so no word is chopped in half. If the first word alone is longer than the limit, that word is cut. Set it to 0 for no limit.
Should I use hyphens or underscores in URL slugs?
Use hyphens for web page URLs. Google's own URL guidance recommends hyphens to separate words, since underscores can be read as joining words. Underscores are fine for file names and code identifiers.
Why did a hyphen in my title become a separator?
Hyphens, underscores, dots and slashes in the source are treated as word breaks, so e-mail becomes e-mail and COVID-19 becomes covid-19. With an underscore separator they become e_mail and covid_19. Apostrophes are removed, so Men's becomes mens.
Can I keep Hindi, Arabic or Chinese letters in a URL slug?
Yes. Set Letters to Keep Unicode letters and words in any script stay as typed, joined by your separator, for example हिंदी-ब्लॉग-पोस्ट. Browsers show these URLs as written, but some apps copy them as long percent-encoded strings, so many sites still prefer a Latin transliteration for sharing.
Can I change a slug after a page is published?
You can, but the old URL will stop working unless you add a 301 redirect from the old address to the new one. WordPress and Shopify can create redirects when a slug or handle changes. For pages that already get traffic or links, only change the slug for a good reason.

More Text tools

View all