Skip to content

CamelCase to kebab-case

Transform camelCase variable names to kebab-case for CSS classes, HTML attributes, or URL-friendly formats - essential for frontend developers

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 conversioncamelCasekebab-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