Slug Generator

Turn any title or phrase into a clean, URL-friendly slug. Choose hyphens or underscores, keep or drop lowercase, and copy the result.

Clean, readable URLs from any title

Type a headline, product name or phrase and this generator produces the URL slug for it: lowercase letters and numbers joined by your choice of separator, with punctuation, accents and extra spaces handled automatically. It mirrors the rules WordPress and most other content systems use, so the slug you copy here is the slug your page will actually get.

Where slugs matter

  • Blog posts and articles: a slug with your main keyword supports the page title in search results.
  • Product pages: product-name slugs keep store URLs tidy and shareable.
  • Documentation and help centers: predictable slugs make pages easy to link and remember.

How this slug generator works

The conversion happens in your browser in a few clear stages. First, the text is normalized so accented letters are split into a base letter plus a separate accent mark. The tool then removes those accent marks, which is why a word with an accent ends up as plain, URL safe letters instead of percent encoded characters. Next, every run of characters that is not a letter or a number, including spaces, punctuation, symbols and emoji, is replaced with a single separator. If two separators would land next to each other, they are collapsed into one, and any separator at the very start or end is trimmed away. Finally, if lowercase is enabled, the whole result is folded to lowercase. Nothing is sent to a server, so you can safely test working titles, unreleased product names and draft headlines.

A worked example, step by step

Suppose your draft title is Cafe Review: 10 Best Espresso Machines Under 300 Dollars for 2026. With hyphens and lowercase selected, the accent is stripped from the first word, the colon and the exclamation style punctuation disappear, and each gap becomes one hyphen. The result is cafe-review-10-best-espresso-machines-under-300-dollars-for-2026, which is 59 characters long. That is clear, but a little long for sharing. A tighter edit before you generate, such as Best Espresso Machines Under 300 Dollars, gives best-espresso-machines-under-300-dollars at 42 characters, keeping the keyword, the price point and the benefit while dropping the year, which you can update in the article without changing the URL later. Try both versions in the tool and compare length before you publish.

Practical tips for better slugs

  • Put the main keyword early: the first three to five words carry the most weight for readers scanning search results, browser tabs and shared links, so lead with the topic rather than a series name or episode number.
  • Aim for three to six words: that range is long enough to describe the page and short enough to stay readable when the link is pasted into social posts, emails and chat messages without wrapping or truncation.
  • Match the slug to the page promise: if the title changes during editing, regenerate the slug from the final title so the URL, the heading and the content all describe the same thing.
  • Keep a consistent pattern across a section: if product pages use brand plus model, or guides use topic plus format, use the same pattern every time so visitors can predict URLs and find related pages by editing the address bar.
  • Check length with a counter: paste a long slug into the Word Counter or Character Counter if you need an exact character count for a CMS field with a strict limit.

Common slug mistakes to avoid

  • Changing a live slug without a redirect: every bookmark, backlink and search listing still points at the old address, so an unredirected change creates a 404 page and loses the traffic you already earned.
  • Stuffing in every keyword variant: a slug that repeats the same idea three ways looks spammy to readers and adds length with no benefit. Pick the clearest phrasing once and stop.
  • Including dates, prices or stock numbers that will change: a slug that says 2025, a launch price, or a temporary discount ages badly. Keep changeable details in the page body, not in the permanent address.
  • Leaving in stop words until the slug balloons: words such as a, and, the and for are harmless in short slugs, but in a long title they waste characters. Generate first, then trim them manually if the result feels bloated.
  • Mixing separators and case in one site: using hyphens on one page, underscores on the next and capitals on a third confuses visitors and can create duplicate looking URLs on case sensitive servers. Set one house style and stick to it.

Frequently asked questions

What is a URL slug?

A slug is the readable part at the end of a URL, such as the "how-to-bake-bread" in example.com/blog/how-to-bake-bread. Slugs identify a page in words people and search engines can understand, instead of numbers or random IDs.

What makes a good slug?

Short, descriptive and keyword-rich, in lowercase, with words separated by hyphens. Leave out filler words like "a" and "the" when the slug gets long, avoid dates unless the content is time-specific, and never change a slug after publishing without setting up a redirect.

Hyphens or underscores?

Hyphens. Google treats hyphens as word separators in URLs, while underscores are treated as joiners, so "fresh-bread-recipe" reads as three words and "fresh_bread_recipe" reads as one long word. This tool offers underscores only for systems that require them.

What happens to accents and special characters?

Accents are converted to their plain letter (é becomes e), and anything that is not a letter or digit becomes a separator. That keeps slugs safe in every browser, server and CMS, including WordPress, which applies the same rules to post titles automatically.