Case converter

Paste text, press a button and get it back in UPPERCASE, lowercase, Sentence case, Title Case or one of nine other styles, including camelCase, snake_case and kebab-case for code names. Your text stays in this browser.

Case converter

How to change the case of a text

  1. Type or paste your text into the first box.
  2. Press a case button. The result box fills at once, and the button you chose stays highlighted.
  3. Press another button to try a different case. The result is always made from your original text, not from the previous result.
  4. Press Copy result, or Download .txt to save it as converted-text.txt.
  5. Press Clear to empty both boxes.

The 13 cases on one sentence

We pasted the quick brown fox jumps over the lazy dog, and it doesn't stop. A tale of two cities: the end? and pressed each button. These are the results for the text cases.

The six code cases are described below. Spaces, punctuation and line breaks stay as they were.

Title Case and the small words

Title Case here keeps these 21 words in lowercase: a, an, and, as, at, but, by, for, if, in, nor, of, on, or, per, the, to, up, via, vs and with. The first and last word of a line, and the first word after a colon, full stop, question mark or exclamation mark, are always capitalized. That is why we got A Guide To for a guide to, and The Lord of the Rings: The Return of the King.

Longer words such as from, over, into, upon, between and about are capitalized: From Over Into Upon Between About. This is our own list. We did not compare it with AP, APA or Chicago rules, which treat some of these words differently, so check a style guide if an editor requires one.

Title Case, Capitalize Each Word and Sentence case lowercase the rest of every word before they capitalize it. NASA plans a trip to the moon came out as Nasa Plans a Trip to the Moon, an eBay seller as An Ebay Seller and mcDONALD's as Mcdonald's. Fix names and acronyms by hand afterwards. state-of-the-art design became State-of-the-Art Design, and it's a dog's life became It's a Dog's Life.

Where Sentence case goes wrong

Sentence case treats every full stop as the end of a sentence. Abbreviations therefore break it. i went to the U.S. and saw NASA came out as I went to the u.S. And saw nasa, and e.g. this: that as E.G. This: that. Caps lock text, NASA SAID IT. mr. smith agrees!, gave Nasa said it. Mr. Smith agrees!, which is usually the fix wanted, apart from the acronym.

camelCase, snake_case and the other code cases

camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.case split the text into words and join them again. Words are split at spaces and punctuation, and where a lowercase letter or a digit meets a capital. Each line is converted on its own, so a list of names becomes a list of identifiers, and blank lines stay. Apostrophes are dropped.

Our tests: XMLHttpRequest became xml_http_request in snake_case and xmlHttpRequest in camelCase. getHTTPResponseCode became get_http_response_code. user_ID gave userId, so it converts between code cases as well as from plain text. don't stop gave dont_stop.

A digit stays with the letters before it, and punctuation splits: HTML5Parser gave html5_parser, but version 2.0 beta gave version_2_0_beta. Two cases need a look: iPhone 15 Pro gave i_phone_15_pro, because the capital P is a word edge, and accented letters are kept, so ÉCOLE normale supérieure became école_normale_supérieure. Some tools do not allow those characters in names.

Accents, ß, Turkish i and other scripts

The page applies the same Unicode rules your browser uses and does not know your language. German straße becomes STRASSE, one character longer, and lowercasing that gives strasse, so the round trip does not return the original. The Turkish capital İ lowercases to an i followed by a combining dot (i̇stanbul), and a plain i uppercases to I, where Turkish would write İ. Greek ΟΔΥΣΣΕΥΣ lowercased correctly with the final sigma, οδυσσευς.

Our Chinese, Japanese, Thai and Arabic samples came back unchanged from UPPERCASE, lowercase and Title Case, because those scripts have no capital letters. Emoji pass through untouched.

Size and privacy

Title Case on 1 MB of text took 181 ms, and 5 MB took 1.3 seconds. snake_case took 0.7 s for 1 MB and 3.2 s for 5 MB. We did not test above 5 MB.

We opened the page with outside connections blocked and converted a text that held a unique marker string, then copied the result. Of 12 requests, 2 went to outside scripts (the Google ad script and tag), which we blocked, so we cannot say what they would send. No request carried a body or the marker, and localStorage and sessionStorage held no keys.

Other text tools

To count what you have, use the word counter. To drop repeated lines from a list of names first, use remove duplicate lines. If the names live in a data file, the JSON formatter shows the keys you will rename.

Measured results

Test runs of the page in headless Chromium 158. Every result was read from the result box after pressing the button.
InputCaseWhat came out
a tale of two citiesTitle CaseA Tale of Two Cities
a guide toTitle CaseA Guide To
NASA plans a trip to the moonTitle CaseNasa Plans a Trip to the Moon
XMLHttpRequestsnake_casexml_http_request
user_IDcamelCaseuserId
version 2.0 betakebab-caseversion-2-0-beta
straßeUPPERCASESTRASSE
Hello World, NASA 12iNVERSEhELLO wORLD, nasa 12
5 MB of textTitle Case, snake_case1.3 s and 3.2 s

Prefer desktop software?

Word has a Change Case command (Shift+F3 cycles through upper, lower and capitalized), and Excel has the UPPER, LOWER and PROPER functions for cells. They suit a document or sheet you keep editing. We did not test them, so their rules for small words, acronyms and accents may differ from this page.

Frequently asked questions

Does the case converter upload my text?

No. The conversion runs in your browser and the page makes no request that carries your text. In our test with outside connections blocked, no request had a body and none contained our marker string.

Which words stay lowercase in Title Case?

These 21: a, an, and, as, at, but, by, for, if, in, nor, of, on, or, per, the, to, up, via, vs and with. The first and last word of a line and the first word after a colon or sentence end are always capitalized. The list is ours and does not follow AP, APA or Chicago exactly.

Why did NASA become Nasa?

Title Case, Capitalize Each Word and Sentence case lowercase the rest of each word first, so the page cannot tell an acronym from a name. Correct those by hand afterwards.

How do I fix text typed in caps lock?

Paste it and press Sentence case. Our test line NASA SAID IT. mr. smith agrees! came back as Nasa said it. Mr. Smith agrees!. Names and acronyms need a manual fix.

Can it convert camelCase to snake_case?

Yes. Paste the camelCase name and press snake_case. getHTTPResponseCode gave get_http_response_code. Each line is converted separately, so you can paste a whole list.

Does it change Chinese, Japanese, Thai or Arabic text?

No. Those scripts have no capital letters, and our samples came back unchanged from UPPERCASE, lowercase and Title Case.