Slug Generator
Turn a headline into a readable, stable URL slug.
- Local by default
- No signup
- AI is opt-in
Type a title; the slug updates as you type.
Slug
Changing the slug of a published page breaks inbound links. Keep old URLs working with a redirect rather than editing the slug in place.
A slug is the human-readable part of a URL. This generator turns a headline into a stable, lowercase identifier with your choice of separator, length limit, accent handling and optional support for non-Latin scripts, updating live as you type.
What a slug is for
Compare /blog/10-best-cafe-bakery-spots-sao-paulo with /blog/post?id=4821. The first tells a reader and a search engine what the page is about before it loads. That readability is the main benefit of a slug; the ranking effect is small and indirect, mostly through better click-through and cleaner link sharing.
A slug is also a permanent identifier. Once a URL is published, shared and indexed, changing it breaks every existing link. Treat the slug as part of the page contract, not as a title that can be rewritten freely.
The transformation, step by step
- Normalise: Unicode text is decomposed with NFKD so that an accented letter becomes a base letter plus a combining mark.
- Remove marks: combining marks are dropped, turning café into cafe and São into Sao.
- Lowercase: URLs are compared case-sensitively on most servers, so one case avoids duplicate paths.
- Replace runs: anything that is not a letter or digit collapses into a single separator.
- Trim: leading and trailing separators are removed, and repeated separators are merged.
- Truncate: the result is cut to the maximum length without leaving a trailing separator.
10 Best Café & Bakery Spots in São Paulo (2026 Guide)
→ 10-best-cafe-bakery-spots-in-sao-paulo-2026-guide Accents, apostrophes and punctuation
Removing diacritics is usually safe for Latin text, but it is a lossy translation: the result is a new spelling, not the original word. In languages where accents distinguish letters rather than stress, such as Turkish or Vietnamese, a de-accented slug can read as a different word. If the audience expects the original script, enable “Keep Unicode letters” instead.
Apostrophes and quotes are removed as punctuation, so “Rock 'n' Roll” becomes rock-n-roll. Hyphens inside the input are treated like spaces and collapse into the chosen separator, which is why a title that already contains hyphens does not end up with doubled separators.
Non-Latin scripts and emoji
By default only ASCII letters and digits survive, so a Chinese, Arabic or Cyrillic title produces an empty slug and a warning. That default matches systems that cannot handle percent-encoded paths well. Enabling Unicode support keeps letters and digits from any script, producing readable slugs such as 你好-世界.
Emoji are symbols, not letters, so they are removed even when Unicode support is on. Modern browsers display them in URLs, but many chat clients, link shorteners and analytics tools mangle them. Use words instead of emoji in a permanent address.
If you keep non-Latin characters, test the link in the systems that will carry it: chat previews, email clients, QR codes and analytics dashboards. Percent-encoded fallbacks may still be needed.
Hyphens, underscores and SEO folklore
Google treats hyphens as word separators, so best-coffee-shop reads as three words. Underscores are treated as part of a word, so best_coffee_shop may be read as one token. Hyphens are the safer default for public pages; underscores are common in analytics parameters and internal routes.
Do not stuff keywords into a slug. A short, accurate phrase beats a long list of near-duplicates, and changing a slug later costs more than any keyword gain.
Length, collisions and redirects
Truncation is convenient and dangerous at the same time. Two long titles that share a prefix can collapse to the same slug, and the second page silently overwrites or collides with the first. Always check the truncated result for uniqueness in your own system.
- Keep slugs short enough to read in a search result, often under 60 characters.
- Avoid dates and version numbers in a slug unless the content is genuinely time-bound.
- When a slug must change, keep a permanent redirect from the old path and update internal links.
- Do not reuse an old slug for different content; old links and bookmarks will land on the wrong page.
Frequently asked questions
Why did my CJK title produce an empty slug?
Only ASCII letters and digits are kept by default. Enable “Keep Unicode letters” to keep Chinese, Japanese, Korean, Arabic, Cyrillic and other scripts. Emoji are always removed because they are not letters or digits.
Should I remove accents from a slug?
For Latin-script languages it is usually fine and makes links easier to type and share. For languages where accents change the word, leave them in with Unicode support enabled, or transliterate deliberately instead of stripping marks.
Can I change a published slug later?
Yes, but add a permanent redirect from the old URL and update every internal link. Without that, bookmarks, search results and external links will return a 404.
Does a good slug improve search ranking?
Only marginally. Search engines care mainly about content and links. A clear slug improves click-through and link sharing, which matters indirectly, but keyword stuffing in a slug does not help.
Why are stop words such as “the” and “and” kept?
The generator does not maintain a stop-word list, because correct removal depends on the language and often makes a slug less readable. Short filler words are harmless; remove them by hand if you prefer.
Is my title sent anywhere?
No. The whole transformation runs with string operations in your browser. Nothing is uploaded and the slug is not saved on any server.