Slug Generator
Paste a title or text and get a clean, URL-safe slug instantly — nothing sent to a server.
How to generate a URL slug
-
1
Paste your title or text
Drop the title, heading, or text you want a slug for into the box above.
-
2
Choose a separator and case
Pick a hyphen or underscore, and lowercase or UPPERCASE.
-
3
Copy the slug
Click "Copy slug" to grab the URL-safe result.
Example use cases
Blog & article URLs
Turn a post title into a clean, readable URL slug.
CMS & e-commerce pages
Generate consistent slugs for product, category, or landing pages.
File & folder naming
Create safe, consistent file or folder names from a title.
Anchor links & IDs
Build clean HTML id attributes or anchor links from heading text.
Frequently asked questions
What is a URL slug?
A slug is the readable part of a URL that identifies a specific page, like the "best-laravel-tips" in example.com/blog/best-laravel-tips. It's typically lowercase, with words separated by hyphens.
How are special characters and accents handled?
Accented letters are converted to their plain equivalents (é → e), and characters that aren't letters, numbers, or the chosen separator are stripped out.
Should I use hyphens or underscores?
Hyphens are the more common convention and are generally treated as word separators by search engines, so they're a safer default for public URLs.
Is my text sent to a server?
No. The slug is generated entirely in your browser — nothing is transmitted or logged.