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