Title Case to kebab-case Converter
Convert Title Case text to kebab-case — one line or a whole list at once.
To convert Title Case to kebab-case, paste your text above and the result updates as you type. User Account Id becomes user-account-id. Word boundaries are detected from the existing casing, so an identifier does not need separators to be split correctly. kebab-case is used for URLs, CSS class names and HTML attributes. It cannot be a variable name in most languages, because the hyphen reads as subtraction.
Runs in your browserAbout converting TITLECASE to KEBABCASE
Title Case is for prose headings rather than code — it is what you convert an identifier into when it becomes a label in a user interface. kebab-case is used for URLs, CSS class names and HTML attributes. It cannot be a variable name in most languages, because the hyphen reads as subtraction. Converting Title Case to kebab-case turns User Account Id into user-account-id; acronyms are the awkward case in every direction, since "userID" and "userId" split differently and only one of them round-trips.