Skip to main content
ToolsHub

Slug Generator

Turn page titles into SEO-friendly URL slugs instantly. Handles accents, punctuation, and spacing with customizable separator and case — all in your browser.

Updated

Files never leave your browser

No slug yet

Enter text or a title on the left to generate a URL-friendly slug.

How to use Slug Generator

The Slug Generator converts any text — page titles, article headings, product names — into clean, lowercase, hyphen-separated URL slugs suitable for web addresses and filenames. It strips accented characters via Unicode transliteration, removes punctuation, collapses consecutive spaces, and joins words with hyphens (or any separator you choose). SEO-friendly slugs improve readability, click-through rates, and keyword relevance in URLs. All processing is client-side.

  1. Paste or type your source text (e.g. a page title or blog post heading) into the input field.
  2. The slug preview updates live as you type — review it for accuracy.
  3. Choose a separator: hyphen (-) is the Google-recommended default; underscore (_) or period (.) are available for legacy systems.
  4. Toggle case mode: lowercase (default) or preserve case for case-sensitive routing.
  5. Optionally enable transliteration mode to map non-Latin scripts to their ASCII equivalents.
  6. Copy the generated slug and use it as your URL path, filename, or database identifier.

Your data never leaves your device — 100% private processing.

What makes a good URL slug

Google's URL best practices recommend short, readable slugs that include the primary keyword for the page. Remove stop words (a, the, of, and, in) only if they add no meaning — "how-to-install-python" is better than "how-install-python" because the natural phrasing aids readability. Avoid dates in slugs unless the content is time-sensitive, as dated URLs encourage future pruning. Use hyphens, not underscores: Google treats hyphens as word separators and underscores as joiners, so "web_design" is read as one word "webdesign" but "web-design" is read as two keywords.

Slug transformation examples
Input textGenerated slug
"The Quick Brown Fox"the-quick-brown-fox
"C++ Programming Guide"c-programming-guide
"Ángel García's Café"angel-garcias-cafe
"100% Pure Cotton"100-pure-cotton
"SEO & Content Marketing"seo-content-marketing
"日本語テスト"ri-ben-yu-tesuto (transliterated)

Unicode normalisation and transliteration

Accented characters (é, ü, ñ, ø) are handled by Unicode normalisation: the NFD (Canonical Decomposition) form splits each accented character into a base letter plus a combining diacritic mark; stripping the combining marks leaves the plain ASCII base letter. This converts "Ángel" to "Angel" reliably across all Latin scripts. Non-Latin scripts (Arabic, Chinese, Japanese, Cyrillic) require a transliteration table that maps each character or syllable to a Latin approximation. ICU-based transliteration (used in many CMS platforms) produces consistent results, but romanisation of logographic scripts is inherently approximate.

Worked examples

Title to slug

Inputs: 'Hello World & Café!'

Result: hello-world-cafe

Collapse spaces and symbols

Inputs: '100% Pure Cotton'

Result: 100-pure-cotton

C++ heading

Inputs: 'C++ Programming Guide'

Result: c-programming-guide

Glossary

Slug
A URL-friendly string derived from a human-readable title, using only lowercase letters, numbers, and hyphens.
Transliteration
The process of converting characters from one script to their phonetic equivalent in another script (e.g. Cyrillic to Latin).
Unicode NFD
Canonical Decomposition — a Unicode normalisation form that splits precomposed characters into base letters plus combining marks.
Stop word
A common word (the, a, of, and) often removed from slugs and search indexes to focus on meaningful keywords.
Permalink
A permanent URL for a web resource that is intended never to change — slug quality directly affects permalink longevity.

Related reading

Free · No spam

Get weekly tool tips & updates

New tools, power-user tips, and productivity hacks — delivered free every Friday.

No spam, ever. Unsubscribe with one click.

Related Developer Tools

Explore all Developer Tools.