Convert camelCase to snake_case

Transform JavaScript camelCase variables to Python snake_case format instantly. Perfect for API integration, database migrations, and cross-language development.

0 characters
0 characters

Examples: camelCase to snake_case

Input (camelCase):
firstName
Output (snake_case):
first_name
Usage:user_data['first_name'] = request.firstName
Input (camelCase):
getUserById
Output (snake_case):
get_user_by_id
Usage:def get_user_by_id(user_id):
Input (camelCase):
isValidEmail
Output (snake_case):
is_valid_email
Usage:if is_valid_email(email_address):
Input (camelCase):
calculateTotalPrice
Output (snake_case):
calculate_total_price
Usage:total = calculate_total_price(items)
Input (camelCase):
maxRetryCount
Output (snake_case):
max_retry_count
Usage:MAX_RETRY_COUNT = 3

When to Use camelCase

  • JavaScript variable and function names
  • Java method names
  • TypeScript properties
  • React component props
Common in:
JavaScriptTypeScriptJavaSwiftKotlin

When to Use snake_case

  • Python variables and functions
  • Ruby methods and variables
  • Rust function and variable names
  • Database column names
Common in:
PythonRubyRustPHPSQL

Related Conversions