Case converter
Change text to upper case, lower case, Title Case, Sentence case and other styles. The result updates as you type.
Your files stay on your device. Nothing is uploaded.
Step 1: Type or paste your text
Step 2: Choose a case
Step 3: Copy or download
How to change text case
-
Type or paste your text
Click in the first box and type, or paste your text.
-
Choose a case
Pick UPPER CASE, lower case, Title Case, Sentence case, aLtErNaTiNg, camelCase, snake_case or kebab-case. The result appears in the second box.
-
Copy or download
Click Copy text to copy the result, or Download .txt to save it as a text file.
About this tool
Title Case rules
Every word starts with a capital letter, except these small words in the middle of a line: a, an, the; and, but, or, nor, for, so, yet; as, at, by, in, of, off, on, per, to, up, via, vs. They get a capital when they are the first or last word, or follow a colon, full stop, question mark or exclamation mark. Each part of a hyphenated word is treated the same way: Out-of-Date. Other letters become lower case, so NASA becomes Nasa; fix acronyms by hand.
Sentence case rules
Everything becomes lower case, then the first letter of each sentence and each line gets a capital. A sentence ends with . ! ? or the Urdu full stop (۔). Dotted abbreviations such as i.e. and e.g. do not end a sentence. The word "i" on its own becomes "I". Names stay lower case, so check them afterwards.
Names for code
| Case | Example | Often used for |
|---|---|---|
| camelCase | userIdNumber | Variables in JavaScript and Java |
| snake_case | user_id_number | Python, database columns |
| kebab-case | user-id-number | Web addresses, CSS classes |
Each line becomes one name. Spaces and punctuation are removed, existing camelCase is split into words, and apostrophes are dropped, so "don't stop" becomes dont_stop.
Other languages
Accented letters are converted correctly, for example é to É. Scripts without capital letters, such as Urdu, Arabic, Hindi and Chinese, stay unchanged, although camelCase, snake_case and kebab-case still join their words.
Privacy
This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.
Frequently asked questions
What is the difference between Title Case and Sentence case?
Title Case gives most words a capital letter, as in a book title: The Lord of the Rings. Sentence case gives a capital only to the first word of each sentence: The lord of the rings.
What does aLtErNaTiNg case do?
Letters switch between lower and upper case, starting with lower case. Spaces, numbers and punctuation are skipped. It is mostly used for jokes and memes.
Can I change case in Word or Excel instead?
In Microsoft Word on Windows, select the text and press Shift+F3 to switch between cases. In Excel, the UPPER, LOWER and PROPER functions change the case of a cell. PROPER capitalises every word, including small words such as "of".
Are line breaks kept?
Yes. Line breaks and spacing stay as they are. For camelCase, snake_case and kebab-case, each line becomes one name.
Is there a length limit?
No fixed limit. Very long texts, over 200,000 characters, update after a short pause.
Is my text saved?
No. The text stays in this page on your device and is not saved anywhere. Copy it somewhere before you close the tab.
Related tools
- Words Word counter Count words, characters and sentences as you type.
- Characters Character counter Count characters with and without spaces.
- QR QR code generator Make a static QR code for a link, text, Wi-Fi, email or phone.
- CSV › JSON CSV to JSON Turn a CSV table into a JSON array of objects.
- JSON › CSV JSON to CSV Turn a JSON list of objects into a CSV table.
- OCR Image to text Copy English text from a photo, scan or screenshot (OCR).
- CSV › XLSX CSV to Excel Convert a CSV file to an Excel workbook and keep leading zeros.
- PDF + PDF Merge PDF Combine several PDF files into one PDF.