Slug Generator
Type a title and get a clean, URL-safe slug back instantly, with your choice of separator and accent handling.
Overview
A slug is the URL-safe version of a title — lowercase, no punctuation, words joined by a separator — used in blog post URLs, file names, and CMS routes. Getting it right by hand means remembering to strip punctuation, collapse repeated separators, and decide what to do with accented characters; this tool does all of that as you type.
Examples
A blog post title
My Blog Post Title!
my-blog-post-title
How It Works
- Type or paste a title into the box.
- Choose a separator (hyphen or underscore) and whether to strip accents.
- Copy the generated slug, updated live as you type.
FAQ
No. Slug generation happens entirely in your browser using JavaScript — nothing you type is transmitted anywhere.
With "Strip accents" enabled (the default), they're converted to their closest plain-ASCII equivalent (é → e). Disable it to keep them as-is, though most URL routers expect ASCII-only slugs.
Hyphens are the more common convention and are treated as word separators by search engines, while underscores can be treated as part of a single word. Use underscores only if your platform specifically expects them.
Yes — consecutive separators are collapsed into one, and any leading or trailing separator is removed.