Case Converter
Paste or type text and get it in every case at once: UPPERCASE, lowercase, Title Case, Sentence case and the code styles. Copy the row you need. Nothing is uploaded; the conversion runs in your browser.
What each case means
| Case | Example | Where it is used |
|---|---|---|
| UPPERCASE | THE QUICK BROWN FOX | Headings in some designs, warnings, acronyms, constants |
| lowercase | the quick brown fox | Fixing caps lock text, email addresses, tags, slugs |
| Title Case | The Quick Brown Fox Jumps over the Lazy Dog | Headlines, book and article titles. Short words such as "of" and "the" stay lowercase |
| Sentence case | The quick brown fox. It jumps. | Normal prose, and headings in most modern style guides |
| Capitalized Case | The Quick Brown Fox Jumps Over The Lazy Dog | Names, labels. Every word gets a capital, small words included |
| aLtErNaTiNg | tHe qUiCk bRoWn fOx | Mocking or joking tone in chats and memes |
| camelCase, PascalCase | quickBrownFox, QuickBrownFox | Variable and class names in JavaScript, Java, C# |
| snake_case, CONSTANT_CASE | quick_brown_fox, QUICK_BROWN_FOX | Python and Ruby names, database columns, environment variables |
| kebab-case | quick-brown-fox | URLs, CSS classes, file names |
For the exact rules behind title and sentence case, including which small words stay lowercase and how style guides differ, see the sentence case converter. It works on one case at a time, which suits long documents.
Change case without a converter
| Where | How |
|---|---|
| Microsoft Word | Select the text and press Shift+F3 to switch between upper case, lower case and title case. Ctrl+Shift+A makes text all upper case (Microsoft) |
| Excel and Google Sheets | =UPPER(A1), =LOWER(A1), =PROPER(A1). PROPER capitalizes every word; there is no built-in sentence case |
| CSS | text-transform: uppercase | lowercase | capitalize; changes how text is shown, not the text itself, so copying it gives the original |
| JavaScript | s.toUpperCase(), s.toLowerCase(), s.toLocaleUpperCase('tr') |
| Python | s.upper(), s.lower(), s.title(), s.capitalize(), s.swapcase(), and s.casefold() for comparisons |
| Shell | tr '[:lower:]' '[:upper:]' < in.txt, or in Bash 4 and later ${var^^} and ${var,,} |
| SQL | UPPER(name), LOWER(name); PostgreSQL also has INITCAP(name) |
Uppercase and lowercase are not always one to one
Changing case looks simple for English, but Unicode has letters where it changes the length of the text or depends on the language. This converter uses your browser's Unicode rules, so these all behave as shown:
| Input | Result | What happens |
|---|---|---|
| straße | STRASSE | German ß becomes two letters in upper case, so the text gets longer |
| ΟΔΟΣ | οδος written as οδο + ς | Greek sigma has a different lowercase shape at the end of a word |
| file (with the fi ligature) | FILE | One ligature character becomes two capitals |
| İstanbul | i̇stanbul | Turkish dotted İ becomes i plus a combining dot under the default rules. Turkish needs toLocaleLowerCase('tr') |
| dž | DŽ (upper), Dž (title) | A few letters have a third, title case form |
Two practical results. First, converting to upper case and back does not always return the original text. Second, to compare strings without regard to case in code, do not upper-case both sides; use a case-folding or locale-aware comparison such as Python's casefold() or JavaScript's a.localeCompare(b, undefined, { sensitivity: 'accent' }).
Questions
How do I change uppercase to lowercase without retyping?
Paste the text above and copy the "lower case" row, or "Sentence case" if you want capitals back at the start of each sentence. In Word, select the text and press Shift+F3.
Why did my acronyms stay in capitals?
With "Keep acronyms" on, a word typed in capitals inside normal text is treated as an acronym in title and sentence case. Turn the option off to lowercase everything. The upper and lower rows always change every letter.
Does it change my code or links?
Not with the Markdown option on. Fenced code, inline code, URLs, link targets and HTML tags are set aside and put back unchanged, because case matters in all of them. The code style rows (camelCase and the rest) convert every line as a name, so they ignore that option.
Is my text sent anywhere?
No. The conversion is JavaScript running on this page.
Related tools
- Sentence Case Converter: one case at a time for long documents, with the title case rules explained.
- Small Caps Generator: ꜱᴍᴀʟʟ ᴄᴀᴘꜱ letters you can paste anywhere.
- Remove Line Breaks: join lines broken by PDFs and emails.
- Alphabetize a List: sort lines and remove duplicates.
- Comma Separator: turn a column into a comma separated list and back.
- Weird Text Generator: alternating caps and lookalike letters.