URL Slug Generator

Turn titles into clean, SEO-friendly slugs. Removes accents, converts spaces to hyphens and strips characters that break URLs.

Slug Generator

The URL nobody clicks is the URL nobody sees

URLs with odd characters, encoded accents (%C3%A7) or words glued together without a separator hurt both user experience and SEO. A clean URL like /installment-calculator gives immediate context, both to Google and to anyone about to share the link.

This tool builds the slug straight from the title, removing accents, converting spaces to hyphens and stripping special characters. The result is a URL ready to use in any CMS: WordPress, Webflow, Shopify or custom code.

Hyphens vs underscores: why Google prefers hyphens

In 2009, Matt Cutts, then head of Google's web spam team, confirmed in a video that hyphens are treated as word separators, while underscores join words together. That means "seo-guide" is indexed as two words, but "seo_guide" is indexed as a single token.

For searches like "seo guide", the hyphenated URL tends to rank better because the individual words are recognized. The recommendation still holds in Google Search Central today: use hyphens in URL slugs.

Short, descriptive slugs: what to keep and what to cut

An ideal slug has between 3 and 5 relevant keywords, with no unnecessary articles, prepositions or conjunctions. "how-to-calculate-compound-interest" is better than "how-you-can-calculate-your-own-compound-interest-in-a-simple-way". Google truncates long URLs in snippets, and users cannot remember or type them.

Exceptions: in e-commerce, product slugs sometimes need to include model, color or size to tell variations apart. In that case, use the structure /category/product/variation to keep the hierarchy clear.

Slugs in WordPress, Webflow and Shopify

Most CMSs generate slugs automatically from the title, but the logic for removing accents and special characters varies. WordPress uses a function called sanitize_title() whose behavior differs depending on the configured locale. Webflow generates slugs in English by default and may not remove accents correctly.

Using this tool to pre-generate the slug and paste it manually keeps things consistent across projects and avoids problematic slugs produced automatically by systems that do not handle accented characters well.

Frequently asked questions

What is a URL slug?

A slug is the human-friendly part of a URL that identifies a specific page, usually derived from the title. For example, the title 'How to Build a Website in 2025' becomes the slug 'how-to-build-a-website-in-2025'. Slugs should contain only lowercase letters, numbers and hyphens.

Why use hyphens and not underscores in URLs?

Google treats hyphens as word separators but underscores as connectors. So 'my-product' is read as two words ('my' and 'product'), while 'my_product' is read as a single word 'myproduct'. For SEO, hyphens are always preferable in URLs.

What is the ideal slug length?

Keep slugs under 75 characters. Very long URLs get truncated in search results and are hard to share. Include only the most important keywords from the title and avoid stop words (articles, prepositions) when possible.

Do slugs affect SEO?

Yes. The URL is a light but consistent ranking factor. Descriptive slugs with relevant keywords help Google understand the page content before it even indexes it. They also help users understand where a link leads before clicking.

Can I change the slug of a page that is already indexed?

You can, but carefully. Changing the slug of an indexed page creates a new URL, and the old one starts returning 404. To keep existing traffic and links, set up a 301 redirect from the old URL to the new one. Without it, you lose the page's entire SEO history.