Slug Generator
TX-16Paste titles, one per line, and get a URL slug for each: lowercase, accents removed, words joined with a hyphen or underscore, and an optional length limit.
Runs in your browser. Nothing is uploaded.
Titles, one per line
Slugs
How to use it
- Paste one title per line into the input box.
- Choose a hyphen or an underscore as the separator.
- Keep Lowercase ticked, or untick it to keep capitals. Tick the a-z option to drop letters from other scripts.
- Pick a maximum length if your system limits slugs.
- Press Make slugs, then copy the result or download it as a .txt file.
What a slug contains
Each line becomes a slug made of its letters and digits with one separator between words. Accents are removed, so é becomes e, and ß, æ, œ, ø, ł, đ, þ, ð, ı and ħ are replaced by ss, ae, oe, o, l, d, th, d, i and h. Apostrophes are removed without a gap, so Beginner's becomes beginners. Every run of other characters, such as spaces, punctuation and symbols, becomes one separator, and separators at the start and end are dropped. An ampersand is removed, not turned into the word and. Empty lines stay empty so the output lines up with the input.
Other alphabets
Letters and digits from other scripts, such as Cyrillic, Greek or Chinese, are kept as they are, because the tool does not transliterate. Browsers can show such slugs but they are percent-encoded in a URL and look long when copied. Tick Letters a-z and digits only to drop everything outside ASCII; a line that has only such letters then gives an empty slug. Accents on those letters are kept too, so й stays й. Compatibility characters are expanded first: full-width letters and the fi ligature become plain letters, and symbols such as ™ and ² become tm and 2.
Length limit and what it does not check
With a maximum length the slug is cut at the last separator before the limit if the cut would fall inside a word, so you do not get half a word at the end. A single word longer than the limit is cut at the limit. Lengths count characters, not bytes. The tool does not check whether a slug is already used, reserved or too similar to another, so that check is up to your site or CMS.
Questions people ask
How do I turn a title into a URL slug?
Paste the title and press Make slugs. The tool lowercases it, removes accents, and replaces spaces and punctuation with a hyphen. A title like Crème Brûlée: A Guide! becomes creme-brulee-a-guide.
Should I use a hyphen or an underscore in a URL slug?
Both work, and the tool lets you choose. Hyphens are the usual convention for readable URLs, and Google's guidelines for URL structure recommend hyphens over underscores to separate words. Use underscores only if your system or naming rules require them.
How does it handle accents and special letters?
Accents are stripped, so ñ becomes n and ü becomes u. Letters that have no accent to strip use a small table: ø to o, ß to ss, æ to ae, œ to oe, ł to l, đ to d, þ to th, ð to d, ı to i and ħ to h. Other scripts are kept as they are unless you tick the a-z option.
Can I limit the length of the slug?
Yes. Choose 40, 60, 80 or 100 characters. If the limit falls inside a word, the slug is cut back to the last separator, so it ends on a whole word where it can. A single very long word is cut at the limit.
Can I make many slugs at once?
Yes. Put one title per line and every line gets its own slug on the matching line of the output. Empty lines stay empty. That makes it easy to paste a list of titles from a spreadsheet and copy the slugs back.
Does it remove words like the and a from the slug?
No. Every word is kept, so a title such as The Best of Paris gives the-best-of-paris. If you want a shorter slug, edit the title first or choose a maximum length, which cuts at a word boundary.
About this tool
Each line becomes its own slug, and empty lines stay empty so the output lines up with your input. Accents are removed by splitting letters into a base letter and a mark and dropping the mark, so é becomes e. Letters that do not split are swapped by a small table: ø, ß, æ, œ, ł, đ, þ, ð, ı, ħ and their capitals become o, ss, ae, oe, l, d, th, d, i, h. Apostrophes are removed without leaving a gap, so Beginner's becomes beginners. Every run of other characters (spaces, punctuation, symbols such as & or $) becomes one separator, and separators at the start and end are removed, so the ampersand is dropped rather than written as "and". Letters and digits from other scripts, such as Cyrillic, Greek or Chinese, are kept as they are, accents included, unless you tick the a-z option. Compatibility characters are expanded first, so full-width letters and the fi ligature become plain letters, and symbols such as ™ and ² become tm and 2. A length limit cuts at the last separator before the limit when the cut would fall inside a word; a single word longer than the limit is cut at the limit. Slugs are not checked for duplicates or reserved words.