kebab-case to CONSTANT_CASE Converter
Convert kebab-case text to CONSTANT_CASE — one line or a whole list at once.
To convert kebab-case to CONSTANT_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. CONSTANT_CASE marks compile-time constants and environment variables across nearly every language.
Runs in your browserAbout converting KEBABCASE to CONSTANTCASE
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. CONSTANT_CASE marks compile-time constants and environment variables across nearly every language. Converting kebab-case to CONSTANT_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.