Skip to content

CamelCase to snake_case

Transform camelCase JavaScript variables to snake_case for Python, Ruby, or database column names - perfect for cross-language development

Example transformation:
myVariableName my_variable_name
⌘K to search patterns
⌘↵ to transform text

Input

(⌘1 to focus)
0 characters

Output

(⌘2 to focus)
0 characters
No pattern selected

Select a pattern or enter custom regex above

Use ⌘K to find patterns

Pattern Details

Search Pattern

([a-z])([A-Z])

Replace Pattern

$1_$2

Example

Input

myVariableName

Output

my_variable_name

Tags

case conversioncamelCasesnake_case

How to Use This Pattern

  1. Enter your text in the input area above
  2. Click "Transform" or press ⌘+Enter to apply the transformation
  3. Copy the result from the output area

You can also use the command palette (⌘K) to quickly switch between different patterns.

Related Patterns