snake_case Converter
Convert text to snake_case for Python variables, database columns, and file names. Free online snake_case converter.
Three steps to get started
Paste your text
Enter text in any format — English phrase, camelCase, kebab-case, or mixed.
Converts to snake_case
All words lowercased and joined with underscores. Separators removed.
Copy the identifier
Click Copy and paste into your Python, SQL, or configuration file.
snake_case: Python, databases, and file names
snake_case is the preferred naming convention in Python (per PEP 8), most database schemas, and many configuration files. Every word is lowercase, separated by underscores. It's highly readable because each word boundary is visually clear.
Common uses for snake_case:
- Python:
user_profile,get_user_by_id,calculate_total_price - Database columns:
first_name,created_at,is_active - File names:
user_service.py,test_helpers.rb - Config keys:
max_connections,retry_delay_ms
The converter intelligently splits words from any input format — including splitting transitions in camelCase ("helloWorld" → "hello_world") and handling existing delimiters (spaces, hyphens, dots). All conversion happens in your browser.