Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
A URL slug is the part of a web address that identifies a specific page — readable, lowercase, and free of the spaces and punctuation a raw title contains. This tool converts any title or phrase into a clean slug: lowercasing it, stripping accents and special characters, and replacing spaces with hyphens (or underscores, if you prefer).
It also supports a maximum length, which matters for very long titles — instead of cutting a slug off mid-word, it backs up to the last complete word that fits, so the result always reads cleanly.
How it works
Paste or type your title, choose a separator (hyphen or underscore — hyphens are the SEO-standard choice Google recommends), and optionally set a maximum length. The tool lowercases the text, transliterates accented characters to their plain ASCII equivalents, removes anything that isn't a letter, number or separator, and collapses repeated separators into one.
- Paste or type your title or phrase.
- Choose a separator and, optionally, a maximum length.
- Copy the generated slug, or save it to download as a PDF.
Examples
A blog post title
"How to Bake Sourdough Bread" becomes "how-to-bake-sourdough-bread" — lowercase, hyphenated, and ready to drop straight into a URL.
A title with accents and punctuation
"Café & Résumé: 100% Free!" becomes "cafe-resume-100-free" — accented characters are transliterated to plain ASCII and punctuation is stripped entirely, rather than being dropped in a way that leaves double hyphens.
Who should use it
- Turning a blog post or article title into a clean URL.
- Generating a consistent slug format across a large content site.
- Converting a product name into an e-commerce product-page URL.
- Sanitizing user-submitted titles before using them in a URL.
Industry applications
- SEO and content marketing
- Web development and CMS platforms
- E-commerce product catalogs
- Publishing and blogging platforms
Advantages
- Correctly transliterates accented characters instead of just deleting them.
- Word-safe truncation avoids ever ending a slug mid-word.
- Supports both hyphen and underscore separators.
Limitations
- Doesn't check whether the resulting slug is already in use on your own site.
- ASCII transliteration is a best-effort mapping and may not perfectly suit every language.
- Doesn't automatically remove common stop words (like "the" or "a") to shorten slugs.
Common mistakes to avoid
- Using the raw page title (with spaces, capital letters and punctuation) directly as a URL instead of a proper slug.
- Mixing hyphens and underscores across a site's URLs instead of picking one convention.
- Letting a slug run so long it gets truncated awkwardly by a CMS instead of setting a sensible length upfront.
- Changing a page's slug after it's already indexed without setting up a redirect from the old URL.
Best practices
- Keep slugs short and descriptive — roughly 3-5 meaningful words is usually enough for both readability and SEO.
- Use hyphens as the word separator, matching Google's stated preference over underscores.
- Avoid changing a published page's slug once it's indexed; if you must, set up a 301 redirect from the old URL.
- Leave stop words out for very long titles if you need to shorten the slug, rather than truncating mid-thought.
Tips
- If two different titles would generate the same slug, add a distinguishing word or a short unique suffix before publishing.
- Set a maximum length matching your CMS or platform's URL conventions so you never have to manually trim a slug later.