About this tool
snake_case writes words in lowercase and joins them with underscores, as in created_at. It's the convention for Python variables, Ruby methods and most SQL column names. Paste phrases or names written in camelCase, PascalCase or kebab-case and each line comes back in snake_case.
How to use snake_case Converter
- Paste the names you want to convert, one per line.
- The snake_case version of each line appears on the right.
- Copy the result into your code or schema.
Frequently asked questions
How are word boundaries detected?
Spaces, underscores, hyphens, dots and slashes all split words, and so do changes from lowercase to uppercase. That means "user first name", "user_first_name" and "userFirstName" all become user_first_name.
Can I convert many names at once?
Yes. Paste one name per line and every line is converted on its own, so a whole column of field names or variables converts in one go.
What happens to apostrophes and symbols?
Apostrophes are dropped so "user's" becomes "users", and other punctuation is treated as a word separator. Accented letters are kept as they are.