Letter Case Converter: 11 Case Styles Explained
November 11, 2026 · 10 min read
Letter Case Converter: Upper, Lower, Title, Sentence and Code Cases
A letter case converter changes the capitalisation of your text without touching the words themselves. Paste a line in, pick a style such as UPPER CASE, Title Case or snake_case, and copy the result. This guide shows one sentence in all 11 styles, explains the rules behind each, and covers Word, Google Docs, Excel and code.
What a Letter Case Converter Changes: One Sentence in 11 Styles
Every case style starts from the same letters. What changes is which letters become capitals and, for the code styles, what separates the words. Here's one input, How to write a Markdown table, run through the 11 styles that our case converter offers.
| Style | Output | Typical use |
|---|---|---|
| UPPER CASE | HOW TO WRITE A MARKDOWN TABLE | Short labels, acronyms, warnings |
| lower case | how to write a markdown table | Tags, email addresses, search terms |
| Title Case | How to Write a Markdown Table | Book, article and page titles |
| Sentence case | How to write a markdown table | Headings, UI text, body copy |
| camelCase | howToWriteAMarkdownTable | JavaScript variables and functions |
| PascalCase | HowToWriteAMarkdownTable | Class and component names |
| snake_case | how_to_write_a_markdown_table | Python functions, database columns |
| kebab-case | how-to-write-a-markdown-table | URL slugs, CSS classes, file names |
| CONSTANT_CASE | HOW_TO_WRITE_A_MARKDOWN_TABLE | Constants and environment variables |
| aLtErNaTiNg | hOw To WrItE a MaRkDoWn TaBlE | Jokes and mocking memes |
| iNVERSE | hOW TO WRITE A mARKDOWN TABLE | Fixing text typed with Caps Lock on |
Look at the Sentence case row. The converter lowercased "Markdown", which is a proper noun. That's the trade-off with any rule-based tool: it knows letters, not meaning. Alternating output also varies a little between tools, depending on whether spaces count toward the pattern.
Upper Case and Lower Case: When Each One Fits
Upper case works for short bursts: a button label, an acronym, a one-word warning. Whole paragraphs in capitals read as shouting, and many readers find them harder to scan. If someone sends you a block of ALL CAPS, an upper case to lower case converter fixes it. Sentence case also restores each sentence's opening capital. Going the other way, an upper case converter is the fastest route to a consistent set of labels or acronyms.
Lower case suits text that machines compare or people type: email addresses, hashtags, tags and search terms. It's also the safe default for anything that ends up in a URL. A lower case converter earns its keep when you paste a column of mixed-case tags from a spreadsheet and need them to match exactly.
Accented letters convert as you'd expect in Unicode-aware tools, so ÉCOLE lowercases to école. One letter breaks the pattern. The German ß has no single-letter capital in default case mapping, so upper casing straße gives STRASSE. Lowercase that again and you get strasse, not the original, so a round trip through upper case can change your text.
Which Words Stay Lowercase in Title Case?
Title case capitalises the important words and leaves short function words lowercase. A title case converter usually starts from one core rule: articles (a, an, the), short conjunctions (and, or, but) and short prepositions (of, in, to, for) stay lowercase. The first and last word are always capitalised, whatever they are.
the art of writing a readme
The Art of Writing a Readme
The first line is the input and the second is the title case output. The small words "of" and "a" stay lowercase, and "Readme" shows why you'd still fix an acronym like README by hand.
Hyphenated words are where style guides start to disagree. Many tools capitalise each part, giving "State-Of-The-Art". A human editor following a style guide would often write "State-of-the-Art" instead.
Length is the other sticking point. APA title case capitalises every word of four letters or more, so "With", "From" and "Between" get capitals while "of" and "to" don't. Other guides draw the line elsewhere, and Chicago style, for example, lowercases most prepositions whatever their length.
So if you need AP, Chicago or APA title case exactly, treat any converter's output, ours included, as a first draft. Check longer prepositions such as "with" and "from" against the guide you follow.
What Is the Difference Between Title Case and Sentence Case?
Title case capitalises most words. Sentence case capitalises only the first word and any proper nouns, exactly as you'd write a normal sentence. Compare "Getting Started With the API" with "Getting started with the API".
A sentence case converter can only approximate this. It lowercases ordinary words, then capitalises the first letter of each sentence, so a name typed in normal case, like Paris or Markdown, needs a manual fix afterwards.
Sentence case is common for headings in technical writing. The Google developer documentation style guide tells writers to use sentence case in document titles and headings. APA uses sentence case for the titles of works in a reference list, even though its own headings use title case.
We prefer sentence case for Markdown headings in docs and READMEs. It's faster to write, there's no debate about whether "With" needs a capital, and it reads naturally in a table of contents. Whatever you choose, pick one style per project. Our Markdown style guide covers keeping heading rules consistent across files, and the Markdown headings guide covers the syntax itself.
camelCase, PascalCase, snake_case and kebab-case in Code
Most programming languages don't allow spaces in names, so programmers mark word boundaries with capitals or separators instead. Each language has its habits, and following them makes your code look native.
| Convention | Example | Where you'll see it |
|---|---|---|
| camelCase | userName | JavaScript and Java variables and functions |
| PascalCase | UserProfile | Classes in most languages, React components |
| snake_case | user_name | Python functions and variables, SQL columns |
| CONSTANT_CASE | MAX_RETRIES | Constants, environment variables |
| kebab-case | user-profile | URL slugs, CSS classes, file names |
Python's rules are written down in PEP 8. Function and variable names are lowercase with underscores, class names use CapWords (another name for PascalCase), and module-level constants are all capitals with underscores. The URL of this page is kebab-case too: letter-case-converter. Markdown front matter keys usually follow the same lowercase habit; our front matter guide has examples.
A camel case or Pascal case converter splits the input into words on spaces, punctuation and changes of case, then joins them in the new style. Acronyms are the weak spot. An identifier like parseHTMLString can come out as parse_html_string in one tool and parse_h_t_m_l_string in another, so check the result before you rename anything in a codebase. Our guide to camel case and Pascal case covers the acronym rules and which style each language uses.
How Do You Change Case in Word, Google Docs and Excel?
Word processors and spreadsheets have their own case tools, and they're fine for text that already lives there. Each behaves slightly differently.
Microsoft Word: select the text, then use Home > Change Case (the Aa button). The menu offers Sentence case, lowercase, UPPERCASE, Capitalize Each Word and tOGGLE cASE. The shortcut Shift+F3 cycles through lowercase, UPPERCASE and Capitalize Each Word; on a Mac it's fn+Shift+F3. Press Ctrl+Z (Cmd+Z on a Mac) to undo a change. Microsoft's change case help page has the steps for each version of Word.
Google Docs: select the text and choose Format > Text > Capitalization. You get lowercase, UPPERCASE and Title Case. Check small words such as "of" and "the" afterwards, because the guide you follow may want them lowercase.
Excel: there's no Change Case button. You use a formula in a helper column, then paste the results back as values.
=UPPER(A2) turns "invoice total" into "INVOICE TOTAL"
=LOWER(A2) turns "INVOICE TOTAL" into "invoice total"
=PROPER(A2) turns "this is a TITLE" into "This Is A Title"
PROPER isn't real title case. It capitalises the first letter of the text and any letter that follows a non-letter, so "a" and "of" get capitals and "don't" becomes "Don'T". For headings, a dedicated case converter does a better job. To stay inside the spreadsheet, our guide to changing case in Excel covers Flash Fill and Power Query too.
Changing Case in JavaScript and Python
Both languages ship with upper and lower case methods. Neither has a built-in title case that follows a style guide.
"Markdown table".toUpperCase(); // "MARKDOWN TABLE"
"Markdown table".toLowerCase(); // "markdown table"
"straße".toUpperCase(); // "STRASSE"
"Markdown table".upper() # 'MARKDOWN TABLE'
"they're bill's friends".title() # "They'Re Bill'S Friends"
"straße".casefold() # 'strasse'
Python's str.title() treats apostrophes as word boundaries, which is why "they're" comes out as "They'Re". The Python docs suggest string.capwords(), which splits on spaces only, as one workaround. For comparing strings regardless of case, use casefold() rather than lower().
Converting Headings with a Text Case Converter
For one-off jobs, a letter case converter in the browser is quicker than writing a formula or a script. Paste your text into the case converter, pick one of the 11 styles and copy the output. It runs in your browser, and browser-based tools on our site are unlimited for everyone.
Here's the limitation to plan for. As the sample table showed, the converter can't tell a name from an ordinary word. It can't recover an acronym typed in lowercase either, so "api" becomes "Api" in title case. After converting, scan for brand names, product names and acronyms and fix them by hand. On a page of headings that takes a minute.
A typical workflow is to draft in the Markdown editor, convert a heading or a list of headings in the case converter, then paste them back.
A letter case converter saves you retyping when text arrives in the wrong case. That might be an ALL CAPS email, a heading list that needs sentence case, or a variable name that should be snake_case. Use Word, Docs or Excel for text already inside them, and code methods inside scripts. For everything else, paste it into our free case converter, then check names and acronyms by hand.