Slug Generator

Turn any title into a clean, URL-friendly slug — lowercase, hyphenated, accent-safe.

Runs in your browserUpdated Built and maintained by Leon and Henrik

Type a title and get a clean, URL-ready slug you can copy in one click. Free. No sign-up. Runs in your browser, nothing is uploaded.

Slug Generator

Slug

your-slug-appears-here
Runs in your browser
Nothing is uploaded

Type a title, copy the slug. "How to Merge PDF Files for Free!" becomes how-to-merge-pdf-files-for-free: lowercase, words joined by hyphens, punctuation gone, accents converted, no hyphen at either end and never two in a row. Switch the separator to an underscore or turn off lowercase if your system needs it.

The generator does not decide which words to keep. That part is yours, and it is where a slug goes from valid to good.

What happens to tricky titles

These are real outputs, with the default settings:

TitleSlugWorth knowing
Don't Panic: 10 Tipsdon-t-panic-10-tipsApostrophes become separators
Rock & Roll Caférock-roll-cafe& disappears; é becomes e
50% Off Größe XL Jacken50-off-groesse-xl-jackenGerman ß and ö are spelled out
Smørrebrød in Łódźsmorrebrod-in-lodzø, ł and ó are simplified
3.5 Inch Floppy3-5-inch-floppyThe decimal point becomes a hyphen
C++ vs. C#: Which to Learn?c-vs-c-which-to-learnSymbols that carry meaning vanish
東京 Travel Guide 2026travel-guide-2026Non-Latin characters are removed

The last two rows are the ones to check by eye. When symbols carry the meaning, spell them out yourself in the title first (cpp-vs-csharp), otherwise two different pages can end up with the same slug.

Trimming a slug down to the words that matter

The generator keeps every word. A good slug usually keeps three to five. Take the title "The 7 Best Ways to Remove a Background From Your Photos in 2026":

  • Generated: the-7-best-ways-to-remove-a-background-from-your-photos-in-2026
  • Trimmed: remove-photo-background

What was cut, and why:

  • Articles and filler (the, a, from, your, in) add length without adding meaning.
  • Numbers that will change. "7 ways" becomes wrong the day you add an eighth; a year in the slug makes the page look out of date in 2027, and changing the slug later means a redirect.
  • Superlatives like "best" belong in the title, where you can update them freely.

The trimmed version still contains the phrase people actually search for, and it stays true however often you revise the article.

Rules worth following, and one worth ignoring

  • Hyphens, not underscores. Google's URL guidance recommends hyphens to separate words.
  • Lowercase. Many servers treat /Blog/My-Post and /blog/my-post as different addresses, which invites duplicate pages and broken links. Lowercase everything and the problem never arises.
  • Never change a live slug without a redirect. Old links, bookmarks and search results keep pointing at the old address. If you must change it, set up a permanent (301) redirect.
  • ASCII is a convention, not a requirement. URLs in other scripts work fine; browsers display them readably and send them percent-encoded behind the scenes. Use ASCII when your audience types in Latin letters, and native script when they do not.

Where else a slug-shaped string helps

The same clean format works for file names of downloads and images (no spaces to break links), for anchor IDs on headings, for branch names in Git, and for product handles in shop systems. Once the page has its address, write its title and description with the meta tag generator, and add campaign tracking to shared links with the UTM builder.

Frequently asked questions