Text Case Converter

Convert the text case.

Type your text and then select a case to reformate your text, and instantly receive a result ready to copy into your document, code or post. All in one tool: fixes an accidental Caps Lock paragraph, formats a headline properly, or reformats a variable name for code.

Workspace

Enter text and click conversion formats below.

Characters 0
Words 0
Lines 0

Casing Transforms

Standard Formats
Developer Formats
Specialty Formats

What This Tool Does

This converter can convert any piece of text and recapitalize it in any style you choose. It changes only the capitalization of the letter itself, and not the words, so content, punctuation, and spacing remain as written.

It supports two types of cases, addressing two different problems:

  • Prose cases — for writing that is read: sentence case, Title Case, UPPERCASE, lowercase
  • Programming cases - camelCase, PascalCase, snake_case, kebab-case, cases: codes that computer can read -

All the case formats (with examples)

Case Example Typical Use
UPPERCASE HELLO WORLD Emphasis, warnings, acronyms
lowercase hello world Clear up URLs, casual text
Sentence case Hello world Standard prose, first word of a sentence
Title Case Hello World Headlines, book/movie titles
Capitalized Case Hello World Name(s) and headings (capitalizes each word).
aLtErNaTiNg cAsE hElLo WoRlD Casual and/or artistic social messages
InVeRsE CaSe hELLO wORLD Switches the capitalization of any word(s) that are already capitalized
camelCase helloWorld The names of the variables and functions used in a program.
PascalCase HelloWorld Class names, component names
snake_case hello_world Python variables, database fields
kebab-case hello-world The slugs for urls, css classes, and file names.

Sentence Case vs. Title Case: The Rule People Get Wrong:

These two are most often mixed up and most tools use a shortcut that is not quite correct for either.

  • Sentence case is when only the first letter of the sentence (and any proper nouns) are capitalized, just as in regular writing. A quick brown fox jumps.
  • Title Case caps major words in a title, and normally leaves short function words—articles (a, an, the), coordinating conjunctions (and, but, or), and short prepositions (in, on, of, to) at the beginning or end of the title. Correctly (and imaginatively): The Quick Brown Fox Jumps Over the Lazy Dog — "the" and "over" are both capitalized because they are at the start of a new sentence and in the middle of a sentence that needs a capital letter.

The most common type of converter simply capitalizes each individual word, technically a Capitalized Case, not true Title Case. If you're looking for a converter that doesn't break the rules of these small-word exceptions, but instead capitalizes everything indiscriminately, then you want one that follows AP, Chicago, or APA style, but make sure you're following the same rules as the style guide you're using — some of the conventions differ between AP, Chicago, and APA (for instance, they disagree on which prepositions should be capitalized, and these vary in length: AP says four or more, Chicago says six or more, and APA says seven or more).

Programming Case Styles, Explained

When you're naming a variable, file, or URL, but not writing prose, the case convention is typically not a style decision, but rather a decision made by the language or platform you're using.

  • camelCase: first word lowercase, each subsequent word capitalized (no separators in between words). Commonly used for variables and functions in JavaScript, Java and other languages.
  • PascalCase: words begin with lower case characters, except for the first word, which starts with an uppercase letter, and no words are separated by dashes. Typical class/ component naming for most object oriented languages.
  • snake_case: words separated by underscore all lowercase. Standard for Python, Ruby and most database column naming.
  • kebab-case: Lowercase all words, with hyphens or dashes between them (also known as hyphen-case). Use this for URL slugs, and CSS class names, as hyphens aren't always URL-friendly and browsers/search engines treat hyphens as word separators.

You don't need to be consistent with the case convention used in a specific language to make your code not work, but it will certainly make it look inconsistent from the rest of the code in that ecosystem — which is a great way for a code reviewer to catch you.

Frequently Asked Questions

What's the difference between Title Case and Capitalized Case?

Capitalized Case capitalizes ALL the words. Unlike “capitalizing everything,” title case is more nuanced in that it follows conventions of style guidelines that leave short words—such as articles, conjunctions, prepositions—lowercase unless appearing at the beginning or end of the title, which is “Title Case”.

Is there any change in punctuation or spacing when changing case?

No. The case converter does not add, remove or reorder any punctuation, spacing or line breaks in your original text.

Why is it that camelCase and PascalCase are so alike?

The only difference is that they do the same thing (capitalize the start of each word, no separators) except they don't capitalize the very first letter, PascalCase does. helloWorld vs HelloWorld.

The standard way to use a URL slug is to use kebab-case?

The standard way to use a URL slug is to use kebab-case (hyphen-separated, all lowercase), because hyphens are generally recognized as word boundaries by search engines and browsers (underscores are sometimes recognized as being a single word).

Do I have the ability to change back text to its original case after I change it?

It's one-way conversion and doesn't keep a history of original capitals, only if you had a copy of the original text, which case conversion does not.

Is the use of Title Case consistent across all style guides?

No, AP, Chicago, and MLA all agree on capitalizing the major words, but they disagree on a few details, most notably about which prepositions are "short enough" to remain lowercase. Check the specific rule in the house style guide of the publication, when writing for a publication that has a house style.

Will this work for extremely long documents?

Browser-based converters are generally capable of managing large quantities of text with ease because the actual transformation itself is relatively lightweight – it is more likely that you will limit yourself to the amount of text you can paste and copy than the capacity of the converter.

Is my text stored or sent anywhere when I use this tool?

Text case conversion can run entirely client-side, meaning the transformation happens in your browser without your text being uploaded to a server — a meaningful consideration if you're formatting anything sensitive.

Share This Tool

Browser Extension

Get quick access to remove the gemini watermark from the image and video directly from your browser toolbar.