Kebab Case Converter
Convert text to kebab-case - perfect for SEO-friendly URLs and CSS classes
What is the Kebab-Case Converter?
The Kebab-Case Converter rewrites phrases as lowercase words joined by hyphens, turning "User Profile Settings" into "user-profile-settings." The name comes from the hyphens resembling meat on a skewer — and the format itself is the internet's favorite way to write multi-word identifiers where spaces are illegal.
You meet kebab-case constantly without noticing: it powers URL slugs, CSS class names, HTML attributes and npm package names. Search engines even treat hyphens as word separators, which is one reason SEO-friendly URLs use them instead of underscores.
How to use
- Enter your phrase, title or list of words into the input box.
- Convert — the tool lowercases everything, strips unsafe characters and joins the words with hyphens.
- Glance at the slug to make sure no meaningful word was dropped with the special characters.
- Copy it into your URL bar, stylesheet, filename or package.json.
Common use cases
- URL slugs — building readable, SEO-friendly addresses like /best-wireless-headphones from article titles.
- CSS architecture — naming classes in BEM-style systems, e.g.
card__title--largestarts from kebab words. - File naming — creating web-safe filenames without spaces, which break in URLs and terminals.
- Package publishing — naming npm or PyPI-style packages, where lowercase hyphenated names are the norm.
Example
Input: Best Wireless Headphones 2026 Output: best-wireless-headphones-2026
FAQs
Why do URLs use hyphens instead of underscores?
Google's crawlers read hyphens as word separators but historically glued underscore-joined words together, so "wireless-headphones" ranks better than "wireless_headphones." Hyphens are also simply easier to read in an address bar.
Can kebab-case be used for variable names in code?
Not in most languages — a hyphen reads as the minus operator, so user-name would parse as subtraction. That is exactly why programmers switch to snake_case or camelCase inside code and keep kebab-case for URLs, CSS and filenames.
What characters get removed during conversion?
Anything that is unsafe or meaningless in a slug: punctuation, quotes, slashes, emoji and symbols. Accented characters are typically transliterated (é → e) so the slug stays ASCII-clean.
Is there a limit to slug length?
The converter itself imposes none, but keep slugs under about 60 characters — longer URLs get truncated in search results and are harder for people to remember or share.