kebab-case Converter

Lowercases the words on each line and joins them with hyphens.

Result

The converted text appears here as you type.

For example
Primary Button
navBarItem
card_footer
primary-button
nav-bar-item
card-footer

How to use

  1. Paste or type your text in the box.
  2. Check the result. Every change is highlighted, so you can see exactly what will be different.
  3. Press Copy Result, or Open in Editor to keep working with more tools, undo and saved drafts.

Example

Before
Primary Button
navBarItem
card_footer
After
primary-button
nav-bar-item
card-footer

What it's for

  • Naming CSS classes and component files
  • Creating consistent image or document file names

Questions

What is the difference from a URL slug?

The URL Slug tool also removes accents and turns & into and, which is safer for web addresses. kebab-case keeps letters exactly as they are, apart from lowercasing.

Related tools