Kebab Case Converter
Convert text to kebab-case.
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
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?
How is this different from the URL slug generator?
Can I convert snake_case to kebab-case?
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 YouTubeLearn JSON - Full Crash Course
freeCodeCamp.org
Structured text formats often sit next to plain-text tools.
Watch on YouTube
- UTF-8 and BOM
W3C
Encoding gotchas when cleaning pasted text.
- RFC 3629 — UTF-8
IETF
UTF-8 rules behind character-counting tools.