Text to Slug

Convert any text or title into a clean, URL-friendly slug. Handles spaces, special characters, diacritics, and unicode.

Frequently Asked Questions

A URL slug is the human-readable part of a URL that identifies a specific page. For example, in https://example.com/blog/how-to-build-rest-api, the slug is how-to-build-rest-api. Good slugs are lowercase, use hyphens, and contain only letters, numbers, and separators.

URLs are technically case-sensitive (RFC 3986), so /Blog/Post and /blog/post are different URLs. Lowercase slugs avoid duplicate content issues (for SEO) and user confusion when typing URLs manually. Google recommends lowercase URLs.

Diacritics (accented letters like é, ü, ñ) are normalized using Unicode NFD decomposition, which separates base letters from their accent marks. The accent marks are then stripped, leaving the clean base letter — e.g., café becomes cafe.

How It Works

Type a Title

Type or paste any title, headline, or phrase. The slug updates in real time on every keystroke — no button press needed.

Normalize & Strip

Diacritics are decomposed (NFD) and stripped, & becomes and, non-alphanumeric characters are removed, and optional stop words are filtered out.

Copy the Slug

Paste the result directly into your CMS URL field. Choose hyphen or underscore separator, and toggle lowercase and stop-word removal.

Common Use Cases

Blog & CMS URL Slugs

Convert article titles to SEO-friendly URL slugs for WordPress, Ghost, Webflow, or any CMS. Clean, readable URLs improve both rankings and click-through rates.

File & Directory Names

Generate safe file names for assets, images, and documents. Slugified names avoid spaces and special characters that break file systems and URLs.

Database Keys & Identifiers

Create consistent identifiers for tags, categories, and taxonomy terms from human-readable labels, ensuring uniqueness by removing punctuation.

npm & Package Names

Generate valid lowercase package names for npm, Composer, or PyPI from descriptive titles, following the naming conventions of each registry.

CSS Class & ID Names

Turn a component name or section title into a valid, readable kebab-case class or ID. Consistent naming reduces CSS specificity conflicts.

Internationalized Content

Strip diacritics from accented characters in titles (café → cafe, naïve → naive) to generate ASCII-safe slugs for multilingual sites.