Kebab Case to Snake Case Converter

Convert your kebab-case variables to snake_case instantly

Examples:

user-iduser_id
first-namefirst_name
total-amount-calculatedtotal_amount_calculated
api-response-dataapi_response_data
is-active-flagis_active_flag

How to Use This Tool

Our Kebab Case to Snake Case Converter is simple to use:

What is kebab-case and snake_case?

kebab-case (also called hyphen-case) is a naming convention where words are separated by hyphens (-). It's widely used in HTML attributes, CSS classes, and URL slugs.

snake_case is a naming convention where words are separated by underscores (_). It's commonly used in Python, Ruby, and database column names.

Why Convert Between Naming Conventions?

Different technologies use different conventions. You might need to convert between these styles when:

Common Use Cases

Technical Details

This converter handles all edge cases including: