kebab-case Converter and URL Slug Generator
Paste a title or name below and click kebab-case. Words become lowercase and are joined with hyphens, while punctuation is removed, which gives you a clean URL slug or CSS class name.
Examples
How to Write a Great Headline!
how-to-write-a-great-headline
backgroundColor
background-color
what's new in 2026?
whats-new-in-2026
Where kebab-case Is Used
- URL slugs for blog posts and product pages
- CSS class names and custom properties
- HTML attributes such as data-user-id
- File names and Git branch names
- Command-line flags such as --dry-run
Why Hyphens Are Better for URLs
Google's URL guidelines recommend hyphens rather than underscores to separate words in a URL, because hyphens make it easier for people and search engines to spot the individual words. A good slug is short, lowercase and describes the page.
Tips for Better URL Slugs
- Keep the main topic and trim filler words when the meaning stays clear
- Avoid dates in the slug if you plan to update the page later
- Do not change the slug of a published page without adding a redirect
Other Case Converters
Frequently Asked Questions
kebab-case writes words in lowercase and joins them with hyphens, as in user-first-name. The words look like pieces of food on a skewer.
They look the same in most cases. A slug is the readable part of a URL, and kebab-case is the format slugs usually follow.
Not in most programming languages, where a hyphen means subtraction. Use camelCase or snake_case for variables, and keep kebab-case for URLs, CSS and file names.