Slug Generator

URL-friendly slugs from any text.

Open tool

Overview

Turn any title, sentence, or piece of text into a URL-friendly slug — lowercase letters, digits, and hyphens, with everything else stripped or transliterated. "My First Blog Post!" becomes "my-first-blog-post". Slugs are the human-readable part of a URL between the domain and the query string.

Bloggers generating permalinks, e-commerce teams making product URLs, CMS users naming pages, and developers building user-input-to-URL flows all need a slug generator. A good slug improves SEO, makes URLs easier to share, and avoids encoding gotchas with non-ASCII characters.

How it works

The generator lowercases the input, transliterates accented characters to their ASCII equivalents (é → e, ñ → n), removes punctuation and symbols, collapses runs of whitespace and punctuation into single hyphens, and strips leading/trailing hyphens. Optional settings include enforcing a maximum length (truncating cleanly on a word boundary), preserving certain characters, and choosing the separator (hyphen, underscore).

Examples

Input:  My First Blog Post!
Output: my-first-blog-post
Input:  10 Reasons to Love Café Culture
Output: 10-reasons-to-love-cafe-culture
Input:  Hello, 世界
Output: hello-shi-jie    (with Chinese transliteration)
Output: hello             (with non-ASCII stripped)

FAQ

Why hyphens instead of underscores?

Search engines treat hyphens as word separators in URLs but don't always split on underscores. Google's own guidance recommends hyphens for readable URLs.

Should I trim long slugs?

Yes. Aim for under about 60 characters so the URL is shareable and readable. The tool can truncate on a word boundary so you don't end with a half-word.

What happens to accented and non-Latin characters?

By default they're transliterated to ASCII so the slug stays URL-safe. Some configurations strip them entirely; others (with IDN support) preserve Unicode and rely on Punycode at the domain layer.

Try Slug Generator

An unhandled error has occurred. Reload ×