URL Slug Generator
Type or paste a title to get a clean slug for its web address. Paste a list, one title per line, to get one slug for each.
Up to 10,000 lines. Nothing you type is sent anywhere.
Options
The words left out: a, an, and, as, at, by, for, from, in, is, of, on, or, the, to, with.
In characters. Long slugs are cut at a separator, so no word is split.
Everything happens on this page, on your device: nothing you type is sent or saved.
Clean, readable web addresses
A slug is the last part of a web address, the words after the final slash, as in /blog/how-to-fix-a-slow-laptop. A good slug is short, lowercase and readable, with no spaces, punctuation or accents that turn into strings of percent signs when the link is copied. This tool makes one from any title, or one for every line of a list.
How to use it
- Type a title, or paste a list with one title per line.
- Choose hyphens or underscores, and whether to leave out short words.
- Set a maximum length if your site has one, or leave it empty.
- Copy the slugs, or download them as a text file with one per line.
The rules it follows
- Lowercase, so the same page never ends up with two addresses that differ only in capitals.
- Accents removed from Latin letters through Unicode decomposition (NFKD): é becomes e, ü becomes u. Letters with nothing to remove are spelled out: ß → ss, æ → ae, œ → oe, ø → o, ł → l, đ and ð → d, þ → th.
- Letters and digits kept; everything else, from spaces to dashes and emoji, becomes one separator, with none at either end. Apostrophes are dropped, so don’t becomes dont.
- Other alphabets kept, such as Greek or Cyrillic. Browsers percent-encode them in the address, so the page shows both lengths.
- Maximum length cuts at a separator. Only a first word longer than the limit is cut inside the word.
Good to know
- Lists keep their lines: a blank line stays blank, so the slugs line up with your titles in a spreadsheet. Lines that give the same slug are pointed out, since two pages can’t share an address.
- The short-word list is English only. Leave the option off for other languages.
- Numbers stay, so a year or a count in a title stays in its slug: The 10 Best Day Trips becomes the-10-best-day-trips.
- German style ae, oe and ue for ä, ö and ü isn’t used; edit those slugs by hand if you prefer it.
- Already published? Changing a slug changes the address, so add a redirect from the old one.
- Encoding a whole link? The URL Encoder percent-encodes any text; this page makes the slug itself. To tidy a long list first, use Remove Duplicate Lines.