Skip to content
Convertto
constantcasesnakecase

CONSTANT_CASE to snake_case Converter

Convert CONSTANT_CASE text to snake_case — one line or a whole list at once.

To convert CONSTANT_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 browser

About converting CONSTANTCASE to SNAKECASE

CONSTANT_CASE marks compile-time constants and environment variables across nearly every language. snake_case is standard in Python, Ruby and SQL, where identifiers are frequently case-insensitive and underscores survive where capitals do not. Converting CONSTANT_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.

Convert SNAKECASE to CONSTANTCASE insteadOpen the full Case Converter

Share this converter