Slug Generator
Turn any title into a clean, SEO-friendly URL slug. Choose hyphen or underscore separators, strip accents, limit length, and copy the result instantly.
Title
—
What is a URL slug generator?
What this tool does
This tool turns any page title or headline into a clean, SEO-friendly URL slug. Choose hyphen or underscore separators, strip accents, enforce lowercase, and set an optional max length. The slug updates live as you type — copy it into your CMS, static site generator, or route config with one click.
Why you need it
Readable URLs help users and search engines understand page content before they click. Slugs must be lowercase, ASCII-safe, free of spaces and special characters, and stable over time. Hand-editing titles into slugs is slow and inconsistent — especially with accents, punctuation, or long headlines. A generator applies the same rules every time so your permalink structure stays predictable across hundreds of posts.
Slug quality also affects how links look when shared. A path like /blog/10-tips-for-better-seo-in-2026 tells readers what to expect; a string of random IDs does not. Many CMS platforms auto-generate slugs from titles but apply their own rules — previewing here first lets you match your site’s hyphen style, length limits, and accent handling before you publish. That is especially useful when migrating content from WordPress, Notion, or a spreadsheet where titles were never normalized for URLs.
How to use it
- Paste your page or post title into the Title field.
- Pick a separator (hyphen or underscore) and optional max length.
- Toggle accent stripping and lowercase as needed.
- Click Copy slug and paste into your CMS permalink field or route definition.
Practical examples
- Turn
10 Tips for Better SEO in 2026!into10-tips-for-better-seo-in-2026. - Generate a truncated slug for a long product name while keeping word boundaries intact.
- Convert
Café & Brunch — Münchentocafe-and-brunch-munchenwith accents stripped. - Batch-check slug options before publishing a docs section with consistent hyphen style.
- Preview a slug for a duplicate title before saving — append
-2or a date suffix manually if your CMS warns about collisions.
How it works
The generator normalizes Unicode text: optional accent stripping transliterates characters like é → e. Input is lowercased when that option is on, then non-alphanumeric characters become word separators. Consecutive separators collapse to a single hyphen or underscore; leading and trailing separators are trimmed. Max length cuts at the last full word before the limit so slugs do not end mid-token. All logic runs client-side — your titles never leave the browser.
Ampersands, em dashes, and parentheses typically become separator tokens rather than disappearing silently — so Café & Brunch yields distinct words instead of a glued-together string. Numbers and short acronyms are kept as-is when they are alphanumeric, which preserves slugs like 10-tips-for-seo or api-v2-release. The max-length option walks backward to the previous separator boundary so you never get a truncated word such as understandin at the end of a path.
Common mistakes
- Using underscores when hyphens are the SEO convention for public URLs.
- Changing slugs after publish without redirects — broken backlinks and 404s follow.
- Leaving stop words only when they carry meaning; short slugs are fine but should stay descriptive.
- Forgetting to strip accents for systems that only accept ASCII in URL paths.
- Auto-generating slugs from draft titles that still say “Untitled” or “Copy of…” — finalize the headline first, then generate the permalink.
FAQ
What is a URL slug?
The readable part of a URL path, like /blog/my-post-title. Clean slugs help users and search engines understand the page.
Should I use hyphens or underscores?
Hyphens are the usual SEO recommendation. Underscores are treated more like word joiners by some search engines.
Are accents removed?
Yes when “Strip accents” is on — café becomes cafe so URLs stay ASCII-friendly.
What does max length do?
When set above zero, the slug truncates at a word boundary before the limit so paths stay readable instead of cutting mid-word.
Is my title sent to a server?
No. Slug generation runs entirely in your browser.