EthicalFusion

Code Case Converter

Convert any phrase to camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE.

Was this tool helpful? Thanks for the feedback!

Convert any phrase into every common programming case at once — camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case and path/case. It saves you renaming identifiers by hand and helps you match a language's convention. Everything runs in your browser.

For URL slugs specifically, kebab-case is best; the slug generator handles those.

Frequently asked questions

What is the difference between camelCase and snake_case?

camelCase capitalises each word after the first with no separators (userName); snake_case is lowercase joined by underscores (user_name).

Which case should I use?

Match the language: camelCase for JavaScript/Java variables, snake_case for Python/Ruby, kebab-case for CSS and URLs, CONSTANT_CASE for constants.

How do I use the converter?

Paste a phrase and it outputs every case at once so you can copy the exact form you need.

Is my text uploaded?

No, the conversion happens in your browser.