Developer

Slug Generator

Convert any title into a clean URL-friendly slug. Handles accents, Vietnamese, spaces and special characters.

Input text
Separator
Slug
e.g. Hello World! Chào Việt Nam

All processing runs locally in your browser.

A long title card turning into a short neat web address strip joined by small dashes

How to use

  1. Type or paste a title into Input text, for example a blog post title or a product name.
  2. The slug appears at once. Choose Hyphen (-) for web addresses or Underscore (_) for file names, and keep Force lowercase and Remove accents ticked for clean URLs.
  3. Click Copy and paste the slug into your CMS, shop or file name.

What a URL slug is

The slug is the readable last part of a web address: in example.com/blog/how-to-make-cold-brew, the slug is how-to-make-cold-brew. A good slug is short, lowercase, uses hyphens between words and describes the page, which helps readers and search engines understand the link before they click.

WordPress, Shopify, Squarespace and most other platforms create a slug from the title automatically, but often keep every small word or leave accented letters encoded. Making it here lets you choose a clean version before you publish; changing it later breaks existing links unless you add a redirect.

Examples

With Hyphen, Force lowercase and Remove accents ticked:

TitleSlug
Hello World! Chào Việt Namhello-world-chao-viet-nam
Crème Brûlée Recipecreme-brulee-recipe
Don't Stop Me Nowdont-stop-me-now
10% off — today10-off-today

Tips for good slugs

Keep the words that carry the meaning and drop the rest: "The 10 Best Ways to Keep Basil Fresh in 2026" works well as keep-basil-fresh. Avoid dates in evergreen articles, so the address still makes sense when you update the page.

Use hyphens, not underscores, in web addresses: Google recommends hyphens because they clearly mark where one word ends and the next begins. The tool keeps only the letters a–z, digits and the separator, so apostrophes, symbols and emoji are removed. Text in scripts without Latin letters, such as Chinese or Thai, is removed too; write those slugs in Latin letters.

Frequently asked questions

Should a slug use hyphens or underscores?

Hyphens for URLs: Google recommends them because they clearly signal a word boundary, while underscores often keep terms together in programming. Underscores are fine for file names and code.

How long should a slug be?

As short as it can be while still describing the page, often three to five words.

Does it handle Vietnamese and other accented letters?

Yes. With Remove accents ticked, ă, ê, ơ, đ and other accented letters become plain a–z, so Tiếng Việt becomes tieng-viet.

Can I change a slug after the page is published?

You can, but links, bookmarks and search results still point to the old address. Add a 301 redirect from the old URL to the new one so visitors and search engines follow it, and avoid changing slugs that already get traffic.

Is my text uploaded?

No. The slug is made in your browser and nothing you type is sent anywhere.

Found a problem or have an idea? Report a problem

Share

You might also like