Text to Slug Converter

Convert text to URL-friendly slugs with options for separator style, lowercase toggle and special character stripping

URL-friendly slug:

(empty)

This tool converts text into URL-friendly slugs suitable for web addresses and file names.

How Text Becomes a URL Slug

Conversion process: 1) Convert to lowercase. 2) Replace spaces with hyphens. 3) Remove or replace punctuation (apostrophes removed; ampersands → 'and' or removed). 4) Decode accented characters to ASCII (café → cafe). 5) Optionally remove stop words ('the', 'a'). 6) Trim to a reasonable length. The result is a clean, lowercase, hyphen-separated string that's URL-safe and readable.

Different from slug-generator: text-to-slug emphasises the algorithmic conversion (any text in, slug out). Slug-generator might offer more configuration. Both produce the same fundamental output - a URL-friendly string. Used in CMS systems, blogging platforms, e-commerce category URLs, and personal blog post URLs.

Conversion Examples

Input TextOutput Slug
Hello World!hello-world
My First Blog Post (2024)my-first-blog-post-2024
Café & Croissantscafe-croissants
What's New?whats-new
Spaces, Commas, and Periods.spaces-commas-and-periods
MULTIPLE SPACESmultiple-spaces
100% Organic Coffee100-organic-coffee
Émile Zola's Germinalemile-zolas-germinal

Frequently Asked Questions

Are accents kept in slugs?

Usually decoded to ASCII for compatibility. café → cafe, naïve → naive, résumé → resume. Some systems support Unicode slugs (café stays café in the URL) but ASCII is universally compatible. Older systems and many programming frameworks default to ASCII slugs.

What about uppercase characters?

Almost always converted to lowercase. URLs are technically case-sensitive, but search engines and users expect lowercase. Mixed-case slugs work but break user expectations and SEO best practice. Stick to lowercase always.