URL Slug Generator: Turn Any Title into a Slug

Turn any title into a clean, URL-safe slug.

  • Text Tools
  • Free, no sign-up
  • Runs in your browser

Text to Slug Converter tool

Use 0 for no limit.

About the Text to Slug Converter

A good URL slug is short, readable and stable, such as best-budget-phones for an article about budget phones. This converter turns a page title into that format automatically: it lowercases the text, replaces spaces with hyphens, removes punctuation and symbols, strips accents, collapses repeated hyphens and trims any left at the edges. Clean slugs are easier to share and remember, and they make it clear what a page is about before anyone clicks. If you change the slug of a page that is already published, redirect the old address to the new one so existing links and search rankings carry over. To check how a title will look in search results, use the SERP Preview, and for links with campaign tracking try the UTM Builder.

Take the title Ten Easy Ways to Save Money! as an example: it becomes ten-easy-ways-to-save-money. Accented letters are converted to their nearest plain forms, so Café de Flore turns into cafe-de-flore instead of a string of percent-encoded symbols, and apostrophes simply vanish, so don't becomes dont.

Readable slugs pay off in several places at once, because search results, shared links and analytics reports all display them. Plain words are quicker to scan and easier to type, and they survive being pasted into a chat or printed on a flyer far better than a jumble of codes.

You can choose a hyphen or an underscore as the separator, drop common stop words such as a, the and of, leave out numbers or set a maximum length, in which case the slug is cut at the last separator that fits so no word is chopped in half.

How to use the Text to Slug Converter

  1. Type or paste a titleEnter the headline, product name or page title you plan to publish.
  2. Choose the optionsPick a hyphen or underscore and decide whether stop words should be dropped.
  3. Check the slugThe converted version appears instantly while you type.
  4. Paste it into your CMSCopy the slug into the permalink field of WordPress, Shopify or any other platform.

Text to Slug Converter features

  • Conversion that happens as you type
  • Lowercasing with spaces replaced by a separator
  • Punctuation, symbols and emoji removed
  • Accented letters converted to plain ASCII
  • Repeated separators collapsed and ends trimmed
  • Choice of hyphen or underscore
  • Optional removal of stop words for shorter slugs
  • Optional maximum length that never splits a word

Common uses

  • Writing permalinks for blog posts and landing pages
  • Creating product handles for an online shop
  • Naming files and folders without spaces
  • Making anchor IDs for links within a page
  • Standardising imported titles before a bulk upload

URL slugs explained: how to write clean, readable web addresses

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

A slug is the part of a web address that identifies a specific page, written in readable words, such as /blog/how-to-bake-sourdough-bread. Good slugs help visitors understand where a link leads, make links easier to share, and give search engines a small clue about the page's topic. This guide explains the rules for clean slugs and how to choose good ones.

What a slug converter does

Converting a title into a slug follows a few standard steps:

  1. Convert everything to lowercase.
  2. Replace spaces with hyphens.
  3. Remove or convert special characters such as &, ?, !, quotes and apostrophes.
  4. Convert accented letters to plain ones, such as é to e.
  5. Collapse repeated hyphens and trim hyphens from the ends.

For example, "10 Tips for Better Sleep (2026 Edition)!" becomes 10-tips-for-better-sleep-2026-edition.

Hyphens, not underscores or spaces

Google recommends hyphens to separate words in URLs, because hyphens are treated as word separators while underscores may join words together. Spaces become %20 in addresses, which looks messy and breaks when copied. Hyphens are readable, safe and standard.

Shorter is usually better

Long titles produce long slugs. A slug works best when it captures the topic in a few words:

TitleLong slugBetter slug
The Complete Beginner's Guide to Growing Tomatoes at Homethe-complete-beginners-guide-to-growing-tomatoes-at-homegrowing-tomatoes-at-home
How Much Does It Cost to Paint a House in 2026?how-much-does-it-cost-to-paint-a-house-in-2026house-painting-cost
Our Top 15 Productivity Apps for Small Teamsour-top-15-productivity-apps-for-small-teamsproductivity-apps-small-teams

Removing filler words such as "the", "a", "our" and "complete" keeps slugs focused without losing meaning.

