Kebab Case Converter

Convert text to kebab-case.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste a phrase and press Run to get kebab-case: lowercase words joined by hyphens. It suits CSS class names, HTML attributes and simple URL paths.

How to use

1
Step 1
Paste the phrase into Input.
2
Step 2
Press Run.
3
Step 3
Copy the kebab-case text.

How it works

The input is split into words at spaces, underscores, punctuation and camelCase boundaries (helloWorld becomes hello-world), lowercased, and joined with hyphens. Accented and non-Latin letters are kept. For URLs that must also strip accents, use the URL Slug Generator.

Worked example

From snake_case to kebab-case

Input
Hello World_Example text
Output
hello-world-example-text
Walkthrough
Spaces and the underscore are separators, so four lowercase words are joined by hyphens.

Limitations

  • Non-ASCII letters are dropped rather than transliterated.
  • camelCase boundaries are not detected.

Questions

What is kebab-case?
Lowercase words separated by hyphens, such as my-class-name.
How is this different from the URL slug generator?
The slug generator first converts accents to plain letters, so Café becomes cafe. This converter drops accented letters.
Can I convert snake_case to kebab-case?
Yes. Underscores are separators, so user_name becomes user-name.

Features

  • Hyphen-joined lowercase
  • Good for CSS and URLs
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • HTML in 100 Seconds

    Fireship

    Quick HTML mental model next to text transform tools.

    Watch on YouTube
  • Learn JSON - Full Crash Course

    freeCodeCamp.org

    Structured text formats often sit next to plain-text tools.

    Watch on YouTube