Text to snake_case Converter

Convert any text, camelCase, PascalCase, or kebab-case to snake_case instantly

Need all formats? Use the full text case converter with 12 naming conventions.

About This Tool

snake_case is the standard naming convention in Python, Ruby, Rust, SQL, and many other languages. Every word is lowercase and separated by underscores: `get_user_name`, `max_retry_count`, `database_connection_pool`. If you're converting JavaScript camelCase variables to Python, renaming database columns, or refactoring code across languages, this tool instantly converts any text to snake_case. It handles camelCase, PascalCase, kebab-case, dot.case, spaces, and mixed formats โ€” just paste and copy.

How to Use

1. Type or paste any text โ€” camelCase, PascalCase, kebab-case, or plain words 2. The snake_case result appears highlighted at the top 3. All other case formats are also shown below 4. Click "Copy" to copy the snake_case result

Frequently Asked Questions

What is snake_case?
snake_case is a naming convention where words are lowercase and separated by underscores. Example: 'get_user_name'. It's the standard in Python (PEP 8), Ruby, Rust, and SQL for variable names, function names, and database columns.
How do I convert camelCase to snake_case?
Paste your camelCase text (e.g., 'getUserName') and the tool splits it at uppercase boundaries, lowercases everything, and joins with underscores to produce 'get_user_name'.
When should I use snake_case?
Use snake_case for: Python variables and functions (PEP 8), Ruby methods and variables, Rust variables and functions, SQL table and column names, environment variables (often SCREAMING_SNAKE_CASE), and file names in many projects.
What's the difference between snake_case and SCREAMING_SNAKE_CASE?
snake_case is all lowercase (get_user_name), while SCREAMING_SNAKE_CASE is all uppercase (GET_USER_NAME). SCREAMING_SNAKE_CASE is used for constants in virtually every programming language.
Can I convert multiple words at once?
Yes. The tool handles any input: 'getUserName', 'get-user-name', 'Get User Name', 'get.user.name' โ€” all produce 'get_user_name'.

Related Tools