Slug Generator

Paste one title per line and get one slug per line back, ready for a URL, a file name or a CMS field.

How it works

A slug is the readable part of a URL, like crème-brûlée-recipe becoming creme-brulee-recipe. The generator lowers the case, takes the accents off Latin letters, spells out the letters that have no accent to drop (ß becomes ss, æ becomes ae, ø becomes o, œ becomes oe, ł becomes l, đ becomes d, þ becomes th), and turns & into "and".

Apostrophes are removed rather than treated as gaps, so "Don’t Stop" becomes dont-stop, not don-t-stop. Every other run of punctuation or spaces becomes one separator, and separators at the start or end are dropped.

Letters from scripts with no Latin spelling, such as Japanese, Chinese or Cyrillic, are kept as they are. Browsers and search engines handle them in URLs. Everything runs on this page.

How to use it

  1. 1 Paste your titles into the Titles box, one per line.
  2. 2 Pick a Separator: Hyphen, Underscore or Dot. Turn on Keep capitals if you do not want lower case.
  3. 3 Set a Max length if your CMS has one, or leave it blank for no limit.
  4. 4 Copy the Slugs, or download them as a .txt file.

Good to know

  • Hyphens are the usual choice for URLs. Google reads a hyphen as a space between words, but not an underscore.
  • A length limit cuts at a word boundary, so you never get half a word at the end.
  • Blank lines are skipped, so the output has one slug for each real title.
  • Short slugs age better. Dropping dates and words like "the" from a title often gives a cleaner URL.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

From "Crème Brûlée: 10 Tips & Tricks!" to a slug, step by step

A slug has one job: name a page in a way that survives being typed, shared, pasted into a chat and read aloud. That rules out spaces, which become %20, most punctuation, which either means something in a URL or gets encoded, and mixed case, because some servers treat /Recipe and /recipe as different pages. What is left is lower-case letters, digits and one separator.

Here is the title "Crème Brûlée: 10 Tips & Tricks!" going through the generator. First, letters that are their own letter rather than an accented one are spelled out; there are none here. Then the text is split into base letters and accents with Unicode normalisation, and the accents on Latin letters are thrown away, so è and û become e and u. The ampersand becomes the word and. Apostrophes would be removed at this point. The text is lowered: creme brulee: 10 tips and tricks!.

Next, every run of characters that is not a letter or digit becomes a single gap: the colon and space after brulee are one gap, the exclamation mark at the end is dropped. The words are joined with the separator, which gives creme-brulee-10-tips-and-tricks. Type the title above and you will see the same. With a Max length of 20 the slug is cut back to the last whole word that fits: creme-brulee-10-tips, which is exactly 20 characters.

The letters with no accent to strip need a table, because normalisation cannot take them apart. The German ß becomes ss, æ becomes ae, ø becomes o, œ becomes oe, the Polish ł becomes l, đ and ð become d, and þ becomes th. So "L’Œuvre de Łódź" becomes loeuvre-de-lodz. These are the common ones in European languages. A Vietnamese or Turkish title is handled through its accents, which covers most of it, but a rarer letter outside the table is kept as it is rather than guessed at.

Accents are stripped only from Latin letters, and that is a deliberate limit. In Japanese the small mark on ガ is part of the letter: removing it would turn it into カ, a different sound. In Cyrillic, й is not и. So non-Latin text keeps its own letters, and 日本語 ガイド becomes 日本語-ガイド. Modern browsers and search engines handle such URLs well. If your system only accepts ASCII, you will need a proper transliteration for that language, which is a different and much larger job than making a slug.

Frequently asked questions

What is a URL slug?

The part of a web address that names the page, after the domain and any folders. In example.com/blog/creme-brulee-recipe, the slug is creme-brulee-recipe. A good slug is short, lower case and readable.

Why hyphens and not underscores?

Search engines treat a hyphen as a word break, so creme-brulee reads as two words. An underscore joins them into one. Underscores are fine for file names and database keys; pick Underscore for those.

What happens to Chinese, Japanese or Russian titles?

Their letters stay. 日本語 ガイド becomes 日本語-ガイド. There is no single agreed way to spell those scripts in Latin letters, so the tool does not guess. Browsers show them as written and send them percent-encoded.

Why is "don’t" turned into "dont"?

Because splitting on the apostrophe would give don-t, which reads worse. Both straight and curly apostrophes are removed.

Is what I paste sent anywhere?

No. The slugs are made by JavaScript on this page. Nothing is uploaded or stored.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.