Slug Generator
Convert text to a clean, URL-friendly slug.
The Slug Generator converts any headline or phrase into a URL-friendly slug. It lowercases all letters, replaces spaces with hyphens, removes special characters, and handles accented letters like é, ü, and ñ. Use it for blog post URLs, product handles, CMS entries, or any system that requires clean, human-readable URL segments.
How to use
- Type or paste your title or text into the input field.
- The slug is generated instantly as you type.
- Click the copy button to copy the slug to your clipboard.
Your slug will appear here
When to use
WordPress and CMS post URLs
Every blog post needs a URL slug. Paste your post title and copy the generated slug directly into WordPress, Ghost, Shopify, or any CMS that accepts a permalink slug in the page editor.
API route naming
REST API endpoints follow lowercase-hyphen conventions. Generate a slug from a human-readable resource name to get a consistent, RFC-compliant path segment without manually handling punctuation and accents.
File and folder naming
File systems on Linux and macOS are case-sensitive. Generate a slug from a project name to get a safe, lowercase, space-free filename that works reliably on all operating systems and in CI environments.
Examples
Frequently Asked Questions
What is a URL slug?
A slug is the URL-friendly version of a title. For example, "Hello World!" becomes "hello-world". Slugs use lowercase letters, numbers, and hyphens only.
How are special characters handled?
Accented characters are converted to their ASCII equivalents (é → e, ü → u). Other special characters are removed.
Why use hyphens instead of underscores?
Google treats hyphens as word separators and underscores as word joiners. Hyphens are the SEO-recommended choice for URL slugs.
Can I use this for Shopify or WordPress slugs?
Yes. The output format is compatible with WordPress, Shopify, and most other CMS platforms that use URL slugs.
What happens to numbers in the slug?
Numbers are kept as-is. "Top 10 Tips" becomes "top-10-tips".
What is a URL slug generator?
A URL slug generator — also called a slugify tool — converts a title or phrase into a URL-safe string: lowercase, hyphens instead of spaces, no special characters. Type "URL slug generator" or "slugify text online" into any search engine and you will find this tool.
Why use hyphens instead of underscores in slugs?
Google treats hyphens as word separators: "word-counter" ranks for "word counter" queries. Underscores are treated as word joiners: "word_counter" is indexed as the single token "wordcounter". For SEO, always use hyphens in URL slugs.
What does slugify mean?
Slugify means to convert a string into a URL slug — lowercase, spaces replaced with hyphens, special characters removed. "Slugify" is the verb; the result is a "slug". This tool slugifies text.
Does the slug generator handle accented characters?
Yes. Accented characters are converted to their ASCII equivalents before slugification: é becomes e, ü becomes u, ñ becomes n, ç becomes c. Non-Latin scripts such as Chinese, Arabic, and Cyrillic are removed.