TTKTheTextKit

URL Slug Generator

Type or paste a title, heading or sentence to generate a clean URL slug: lowercase words joined by single hyphens, with accents removed, & written as and, and punctuation turned into word breaks. Options keep letters from other alphabets and set a maximum length. The result is ready to paste into WordPress, Ghost, or any CMS slug field.

Related Tools

[2 suggestions]

Guides for the URL Slug Generator

About the URL Slug Generator

The URL Slug Generator turns a title into lowercase words joined by single hyphens. Accents are removed with Unicode NFD normalization, so "café" becomes "cafe" and "naïve" becomes "naive". Letters that have no accent form are spelled out instead of deleted: "ß" becomes "ss", "ø" becomes "o", "ł" becomes "l" and "æ" becomes "ae". An ampersand becomes "and", apostrophes are dropped without splitting the word ("don't" becomes "dont"), and every other symbol, including dots, underscores, slashes and spaces, separates words, so "snake_case" becomes "snake-case" and "Top 3.5 Tips" becomes "top-3-5-tips". Leading and trailing hyphens are trimmed and repeated hyphens are collapsed. By default only a to z and 0 to 9 are kept; turn on "keep other alphabets" to keep Cyrillic, Greek, Chinese, Arabic and other letters, which are percent-encoded in a link, as Google advises for non-ASCII characters. An optional maximum length cuts the slug at a hyphen so no word is split. Google's URL guidance says to use hyphens, not underscores, to separate words, and notes that URLs are case sensitive, so a lowercase slug avoids two addresses for one page.

Does the generator remove accents and special characters?▾

Yes. Accented characters like é, à and ñ become e, a and n, and letters such as ß, ø, ł and æ are spelled out as ss, o, l and ae instead of being deleted. Apostrophes are dropped, & becomes and, and any other symbol or emoji acts as a word break.

Why are hyphens used instead of underscores?▾

Google's URL guidance says to use hyphens (-) instead of underscores (_) to separate words. Underscores in your title are turned into hyphens here, so "snake_case" becomes "snake-case".

What happens with consecutive spaces or hyphens?▾

Multiple spaces or hyphens are collapsed into a single hyphen, and any leading or trailing hyphens are stripped. You always get a clean, valid slug.

What happens with a title in Russian, Chinese or Arabic?▾

By default only a to z and 0 to 9 are kept, so a title with no Latin letters gives an empty slug and the tool says so. Turn on keep_other_alphabets to keep those letters. In a link they are percent-encoded, and the tool shows that form too.