URL Slug Generator

Convert any title or phrase into a clean, SEO-friendly URL slug — accents normalized, special characters removed. Runs entirely in your browser.

Separator:
how-to-build-a-rest-api-with-node-js-and-typescript-2026-guide

Example URL

https://example.com/blog/how-to-build-a-rest-api-with-node-js-and-typescript-2026-guide

What makes a good URL slug?

  • Lowercase — avoids case-sensitivity issues on Linux servers and is the universal web convention.
  • Hyphens as separators — search engines treat hyphens as word boundaries; underscores connect words.
  • Short and descriptive — keep slugs under 60 characters when possible. Shorter slugs are easier to share and read in search results.
  • ASCII only — non-ASCII characters get percent-encoded in URLs, making them unreadable. This generator normalizes accents to their base ASCII letters.

Frequently Asked Questions

What is a URL slug?+

A URL slug is the part of a URL that identifies a specific page in a human-readable way. For example, in https://example.com/blog/how-to-build-an-api, the slug is "how-to-build-an-api". Good slugs are lowercase, use hyphens instead of spaces, contain only alphanumeric characters and hyphens, and accurately reflect the page title.

Why use hyphens instead of underscores?+

Google treats hyphens as word separators and underscores as connectors. "rest-api" is indexed as two words "rest" and "api", while "rest_api" is indexed as one token "rest_api". For SEO, hyphens are strongly preferred in URL slugs — they have been the recommendation since a 2009 Google blog post by Matt Cutts.

What happens to accented characters?+

Accented letters (é, ñ, ü, etc.) are decomposed into their base letter plus a combining accent mark, and the accent mark is then removed. So "café" becomes "cafe", "naïve" becomes "naive", and "München" becomes "Munchen". This produces clean ASCII slugs compatible with all web servers and CDNs.

Should I include stop words like "the", "a", "and"?+

For shorter, cleaner slugs, removing common stop words is a popular practice — "how-to-build-a-rest-api" becomes "how-to-build-rest-api". However, this tool preserves all words by default so you can remove any stop words you want manually, since the "right" set varies by context and language.

How to use

  • Type or paste a title — the slug updates instantly.
  • Choose hyphen (recommended for SEO) or underscore as the word separator.
  • Toggle lowercase to preserve the original case if needed.
  • Copy the result with the Copy button.