Skip to content
Menu
Theme

Slug Generator

Turn titles into clean URL slugs with hyphens or underscores, accents removed and an optional length limit. Free, and it runs in your browser.

TextRuns in your browser
One title per line. Each line becomes one slug.
Leave empty for no limit.

What is a slug generator?

A slug is the readable part at the end of a web address. In example.com/blog/how-to-bake-bread, the slug is how-to-bake-bread. Good slugs are short, use only plain letters, digits and one kind of separator, and tell a person what the page is about before they click.

A slug generator builds that slug from a title for you. It removes accents, drops punctuation, turns spaces and symbols into a single separator, and makes everything lower case. “Café Menu: Summer 2026!” becomes cafe-menu-summer-2026. Vietnamese titles work too, including the letter “đ”, which becomes a plain “d”, so “Tiêu đề bài viết: Hướng dẫn 2026!” becomes tieu-de-bai-viet-huong-dan-2026.

You can paste many titles at once, one per line, and get one slug per line back. That is useful when you are setting up a batch of blog posts, product pages or file names.

Everything runs in your browser. The titles you paste are not sent anywhere.

How to use the slug generator

  1. Paste one or more titles into Your text, one title per line. A couple of sample titles are there at first.
  2. Choose the separator: a hyphen - or an underscore _. Hyphens are the usual choice for web addresses.
  3. Tick Keep capitals if you want to keep upper case letters as they are. Leave it off for all lower case, which most sites use.
  4. Type a number in Max length if your system limits slug length. Leave it empty for no limit.
  5. Read the slugs in the Result box. Each line matches the title on the same line above.
  6. Press Copy result to copy all the slugs.

FAQ

Should I use hyphens or underscores?

Hyphens, in most cases. Search engines read a hyphen as a space between words, while an underscore can join two words into one. Underscores are more common in file names and code than in web addresses.

What happens to accents and special letters?

Accent marks are removed and the base letter is kept, so “é” becomes “e” and “ữ” becomes “u”. The Vietnamese “đ” and “Đ” become “d” and “D”. Characters that are not letters or digits, such as emoji, punctuation and symbols, are turned into the separator, and several in a row become one separator.

How does the length limit cut a slug?

The tool cuts at the last separator that fits inside the limit, so it never chops a word in half when it can avoid it. If the first word alone is longer than the limit, it is cut at exactly the limit. A slug never ends with a separator.

Why is one of my lines empty in the result?

An empty line in your text stays empty. A line made only of symbols or emoji also gives an empty slug, because nothing in it can be kept.

Can I change a slug after a page is published?

You can, but the old address will stop working unless your site redirects it to the new one. It is better to pick a good slug before publishing.

Is anything I type stored or sent?

No. The slugs are made inside the page on your own device. Nothing is uploaded and nothing is kept after you close the tab.

Related tools