Convert text into kebab-case — the standard for URL slugs, CSS class names and HTML attributes.
Convert text into kebab-case for URLs, CSS classes and file names. Free online developer tool. Words are split at spaces, underscores, dots, punctuation.
| Input | Output |
|---|---|
| User First Name | user-first-name |
| héllo Wörld | héllo-wörld |
Hyphens are the separator Google recommends for URLs. Accented characters are legal but get percent-encoded, so use the slug generator when you want a pure ASCII path.
Most languages read the hyphen as a minus sign, so kebab-case is used for files, CSS classes, HTML attributes and URLs — not identifiers. Lisp and Clojure are the notable exceptions.