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
XMLParserare correctly split intoXMLandParserbefore 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
version2Update is split into version2 and Update.
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.