Case

Type or paste once and get every case at the same time. Click a line to copy it. Nothing leaves your browser.

How to convert text case

Type or paste your text in the box and every case shows up below it at the same time. Click a line to copy that case. You do not have to pick one first: compare them and take the one you need.

With the text the lord of the rings, for example:

Case Result
lowercase the lord of the rings
UPPERCASE THE LORD OF THE RINGS
Sentence case The lord of the rings
Title Case The Lord of the Rings
camelCase theLordOfTheRings
PascalCase TheLordOfTheRings
snake_case the_lord_of_the_rings
kebab-case the-lord-of-the-rings
CONSTANT_CASE THE_LORD_OF_THE_RINGS

Sentence case and title case that keep names intact

Most converters turn iPhone into Iphone and NASA into Nasa. Here, sentence case and title case leave alone the words that already have a capital in the middle, names with _, and anything that looks like an address or a file, such as https://…, a@b.com and package.json. The exception is text written all in capitals or typed with caps lock on, which is converted as a whole.

camelCase, snake_case or kebab-case: when to use each

  • camelCase: variables and functions in JavaScript, TypeScript and Java (totalPrice).
  • PascalCase: classes, types and React components (ShoppingCart).
  • snake_case: Python, Ruby and database column names (created_at).
  • kebab-case: page addresses, file names and CSS classes (my-page).
  • CONSTANT_CASE: constants and environment variables (API_URL).

In the code cases, words are also split where the case changes: getHTTPResponse becomes get_http_response.

Questions

What happens to accents?
The text cases (lowercase, UPPERCASE, sentence and title) keep them. The code cases drop them, since variable and file names often cannot have accents. café becomes cafe.
Why do some words stay lowercase in title case?
Short articles, prepositions and conjunctions stay lowercase in the middle of a title, in English (of, the, and) and in Portuguese (de, do, e). The first word always starts with a capital.
Can I convert several lines at once?
Yes. Paste a list, one item per line, and each line is converted on its own. It is handy for turning a list of column names into variable names, for example.
Is my text sent anywhere?
No. The conversion happens in your browser, and the page is not allowed to open any connection.

Made by Ronaldo Sena, a developer in Uberlândia, Brazil, who also writes about code and chess on the blog.