Slug Generator

Text to slug generator

Turn titles into clean, URL-friendly slugs — lowercase, accent-stripped, hyphen-separated.

▌ Text → slug

What a slug is, and why it matters

A slug is the human-readable part of a URL after the domain — the /text-to-slug-generator in this page's address. Good slugs do real work: they tell both people and search engines what a page is about before they even open it, they look clean when shared, and they're stable links that don't break. This tool lowercases your text, strips accents and punctuation, collapses spaces, and joins the words with the separator you choose.

The rules of a good slug

A few conventions make slugs work well. Keep them lowercase (URLs are case-sensitive on many servers, so mixed case invites broken links), use hyphens rather than underscores between words — search engines treat hyphens as word separators but underscores as joiners — and keep them short and descriptive, trimming filler words like "the" and "a". A slug of three to five meaningful words usually reads best.

Where you'll use them

Slugs show up everywhere you publish: blog post URLs, documentation pages, product links, and the anchor IDs that jump to a heading on a page. Generating them consistently keeps a whole site's URLs tidy and predictable, which matters more than it seems once you have hundreds of pages. For broader text work — changing case, sorting, find-and-replace — the text transformer includes slugify alongside its other transforms.

FAQ

Hyphens or underscores in URLs?
Search engines treat hyphens as word separators, so hyphens are recommended for SEO. Underscores are common in file names.
Does it handle accented characters?
Yes — accents are stripped (é becomes e) so the slug is plain ASCII.

Related tools