snake_case Converter
Convert words, camelCase or kebab-case names to snake_case. Each line is converted separately.
How the snake_case converter works
Each line is split into words at spaces, punctuation, hyphens and capital letters. The words are made lowercase and joined with underscores. snake_case is the usual style for variables and functions in Python and Ruby and for database column names.
Everything runs in your browser. Your text is not uploaded or stored.
Example
Input
User First Name getUserById background-color
Result
user_first_name get_user_by_id background_color
Frequently asked questions
What is snake_case?
A naming style with lowercase words joined by underscores, for example user_first_name.
How do I convert camelCase to snake_case?
Paste the camelCase names here, one per line. Each capital letter starts a new word, so getUserById becomes get_user_by_id.
More text tools
- Case Converter
- Uppercase Converter
- Lowercase Converter
- Title Case Converter
- Sentence Case Converter
- camelCase Converter
- PascalCase Converter
- kebab-case Converter
- Word Counter
All of these are also available together on the Text Tools page.