Avoid dates and numbers that will change

Slugs with years or counts, such as best-laptops-2026 or top-15-apps, become outdated when you update the article. Changing the slug later means setting up a redirect and risks losing links. Unless the date is essential, such as a yearly report, leave it out of the slug and put it in the title instead.

Keep slugs permanent

Once a page is published and linked, its slug should rarely change. Changing it breaks bookmarks, shared links and search rankings unless you add a 301 redirect from the old address to the new one. Redirect Generator creates the redirect rules for common servers if you do need to move a page.

Non-English titles

For titles in languages with non-Latin scripts, such as Urdu, Arabic or Chinese, some sites keep the original script in the URL, which modern browsers display correctly, while others transliterate to Latin letters for easier sharing. Both work; choose one approach for the whole site and stick to it.

A worked example: a recipe blog

A food blogger writes a post titled "Grandma's Famous Chicken Biryani Recipe (Step-by-Step with Photos)". The automatic slug is long: grandmas-famous-chicken-biryani-recipe-step-by-step-with-photos. Trimmed to the essentials, chicken-biryani-recipe is short, memorable and describes the page perfectly. If the blog has several biryani recipes, grandmas-chicken-biryani distinguishes this one while staying short.

Slugs beyond websites

The same clean format works for file names, image names, folder names and anchor links within a page. Naming images like red-leather-wallet.jpg instead of IMG_4502.jpg also helps image search and keeps media libraries organised.

Related SEO tools

Once you have a slug, check the page's title and description with SEO Title Generator and Meta Description Generator, and see how it will look in results with SERP Preview.

Slugs for categories and tags

Category and tag pages also have slugs, such as /category/healthy-recipes/. Keep them short and general, because they group many posts and appear in many links. Avoid creating near-duplicate categories like recipe and recipes; they split your content and confuse visitors. Decide on singular or plural once and apply it consistently across the site.

Unique slugs on one site

Two pages cannot share the same address. If you publish two posts with similar titles, the second slug needs a difference that means something, such as chicken-biryani-recipe and vegetable-biryani-recipe, rather than an automatic -2 at the end. Meaningful differences help both visitors and search engines understand which page is which.

Checking a slug before publishing

Read the slug out loud. If it is easy to say and someone could guess what the page is about from it alone, it is a good slug. If it contains leftover words such as "untitled", "copy" or "draft", or a long string of numbers from a content system, fix it before publishing, because changing it afterwards needs a redirect.

Slugs and search results

Search engines often show the page address under the title in results, sometimes as a breadcrumb trail built from the slug. A clear slug such as growing-tomatoes-at-home reassures searchers that the page matches what they want, while a slug full of numbers and codes gives them nothing to go on. That small signal of relevance can make the difference when someone chooses which result to click.

Privacy

Slugs are generated in your browser. Nothing is uploaded, so unpublished titles and drafts stay private.

Frequently asked questions

Is it worth dropping stop words from a slug?

Sometimes. Leaving out filler like a, of and the gives a shorter, tidier slug that reads well in search results, but keep those words when the slug would otherwise lose its meaning, for example in a title such as the-art-of-war.

How are accents and other scripts handled?

Accented Latin letters are swapped for their nearest plain versions, so é becomes e and ö becomes o. Alphabets that have no ASCII counterpart, such as Urdu or Chinese, are dropped, so for a title written only in those you will need to type a romanised version yourself.

Are numbers allowed in a slug?

Yes. Numbers pass through untouched unless you untick the option to keep them, which suits product models, versions and years, as in iphone-15-review. Think twice before putting a year in an evergreen article's slug, though, since it will look dated later.

Should I use hyphens or underscores?

Hyphens are the norm for web addresses, so they are selected by default. Underscores turn up more in file names and certain programming styles, which is why both separators are available for you to choose from.

What happens if I change a published slug?

The old address stops working and every link pointing to it breaks. A permanent 301 redirect from the previous slug to the new one fixes that and passes on most of the old page's ranking, but choosing carefully before publishing saves the trouble.

What is a sensible slug length?

Aim for something you can read at a glance that still says what the page covers. Between three and six meaningful words suits most articles, product pages and landing pages.