Case Converter

Type or paste a name, a phrase or a whole list. Every case appears below at once, so you can copy the one you need without picking first.

How it works

There are two kinds of case here. The code styles (camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case and path/case) first split your text into words, then join the words back with their own rule. The prose styles (Title Case, Sentence case, UPPERCASE and lowercase) keep your spaces and punctuation and only change letters.

Words are found at spaces, underscores, hyphens, dots and slashes, and at the humps inside an identifier: helloWorld is hello and World, and XMLHttpRequest is XML, Http and Request. Digits stay with the word they touch, so version2Beta is version2 and Beta.

Each line is converted on its own, so a pasted list of field names comes back as a list. Nothing you type leaves this page.

How to use it

  1. 1 Type or paste into the Text box. One line per name if you have several.
  2. 2 Read the eleven results below the box. They update as you type.
  3. 3 Press Copy next to the case you want.

Good to know

  • Turning user_id into userId or USER_ID is the common job: paste the old names one per line and copy the whole column back.
  • Acronyms lose their capitals in the code styles: XMLHttpRequest becomes xmlHttpRequest. That is what most style guides ask for, but check it if your codebase keeps them.
  • Title Case keeps short words like of, the and to in lower case unless they start or end the line.
  • The prose styles do not split identifiers. Title Case of parseHTTPResponse is Parsehttpresponse, so convert to snake_case first if you want words.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

How one name becomes eleven: splitting words before joining them

Every naming style is the same list of words with a different glue. snake_case glues with an underscore, kebab-case with a hyphen, dot.case with a dot, and camelCase glues with nothing but marks each new word with a capital. So the real work in a case converter is not the joining, it is finding the words in the first place, especially when the input is already an identifier in some other style.

Take parseHTTPResponse body. Spaces and punctuation are easy breaks, which gives two chunks: parseHTTPResponse and body. Inside the first chunk the converter looks for two kinds of hump. A lower-case letter followed by a capital starts a new word, which splits parse from HTTP. A run of capitals followed by a capital and a lower-case letter means the last capital belongs to the next word, which splits HTTP from Response. The words are parse, HTTP, Response and body.

Now the glue. Lower-case every word and join with underscores and you get parse_http_response_body. Use hyphens for parse-http-response-body, dots for parse.http.response.body, slashes for parse/http/response/body. Upper-case the words for PARSE_HTTP_RESPONSE_BODY. For camelCase the first word stays lower and every later word gets one capital: parseHttpResponseBody. PascalCase capitalises the first word too: ParseHttpResponseBody. Type the same phrase in the box above and you will see exactly these.

Notice what happened to HTTP. It went in as four capitals and came out as Http. That is deliberate and matches most style guides, including Google’s for Java and the common JavaScript ones, because a name like parseHTTPResponse cannot be split back into words reliably. But if your project writes acronyms in full capitals, you will need to fix those by hand.

The prose styles work differently and are worth being plain about. Title Case, Sentence case, UPPERCASE and lowercase do not look for humps at all. They keep your spacing and punctuation and change letters only, so Title Case of parseHTTPResponse body is Parsehttpresponse Body, which is probably not what you wanted. Title Case also keeps small words such as a, of, the and to in lower case unless they start or end the line, a common rule but not the only one: some style books also lower-case longer prepositions. Sentence case lower-cases everything, then capitalises the first letter of each sentence and the word I, so proper nouns like London need a capital put back. Finally, each line is converted separately, which is what you want for a list of names and why a paragraph keeps its line breaks.

Frequently asked questions

What is the difference between camelCase and PascalCase?

Only the first letter. camelCase starts lower case (userProfileId) and is the usual style for variables and functions in JavaScript and Java. PascalCase starts upper case (UserProfileId) and is usual for class and type names.

Which case should I use for what?

Roughly: camelCase for JavaScript variables, PascalCase for classes and React components, snake_case for Python and database columns, CONSTANT_CASE for constants and environment variables, kebab-case for URLs, CSS classes and file names.

Why did my acronym change?

The code styles lower-case each word before joining, so NASA becomes nasa or Nasa. Title Case does the same, so "the NASA guide" becomes "The Nasa Guide". Fix acronyms by hand after converting.

Does it handle accented letters and other alphabets?

Yes. Words are found with Unicode letter classes, so crèmeBrûlée splits into crème and Brûlée, and Greek or Cyrillic text changes case correctly. Scripts with no case, such as Chinese or Arabic, pass through unchanged.

Is what I type sent to a server?

No. The conversion is a few lines of JavaScript running on this page. It keeps working with the network switched off.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.