Skip to content
TextBench Lab

Case Converter

Switch text to UPPERCASE, Title Case, Sentence case, camelCase, snake_case and more in one click. It runs in your browser, so your text is never uploaded.

How to use the text case converter

  1. Add your text

    Type in the top box or paste text from a document, email or code editor.

  2. Pick a case

    Click one of the case buttons. The selected one is marked, and the result appears at once.

  3. Adjust the options

    For Title, Sentence and Capitalize Each Word, tick Keep ALL-CAPS words to protect acronyms such as NASA.

  4. Copy or download

    Use Copy or Download .txt, or Use output as input to apply a second conversion.

Features

  • 13 cases

    Writing styles such as Title Case and Sentence case, plus code names such as camelCase and kebab-case.

  • Title Case with rules

    Small words like "of" and "the" stay lowercase, and hyphenated words are handled.

  • Unicode-safe

    Accented letters, German ß and non-Latin alphabets are converted without damage.

  • Fast on long text

    Hundreds of thousands of words convert instantly in your browser.

What text case means

Case is the choice between capital and small letters. The same words can be written as a shout, a headline, a normal sentence or a variable name, and each style has its own habits. This converter changes your text between thirteen of them in one click, so you do not retype anything. If you also need to check length afterwards, the character counter and the word counter work on the same text.

Cases for writing

UPPERCASE makes every letter a capital. It suits short labels, warnings and acronyms, and it is tiring to read in long passages.

lowercase makes every letter small. It is handy for cleaning text before comparing it, for tags and for casual styles.

Title Case capitalizes the important words of a headline. It is the usual choice for article titles, book titles and page headings.

Sentence case capitalizes only the first word of each sentence, the way normal prose looks. Many modern interfaces and news sites prefer it for headings too.

Capitalize Each Word puts a capital on every word, small words included. It is simple and predictable, and fits names, product lists and menu items.

aLtErNaTiNg case and InVeRsE case are playful styles for jokes and memes. Inverse swaps every letter to its opposite case.

Cases for code

Programmers cannot use spaces in names, so they join words using a convention.

  • camelCase starts small and capitalizes each later word: userFirstName.
  • PascalCase capitalizes every word: UserFirstName. It is common for class and component names.
  • snake_case joins words with underscores in small letters: user_first_name.
  • CONSTANT_CASE is snake case in capitals: MAX_RETRY_COUNT, often used for constants.
  • kebab-case joins words with hyphens: user-first-name. It is common in web addresses and CSS.
  • dot.case joins words with dots: user.first.name, seen in configuration keys.

For these, the tool converts each line separately, so a list of field names becomes a list of identifiers.

The exact rules this tool follows

Words. A word is a run of letters, digits and accent marks. An apostrophe inside a word keeps it together, so "don't" is one word.

Title Case. The first and last word of each line, and the first word after a full stop, exclamation mark, question mark or colon, are always capitalized. Every other word is capitalized unless it is one of these small words: a, an, the, and, but, or, for, nor, on, at, to, from, by, of, in, with, as, vs, via. In a hyphenated word, the first and last parts are capitalized and small words in the middle stay small, giving "Well-Known" and "State-of-the-Art".

Sentence case. Everything is lowercased, then the first word of the text, of each line and of each sentence is capitalized. A sentence ends at a full stop, exclamation mark or question mark followed by a space. The word "I" and its contractions I'm, I'll, I've and I'd stay capitalized.

Keep ALL-CAPS words. When ticked, words with two or more letters that are already all capitals, such as NASA, stay as they are in Title Case, Sentence case and Capitalize Each Word.

Code cases. Each line is split at spaces, hyphens, underscores, dots and camelCase boundaries. Punctuation and apostrophes are dropped, so "it's" becomes "its".

Letters from other languages. The tool uses the standard Unicode rules of your browser. "é" becomes "É", and the German "ß" becomes "SS" in capitals.

Two worked examples

Example 1: a headline

Input:

the cat in the hat: a story of well-known tricks
  • Title Case: The Cat in the Hat: A Story of Well-Known Tricks
  • Sentence case: The cat in the hat: a story of well-known tricks
  • Capitalize Each Word: The Cat In The Hat: A Story Of Well-Known Tricks

Example 2: a field name

Input:

Customer first name
  • camelCase: customerFirstName
  • PascalCase: CustomerFirstName
  • snake_case: customer_first_name
  • CONSTANT_CASE: CUSTOMER_FIRST_NAME
  • kebab-case: customer-first-name
  • dot.case: customer.first.name

Common mistakes

Acronyms. Lowercasing first turns "NASA" into "Nasa". Tick Keep ALL-CAPS words when your text contains acronyms.

Names and brands. The tool cannot know that "iPhone" or "McDonald" has its own capitals, so it will write "Iphone" and "Mcdonald". Fix such names by hand afterwards.

Small words. Style guides disagree about which short words to lowercase, and about words of four letters or more such as "from" or "with". This tool uses the list above. For formal work, check your own style guide.

Abbreviations in Sentence case. A full stop followed by a space starts a new sentence, so "see e.g. this one" becomes "See e.g. This one".

Turkish. The tool does not apply language-specific rules. A dotted capital "İ" lowercases to "i" followed by a combining dot, which is the standard result.

Your text stays private

The conversion runs entirely in your browser. Your text is not uploaded, stored or shared, and no account is needed. Closing or refreshing the tab clears it. The privacy policy explains how the whole site handles data.

Frequently asked questions

What is the difference between Title Case and Capitalize Each Word?

Capitalize Each Word puts a capital on every word. Title Case follows the headline style and keeps small words such as "of", "the" and "and" lowercase, unless they come first or last.

Does Sentence case keep acronyms like NASA?

Not by default, because the tool lowercases everything first. Tick Keep ALL-CAPS words to leave words of two or more capital letters as they are.

How are code cases such as snake_case created?

The tool splits each line into words at spaces, hyphens, underscores, dots and camelCase boundaries, drops punctuation, and joins the words in the style you picked.

Does it work with accented letters and other languages?

Yes. It uses your browser's Unicode case rules, so é becomes É and ß becomes SS in capitals. Languages with their own rules, such as Turkish, follow the standard mapping.

Is my text uploaded or saved?

No. The conversion runs in your browser. Your text is not sent to a server and is not stored, so it disappears when you close or refresh the page.

Which style guide does Title Case follow?

It uses one simple, documented rule set for the small words listed on this page. Style guides such as AP, APA and Chicago differ in details, so check your own guide for formal work.

Related guides