Case
Type or paste once and get every case at the same time. Click a line to copy it. Nothing leaves your browser.
- lowercasetype or paste text here
- UPPERCASETYPE OR PASTE TEXT HERE
- Sentence caseType or paste text here
- Title CaseType or Paste Text Here
- camelCasetypeOrPasteTextHere
- PascalCaseTypeOrPasteTextHere
- snake_casetype_or_paste_text_here
- kebab-casetype-or-paste-text-here
- CONSTANT_CASETYPE_OR_PASTE_TEXT_HERE
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ébecomescafe. - 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.
More tools
- formatter and viewerJSONPaste and read. It takes almost-JSON, points at the error and leaves your data alone.
- chess game analysisPGNPaste a game and Stockfish reviews it in your browser: the accuracy of each side, the mistakes and what the engine would have played.
- crop, resize and convertImageDrop or paste an image, crop it, resize it and change its format. The file size shows before you download, and the image never leaves your browser.
- dollar to real, PTAX and remittancesDollarThe commercial rate and the PTAX, with the time of each, and how many reals each service really leaves you for the dollars you are paid.
- scrolling text for concertsLED signYour phone becomes an LED sign to ask for a song at a concert. Full screen, no ads, and it works offline.
- spirit level and inclinometerLevelYour phone becomes a spirit level, lying flat or standing on an edge, to hang a picture or check a floor. In degrees, percent and mm per metre.
Made by Ronaldo Sena, a developer in Uberlândia, Brazil, who also writes about code and chess on the blog.