URL Slug Generator
Turn a title into a clean, safe URL slug.
Hyphens are read as word breaks by search engines; underscores are not.
Leave at 0 for no limit. Truncates on a word boundary.
Everything is processed in this tab. Nothing you paste is sent anywhere.
Every tool runs entirely in your browser. Your files are never uploaded to a server.
A URL slug is the readable part of a web address that identifies a page. A good one is lowercase, uses hyphens between words, contains no accents or punctuation, and stays short enough to read in a search result.
How to use Slug Generator
- Paste your titles. One per line — a whole content plan at once is fine.
- Choose a separator. Hyphens for anything public; underscores only where a system demands them.
- Cap the length if needed. Truncation happens on a word boundary rather than mid-word.
About generating URL slugs
A slug is the most durable thing on a page. Titles get rewritten, layouts get replaced and content gets updated, but the URL is what other people link to, and once it is out in the world changing it costs something. That argues for deciding it deliberately rather than letting a CMS generate one from whatever the heading happened to be at the moment you first saved. The mechanical rules are simple: lowercase, because URLs are case-sensitive after the hostname and mixed-case slugs create two addresses for one page. Hyphens rather than underscores or spaces. No punctuation, since almost all of it either has structural meaning in a URL or has to be percent-encoded into unreadability. Accents folded to ASCII rather than removed, so that café does not become caf. What is less mechanical is length and word choice. A slug is read by people in search results and in shared links, and it is one of the few places where the words are unambiguously about the page rather than about the site. Including the phrase someone would actually search is worth more than including every word of the title, and stripping filler such as "how to" and "the" usually improves both.
Frequently asked questions
Should a slug use hyphens or underscores?
What happens to accented characters?
How long should a slug be?
Should I change a slug after publishing?
Last updated