Convert4Me – Convert4Me home
Share

kebab-case Converter

Turn phrases into lowercase, hyphen-separated names such as user-first-name. Each line is converted separately.

Characters: 0Words: 0Lines: 0

Case types with examples

Starting text: The Lord of the Rings

  • kebab-case

    Words are lowercase and joined with hyphens.

    the-lord-of-the-rings

  • camelCase

    Words are joined with no spaces; every word after the first starts with a capital.

    theLordOfTheRings

  • snake_case

    Words are lowercase and joined with underscores.

    the_lord_of_the_rings

  • PascalCase

    Words are joined with no spaces and every word starts with a capital.

    TheLordOfTheRings

  • CONSTANT_CASE

    Words are capitals joined with underscores.

    THE_LORD_OF_THE_RINGS

Why kebab-case is popular on the web

kebab-case is lowercase words joined by hyphens. CSS class names and HTML attributes use it by default, and so do most web addresses. Search engines read hyphens as spaces between words, which makes hyphenated page addresses easy to understand.

kebab-case or snake_case?

Use kebab-case in places a hyphen is allowed, such as CSS, file names and web addresses. Use snake_case where hyphens would be read as a minus sign, such as variable names in Python or JavaScript objects.

How to use the kebab-case tool

  1. Paste one name or phrase per line into the box.
  2. Click kebab-case (or another naming style).
  3. Click the copy icon above the text and use the result.

Frequently asked questions

What is kebab-case?

kebab-case writes words in lowercase and joins them with hyphens, like my-page-title.

Where is kebab-case used?

It is the usual style for CSS class names, HTML attributes, file names and web page addresses.

Is kebab-case good for SEO?

Yes. Search engines treat hyphens as word separators, so hyphenated addresses are easy to read for people and crawlers.

Your privacy comes first. Your text and numbers stay in your browser and we never see them. If you allow it, we save what you type on this device and use Google Analytics to count visits. We never sell your data. Privacy Policy