Turn phrases into snake_case identifiers — the standard for Python variables, Ruby methods and SQL column names.
Convert text into snake_case for Python, Ruby and database fields. Free online developer tool. Words are split at spaces, hyphens, dots, punctuation and.
| Input | Output |
|---|---|
| User First Name | user_first_name |
| Café Münster ID | café_münster_id |
Python variables and functions (PEP 8), Ruby, Rust, and column and table names in PostgreSQL and MySQL, where unquoted identifiers are folded to lowercase anyway.
They are kept, so "2 factor auth" becomes 2_factor_auth. Most languages do not allow identifiers to start with a digit, so add a prefix such as two_factor_auth.