Slug Generator
Convert text into a URL-friendly slug.
Options
What is a slug?
A slug is the URL-friendly version of a title or string: lowercase, with spaces and special
characters replaced by hyphens (or underscores), and accented characters normalized to their
plain ASCII equivalent. Slugs are what you see in blog post URLs, CMS permalinks, and product
pages, e.g. "My First Post!" becomes my-first-post.
How to use this tool
Enter a title or string, optionally check "Use underscores instead of hyphens" if your platform prefers that separator, and click Generate Slug. Copy the result with the clipboard icon and use it directly in your URL or CMS.
Common use cases
- Turning a blog post title into a clean permalink for WordPress, a static site generator, or a custom CMS.
- Generating SEO-friendly URLs for product pages in an e-commerce catalog.
- Removing accented characters and punctuation from a filename before uploading it.
- Creating a consistent, URL-safe ID from user-submitted text like a category or tag name.
Frequently asked questions
What happens to accented characters like é or ñ?
They're normalized to their closest plain ASCII equivalent, so "café" becomes cafe. This keeps slugs readable and avoids URL-encoding issues that non-ASCII characters can cause in some systems.
Why use hyphens instead of underscores?
Google has historically treated hyphens as word separators in URLs but not underscores, meaning my-post-title is read as three words while my_post_title may be read as one. Hyphens are the more common convention for SEO-friendly URLs, though this tool supports both.
Will this remove all punctuation?
Yes. Anything that isn't a letter or number is replaced with your chosen separator, and repeated or leading/trailing separators are cleaned up automatically.