snake_case Converter

Convert text or a variable name to snake_case, joining lowercase words with underscores, which is the standard for Python and database columns.

snake_case writes words in lowercase separated by underscores. It is the most common convention for Python variables, functions, and SQL column names.

Output

                

Paste or type something above.

Questions about snake_case converter

Is snake case valid as a Python identifier?
Yes, it is the most readable style for Python and it matches most style guides.
What happens to capitals?
Every word is lowercased, so HTTPServer becomes http_server.
Can I use this for SQL columns?
Yes, and it avoids quoting in most databases, because an all-lowercase name needs no case handling.