Cuts at a word boundary. Leave empty for no limit.
How to use the URL Slug Generator
- 1Type a title, or paste several titles with one per line.
- 2Choose a hyphen or underscore as the separator.
- 3Keep Lowercase on for standard slugs, and tick Remove stop words if you want shorter URLs.
- 4Optionally enter a maximum length; the slug is cut at the last whole word that fits.
- 5Press Copy slugs to copy the results.
What is a URL slug?
A slug is the part of a web address that identifies a specific page in plain words, such as perfect-blog-post in example.com/blog/perfect-blog-post. Good slugs are short, lowercase, use only letters, numbers and hyphens, and describe the page content. They are easier to read, share and remember than addresses full of IDs or encoded characters.
Search engines treat hyphens as word separators, which is why hyphens are the usual choice for public URLs. Underscores are common in file names, database keys and some frameworks, so the tool offers both.
How the slug is built
Each line is processed in a fixed order. Accented letters are converted to their plain forms, so é becomes e and ü becomes u, and a few special letters are spelled out, such as ß as ss and æ as ae. An ampersand becomes the word and, and apostrophes are dropped so that what's becomes whats rather than what-s. Every other symbol, space or punctuation mark is treated as a break between words.
The words are then joined with your chosen separator, which means you never get doubled separators or separators at the start or end. If Remove stop words is ticked, the words a, an, the, and, or, of, to, in, on, for, with, at and by are left out, unless the title consists only of stop words. Letters from non-Latin scripts are kept as they are, since modern browsers support them in URLs; if you need them percent-encoded, use the URL encoder.
Examples
10 Tips for Writing the Perfect Blog Post becomes 10-tips-for-writing-the-perfect-blog-post. With a maximum length of 20 it becomes 10-tips-for-writing, because adding the next word would exceed 20 characters. Crème Brûlée: A Simple Recipe & Guide becomes creme-brulee-a-simple-recipe-and-guide, and What's New in Version 2.0? becomes whats-new-in-version-2-0.
With stop words removed, The Art of War and Peace becomes art-war-peace. If a title is in mixed case for a reason, such as a product code, turn off Lowercase; for other naming styles like camelCase or snake_case, try the case converter.
Learn more
Frequently asked questions
Should I use hyphens or underscores in URLs?
Use hyphens for public web pages. Google recommends hyphens to separate words in URLs, and they are the most widely used convention. Underscores are fine for internal identifiers and file names.
How long should a slug be?
There is no strict limit, but shorter is better. Aim for three to six meaningful words that describe the page. A maximum length of around 50 to 60 characters keeps URLs readable in search results and when shared.
Should I remove stop words from slugs?
It is optional. Removing words like the and of makes slugs shorter, but keep them if dropping them changes the meaning or makes the slug hard to read.
Can I convert many titles at once?
Yes. Paste one title per line and you get one slug per line in the same order, ready to copy into a spreadsheet or CMS. Blank lines are skipped. If your list may contain repeats, clean it first with remove duplicate lines.
Should I change the slug of a published page?
Only if you have a good reason. Changing a live URL breaks existing links and bookmarks, so if you do, set up a permanent 301 redirect from the old address to the new one.