Kebab Case to Snake Case Converter

Turn kebab-case identifiers such as user-profile-image into snake_case such as user_profile_image.

Free, private, and processed in your browser.

Detected: snake_case
snake_case output
user_profile_image_url

All naming formats

camelCase
userProfileImageUrl
PascalCase
UserProfileImageUrl
snake_case
user_profile_image_url
kebab-case
user-profile-image-url
CONSTANT_CASE
USER_PROFILE_IMAGE_URL
dot.case
user.profile.image.url
path/case
user/profile/image/url

Conversion happens locally in your browser. Your input is not sent to a conversion server.

Examples

InputOutput
user-profile-imageuser_profile_image
created-atcreated_at
api-response-urlapi_response_url

How this converter works

Paste text or an identifier above. The tool detects word boundaries and common separators, then formats the result using the selected naming convention.

  • Hyphens are treated as word boundaries and replaced with underscores.
  • The output is normalized to lowercase snake_case.

Common use cases

Move hyphenated config, CSS-style, or slug names into Python, SQL, or data-field conventions.

Normalize imported identifiers before mapping them to database columns or API payload fields.