Text

Naming Convention Converter (camelCase, snake_case, kebab-case, etc.)

Instantly convert between major naming conventions such as camelCase, PascalCase, snake_case, and kebab-case. Handy for renaming variables, files, and environment variables in programming.


Tips

  • Acronym runs like XMLParser are correctly split into XML and Parser before conversion.
  • Use the button on the right of each row to copy that result to your clipboard instantly.
  • The right naming convention depends on the language and context: JavaScript/Java variable names use camelCase, class names use PascalCase, Python variables and functions use snake_case, environment variables use CONSTANT_CASE, and URLs or CSS class names typically use kebab-case.
  • Even if Japanese characters or symbols are mixed in, only alphanumeric words are extracted and converted (non-Latin text is excluded from the result).

FAQ

Yes. Only alphanumeric words are extracted and converted, so any Japanese portions are excluded from the result. If the input is entirely Japanese (or other non-Latin text), the result will be empty.

Numbers are treated as part of the word, just like letters. For example, version2Update is split into version2 and Update.

No. The conversion runs entirely in your browser, and your input is never sent to a server.
ツールくん

Side Note — Why Different Programming Languages Ended Up With Different Naming Conventions

snake_case is said to have spread through the C community in the 1970s, when some terminals and editors made it hard to distinguish uppercase from lowercase, so separating words with underscores was preferred. Python and Ruby strongly carry on this tradition.

camelCase, on the other hand, is often traced back to Smalltalk in the 1980s and later Java's design. Java's designers adopted camelCase as the standard style because it looks more compact than underscores, and JavaScript inherited it from there.

kebab-case can't be used as an identifier in most programming languages (because - collides with the subtraction operator). As a result, it's mainly used in places that aren't language identifiers, such as URLs, CSS class names, and command-line arguments.