URL Slug Generator

Turns a headline into a clean URL slug: lowercase, accents folded to plain ASCII, punctuation removed and spaces collapsed to a single hyphen or underscore. It shows the result as a full URL so you can see the shape of the link before you commit to it.

Live demo · real result from this tool
Separator

Result

10-tips-for-faster-websites-and-better-seo-2026-edition

Processed on your device — nothing is uploaded.

How to use URL Slug Generator

  1. Paste your title or heading.
  2. Pick hyphen or underscore as the separator — hyphen unless something forces otherwise.
  3. Copy the slug, or the full example URL shown beneath it.
  4. Accented Latin characters are transliterated; non-Latin scripts such as Cyrillic, Devanagari or Chinese are removed rather than transliterated, so those titles need a slug written by hand.
  5. Numbers are kept — useful for version numbers and years when you actually want them.
  6. Conversion is instant as you type; nothing is sent to a server.

What gets stripped, and why

Uppercase becomes lowercase, because URLs are case-sensitive after the domain and having /About and /about resolve to different pages is a reliable source of duplicate-content problems. Accented Latin characters are folded to their base letter — café becomes cafe, straße becomes strasse, æ becomes ae — rather than percent-encoded, which would turn a readable slug into %C3%A9 soup. Punctuation, quotation marks and emoji are removed outright, and any run of spaces, hyphens or underscores collapses into one separator.

Hyphens, not underscores

Google has said for years that it treats a hyphen as a word separator and an underscore as a word joiner, so my_blog_post can be read as one token while my-blog-post is three words. Hyphens are also the overwhelming convention, which matters when someone types your URL from memory. The underscore option is here for the cases where a platform or an existing URL scheme forces your hand — not as a coin toss.

How long a slug should be

Short enough to read in a search result and specific enough to be guessable. Three to six meaningful words is a good band. Strip the stop words that carry nothing — a, the, of, how-to — unless removing them makes the slug ambiguous. Dates are usually a mistake: /2024/03/guide ages your article visibly and makes it awkward to refresh the content later without either lying or breaking the URL.

Changing a slug later is not free

A published URL accumulates links, bookmarks and search history. If you must change one, serve a 301 redirect from the old slug to the new one and keep it indefinitely — the ranking signals transfer, but only through the redirect. Getting it right the first time is cheaper than maintaining a redirect table, which is the actual reason to think about the slug before publishing rather than after.

Frequently asked questions

What is a URL slug?
The URL-friendly version of a title. 'Hello World!' becomes 'hello-world'.
Are accented characters handled?
Yes — ñ, é, ü and other accented characters are converted to their ASCII equivalents.
Should slugs be lowercase?
Yes — always use lowercase slugs for consistent, canonical URLs.
Should a URL slug match the page title exactly?
It should match the meaning, not the words. Titles carry punctuation, brand names and clickbait that add nothing to a URL. “The 7 Best Ways to Merge PDFs (2026 Guide)” makes a better slug as merge-pdf-guide — shorter, no year to go stale, and the important words come first.
Do hyphens in URLs hurt SEO?
No — they are the recommended separator. What hurts is the alternatives: spaces become %20, underscores may be read as joining words, and camelCase collides with case-sensitive paths. A hyphenated lowercase slug is the safe default everywhere.
What happens to non-English characters?
Accented Latin letters are folded to their ASCII base. Other scripts are dropped, because there is no single correct romanisation and guessing produces worse URLs than asking. If you publish in a non-Latin script, either write the slug yourself or use the native characters — modern browsers handle them, although they appear percent-encoded when copied.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close