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.
How to use
- Paste the words or the variable name into the box.
- Read the snake_case result.
- Copy it into your code.
snake_case writes words in lowercase separated by underscores. It is the most common convention for Python variables, functions, and SQL column names.
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.
Related tools
- kebab-case Converter Convert text to kebab-case, joining lowercase words with hyphens, the format used for URL...
- CONSTANT_CASE Converter Convert text to CONSTANT_CASE, joining uppercase words with underscores, which is the styl...
- camelCase Converter Convert text or a variable name to camelCase, joining words with no separator so the first...