Slug generator: turn text into clean URL slugs

Separator
Sample URL

About Slug Generator

This tool turns a title or any piece of text into a URL slug: lower case words joined by a hyphen, with punctuation, accents and extra spaces removed. The slug updates as you type, and a sample address shows how it will look at the end of a link.

Choose the separator (hyphen, underscore or dot), keep or change the case, set a maximum length that is cut on a whole word, remove common stop words, and keep or strip numbers. Transliterate turns accented letters, ß, æ, ø, đ and Cyrillic, Greek and Arabic text into plain Latin letters. The tables are simple and letter by letter, so check names and brand words.

For a batch, turn on One slug per line. Each line gets its own slug and Copy gives you all of them, or full URLs with Copy as URL.

Everything runs in your browser. Your text is not sent anywhere.

How to make a URL slug

  1. Type or paste a title into the left box, or press Load example.
  2. Pick the separator, maximum length and the options you need. The slug on the right updates straight away.
  3. Check the sample address, then press Copy or Copy as URL.

Frequently asked questions

What is a URL slug?

A slug is the readable last part of a web address that names a page, such as how-to-bake-bread in example.com/blog/how-to-bake-bread. A good slug uses lower case letters, numbers and a single separator, and says what the page is about.

Should I use hyphens or underscores?

Hyphens. Search engines treat a hyphen as a space between words, while an underscore joins words into one. Use underscores or dots only when a system you are feeding needs them, such as a file name or an identifier.

How long should a slug be?

Short and specific is best. Many sites keep slugs under 60 characters so the whole address stays readable and does not get cut off in search results. Set Max length and the slug is cut at the last whole word that fits, never in the middle of one.

What are stop words and should I remove them?

Stop words are very common words such as a, the, of and to. Removing them gives shorter slugs, so the-quick-brown-fox becomes quick-brown-fox. It is optional: keep them if they change the meaning, as in to-be-or-not-to-be.

How are accents and other alphabets handled?

With Transliterate on, letters like é, ü and ñ become e, u and n, and ß, æ, ø and đ become ss, ae, o and d. Cyrillic and Greek letters are written in Latin letters, and Arabic is written as consonants with the common vowel letters, because short vowels are not written in Arabic. These are simple letter-by-letter tables, not official romanisation, so check names. Turn Transliterate off to keep the original letters in the slug.

Can I make many slugs at once?

Yes. Turn on One slug per line and paste one title per line. Each line becomes its own slug, blank lines stay blank, and Copy gives you all the slugs. Copy as URL gives you full addresses.

Is my text sent to a server?

No. Everything runs in your browser and your text is never uploaded or stored. Only the option settings are kept in the page address.