331+ free tools. No sign-up. No hidden fees. Explore the toolkit

Text to Slug Generator

A good URL is short, readable, and free of spaces and odd characters — 10-tips-for-better-sleep, not 10%20Tips%20for%20Better%20Sleep!. That readable part is called a slug, and every post, page and product needs one.

Paste any title or phrase and get a clean URL slug instantly — lowercase, hyphenated, accents stripped — ready to paste into your CMS.

A blog title, product name, or any phrase — the slug updates as you type.

Long slugs are cut at the limit — short slugs rank and read better.

Your Slug

Save to Pinterest

How It Works

A slug is made in four steps. First the text is lowercased — URLs are case-sensitive on most servers, and lowercase avoids duplicate-content confusion. Then accented letters are converted to plain ones (é becomes e, ü becomes u, ß becomes ss), because accented characters get percent-encoded into unreadable %XX sequences. Then every run of characters that is not a letter or digit — spaces, punctuation, symbols, emoji — is replaced by a single hyphen. Finally, leading and trailing hyphens are trimmed, and the slug is cut to your maximum length.

Characters with no plain equivalent are dropped: Chinese, Arabic and other non-Latin scripts, emoji, and symbols simply disappear, because there is no safe way to put them in a slug. Styled Unicode letters are different characters too — an Instagram font generator turns plain text into bold, script and other styles. If your title is entirely in such characters, the result will be empty — write the slug by hand in that case, using a romanised version of the title.

Worked Example

"10 Tips for Better Sleep!" becomes 10-tips-for-better-sleep — 24 characters. The exclamation mark disappears, the spaces become hyphens, and the capital letters become lowercase. "Café & Crème Brûlée" becomes cafe-creme-brulee: the accents are stripped and the ampersand becomes a hyphen.

How to Use This Tool

Type or paste your text and the slug appears instantly. Adjust the maximum length if you need a shorter slug, then copy it.

  1. Enter your text. A title, product name or heading — the slug updates live as you type, or click Generate Slug to refresh it.
  2. Set a maximum length. 60 characters is a good default; shorter slugs are easier to share and remember.
  3. Copy the slug. Click Copy Slug, then paste it into your CMS, static-site front matter, or link builder.

The result is always a valid URL path segment: lowercase letters, digits and hyphens only, with no leading or trailing hyphen and no double hyphens.

Tips and Practical Advice

Frequently Asked Questions

What is a URL slug?

The readable part of a URL that identifies a page — in example.com/10-tips-for-better-sleep, the slug is 10-tips-for-better-sleep. Good slugs are short, lowercase, hyphenated and descriptive.

Why are accents removed from slugs?

Accented characters get percent-encoded in URLs (é becomes %C3%A9), which is ugly and hard to share. Converting é to e keeps the slug readable in every browser, email client and chat app.

What happens to emoji and non-Latin scripts?

They are dropped — there is no plain-text equivalent to convert them to. If your title is entirely in another script, write the slug by hand using a romanised version of the title.

How long should a slug be?

Three to six words, under 60 characters, is a good rule. Short slugs are easier to read, share and remember, and search engines show them cleanly in results.

Last updated: