Convert Text to snake_case — Database & Python Convention
Quick Answer: Paste text in any format to convert to snake_case. All words are lowercase separated by underscores: "firstName" becomes "first_name". The standard convention for Python variables, database column names, and Ruby method names.
100% client-side — your text never leaves your browser
Input
0 characters|0 words|0 lines
Output
0 characters|0 words|0 lines
FAQ
When should I use snake_case?
Python variables and functions, database table and column names, Ruby variables and methods, Rust variables, and file names in many conventions.
How do I convert camelCase to snake_case?
Insert underscore before each uppercase letter and lowercase everything: "firstName" to "first_name", "XMLParser" to "x_m_l_parser" (or "xml_parser" with smart conversion).