snake_case Converter

Convert camel, space, or kebab text to lowercase_snake_case

Ad placeholder (leaderboard)

snake_case is the conventional naming style for Python identifiers and SQL columns: all lowercase, with underscores between words. This converter rewrites any phrase or differently-cased identifier into clean snake_case.

How it works

The input is normalised into a list of lowercase word tokens, then joined with underscores. Word boundaries come from separators and from case transitions in camelCase or PascalCase input:

"User Profile Id" -> user_profile_id
"userProfileId"   -> user_profile_id
"user-profile-id" -> user_profile_id
"HTTPServer"      -> http_server

Each detected word is lowercased before joining, so the result is always a valid, lowercase, underscore-separated identifier.

Tips and notes

Acronyms are lowercased, so parseHTML becomes parse_html. Letters and digits are split during tokenisation; if you want v2 to stay together, rejoin it after copying. The output is safe to use directly as a Python variable name or SQL column, provided it does not begin with a digit.

Ad placeholder (rectangle)