This snake_case converter lowercases your text and joins the words with underscores — turning User First Name into user_first_name. It is the naming style favoured in Python, Ruby, database columns and file names.
How to use the snake_case converter
- Paste a phrase, or an identifier in another case.
- The snake_case version appears instantly.
- Copy it into your code, database schema or file name.
What is snake_case?
snake_case writes words in lowercase separated by underscores, like user_first_name. Because it contains no spaces or capitals, it works safely as an identifier everywhere. It is the standard for variables and functions in Python and Ruby (PEP 8 recommends it), and a common choice for SQL column names and lowercase file names.
Examples
| Input | snake_case |
|---|---|
| User First Name | user_first_name |
| totalItemCount | total_item_count |
| background-color | background_color |