Skip to content

Slug generator

Clean, lowercase URL slugs from titles, one per line.

Updated

Separator

How to make a URL slug

  1. Type or paste a title. For several, put one on each line.
  2. Choose hyphens or underscores, and whether to keep everything lowercase.
  3. Optionally set a maximum length and remove common words like “the” and “of”.
  4. Copy the slugs. Each line of the result matches the same line of your titles.

What changes, with examples

TitleSlugWhat happened
How to Bake Breadhow-to-bake-breadLowercased, spaces become hyphens
Crème Brûlée & Co.creme-brulee-and-coAccents removed, & spelled out, full stop dropped
Don't Panic: 10 Tips!dont-panic-10-tipsApostrophe removed inside the word, punctuation dropped
Straße in Münchenstrasse-in-munchenß spelled ss, umlaut removed
Привет мирprivet-mirCyrillic transliterated to Latin letters
The Best Way to Bake a Loafbest-way-bake-loafWith “Remove common words” on

Tips for good slugs

  • Use a few words that describe the page; leave out dates if the page will be updated.
  • Separate words with hyphens, as Google recommends, rather than underscores or nothing.
  • Keep it lowercase: some servers treat /Bread and /bread as different pages.
  • Once a page is published, keep its slug. If you must change it, redirect the old URL to the new one.

Sources

Each link was last checked on .

Common uses

  • Naming a new blog post. Paste the post's title to get a short, lowercase slug for the URL field in WordPress, Ghost or your own CMS, with accents and punctuation handled.
  • Bulk URLs for an import. Paste a column of product or article titles, one per line, and copy back a matching column of slugs for a spreadsheet or CSV import.
  • File and anchor names. Make safe names for files, folders or heading anchors from human titles, with underscores if the system needs them and a length limit for long names.

Questions

What is a URL slug?

The readable part of a web address that names one page, like how-to-bake-bread in example.com/blog/how-to-bake-bread. Content systems such as WordPress call it the slug or permalink.

Hyphens or underscores?

Hyphens. Google recommends hyphens rather than underscores to separate words in URLs, because they help people and search engines pick out the words. Underscores are here for systems that require them.

What happens to accents and other alphabets?

Accents are removed (é becomes e), letters like ß, æ and ø are spelled out (ss, ae, o), and Greek and Russian letters are transliterated. Letters from scripts like Chinese or Arabic are kept as they are: they work in URLs and are sent percent-encoded.

Should I remove words like “the” and “and”?

It's a matter of taste. Removing them makes slugs shorter, but can make them harder to read. Short, descriptive slugs help people, and Google, see what a page is about; there's no ranking rule about stop words.

All text tools →