snake_case to kebab-case Converter
Convert snake_case text to kebab-case — one line or a whole list at once.
To convert snake_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 SNAKECASE to KEBABCASE
snake_case is standard in Python, Ruby and SQL, where identifiers are frequently case-insensitive and underscores survive where capitals do not. 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 snake_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.