Slug Generator
Convert text to URL-friendly slugs instantly
Input
Slug Output
Slug Examples
Input text:
Output slug (hyphen):
What Is a URL Slug?
A slug is the human-readable, URL-friendly part of a web address that identifies a page. For example, in https://example.com/blog/hello-world-this-is-a-blog-post-2024, the slug is hello-world-this-is-a-blog-post-2024. Slugs:
- Use only lowercase letters, digits, and separators (hyphens or underscores)
- Replace spaces and special characters with the separator
- Remove accents and diacritics (e.g.
é→e) - Are concise and descriptive for SEO
How to Use This Tool
Choose a Separator
Select Hyphen (-) for standard web slugs (preferred for SEO). Select Underscore (_) for database column names or file names.
Paste Your Text
Type or paste any text — article titles, headings, product names. Each line is converted to its own slug. The output updates automatically.
Copy or Download
Click Copy to put all slugs on your clipboard, or Download to save as a .txt file.
Frequently Asked Questions
Hyphen or underscore — which should I use?
Google recommends hyphens for URLs because it treats them as word separators, improving keyword recognition. Underscores are treated as word joiners — hello_world is one word to Google. For SEO, use hyphens.
Are accented characters supported?
Yes. Accented characters like é, ü, and ñ are converted to their ASCII equivalents (e, u, n) using Unicode normalisation before slugification.
Can I convert multiple lines at once?
Yes. Each line in the input is treated independently and produces its own slug on a corresponding output line. This is useful for batch-converting a list of article titles.