SwiftTools

Text to slug

Turn headlines into clean, URL-friendly slugs — live as you type.

Slug maker
Slug length0

How the text to slug generator works

Type a headline and the slug builds itself live: everything becomes lowercase, accents are stripped (“café” becomes “cafe”), and every run of non-alphanumeric characters turns into a single hyphen. Leading and trailing hyphens are trimmed.

Use the result as the readable tail of a URL — for example, example.com/my-great-blog-post — when publishing articles, products, or documentation pages.

Non-Latin scripts are removed by the ASCII-only rule. If you need slugs in another script, transliterate the title first, then slugify.

Text to slug FAQ

What is a URL slug?

The readable part of a web address that identifies a page — the “my-great-post” in example.com/my-great-post. Slugs help both readers and search engines understand what a page is about.

Why lowercase letters and hyphens?

It is the long-standing web convention: lowercase avoids case-sensitivity surprises on some servers, and hyphens are treated as word separators, unlike underscores.

What happens to accented characters?

They are converted to their plain equivalents — “café” becomes “cafe” — so the slug stays safely ASCII.

What about Chinese, Arabic, or other scripts?

Characters outside a–z and 0–9 are removed by the ASCII rule. For non-Latin titles, transliterate to Latin letters first for the cleanest result.