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.

0 characters0 without spaces0 words0 sentences0 lines

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