Skip to content
Webmaster Tools
Text & encodingText Case

Case Converter

camelCase, snake_case, kebab-case.

Words detected:
StyleResultCopy
Runs in your browser

About the Case Converter

This tool renames identifiers and text between the naming styles used in code: camelCase, PascalCase, snake_case, SCREAMING_SNAKE, kebab-case, Train-Case, dot.case, path/case, Title Case, Sentence case, lower case and UPPER CASE. All twelve results appear at once, each with its own copy button.

It first splits the input into words, and the detected words are shown under the text box so you can see how it was read. A word boundary is any character that isn't an ASCII letter or digit (spaces, _, -, ., /), a change from lowercase to uppercase, the end of an acronym (HTTPResponse splits into HTTP and Response), or a switch from a letter to a digit. It runs in your browser.

How to use it

  1. Type or paste text into the box. A sample is loaded to start with.
  2. Check the detected words.
  3. Copy the style you need from the table.

Examples

Common questions

What is the difference between camelCase and PascalCase?

Both join words without separators. camelCase starts with a lowercase letter (userId), PascalCase with an uppercase one (UserId). PascalCase is common for class and type names.

How are acronyms handled?

They are detected as one word and then recased like any other, so parseHTTPResponse becomes parseHttpResponse in camelCase and parse_http_response in snake_case.

What happens to accented letters?

Word splitting only recognizes ASCII letters and digits, so characters like é act as separators in the joined styles. lower case and UPPER CASE keep the original text and change only its case.