Quick access

Saved in this browser. Sign in to keep it on all your devices.

Slug Generator

Convert text to URL-friendly slugs.

This title has no Latin letters or digits to build a slug from.

Preview URL:

Quick Examples

Version 1.1 Updated What's new

Release notes

  1. v1.1 Latest
    • Added an in-depth guide below the tool, written from what the tool actually does.
    • Fixed slugs for accented letters, custom separators and upper case.

About the Slug Generator

A slug is the readable part of a URL that names a page, such as how-to-make-bread in example.com/blog/how-to-make-bread. Good slugs are short, lowercase, and use hyphens.

How to use it

  1. 1 Type or paste a title.
  2. 2 Pick the separator if you need something other than a hyphen.
  3. 3 Copy the slug into your CMS or code.

Frequently asked questions

Should slugs use hyphens or underscores?

Hyphens. Google treats hyphens as word separators, while underscores join words together.

How long should a slug be?

Keep it short and descriptive, usually 3 to 6 words. Drop filler words like "a", "the", and "and" when they add nothing.

What happens to accents and symbols?

Accented letters are converted to plain letters (é becomes e) and other symbols are removed, so the slug works in every browser.

What happens to your title

The conversion runs in a fixed order, and the example below shows the result:

  • Accented letters lose their marks, so é becomes e. A few letters are spelled out, such as ß to ss and æ to ae.
  • Apostrophes disappear without splitting the word, so don’t becomes dont.
  • Everything else that is not a letter or digit acts as a word break.
  • The chosen separator joins the words, with none at either end.
Crème Brûlée: Don’t Panic & Vue.js!
creme-brulee-dont-panic-vue-js

Hyphens or underscores

Google’s URL guidance recommends hyphens because they separate words, so summer-dress reads as two words. With summer_dress the words can be read as one token. Underscores remain common in file names and some internal systems, which is why the separator can be changed here, and the None option suits things like hashtags.

Editing a generated slug

This tool converts everything you give it and leaves editing to you. A headline such as "10 Easy Ways to Bake the Best Sourdough Bread at Home in 2027" makes a long slug with a year that will age badly. Trimming it by hand to bake-sourdough-bread-at-home gives you a URL that stays accurate when the article is updated.

Titles in other scripts

Only Latin letters and digits are kept, so a title written entirely in Bangla, Arabic or Chinese produces no slug, and the page tells you so. Web addresses can contain those scripts, but browsers percent-encode them when copied, turning one short word into a long string of % codes. Many sites write a transliterated or translated slug by hand for that reason.

Changing a slug after publishing

A slug is part of the page’s address, so changing it creates a new URL. Links from other sites and the existing search listing still point at the old one, and visitors get a 404. If you must rename a live page, set up a permanent 301 redirect from the old path to the new path. If the old slug still describes the page, leave it alone.