Skip to content

Case Converter

Converted text
—
Words
—
Characters changed
—

Paste your text, pick the target case and the converted text appears below with its own Copy button. Title Case keeps joining words lower case, so "the lord of the rings" becomes "The Lord of the Rings", while snakecase turns getUserName into getuser_name by splitting where a capital follows a small letter.

About this tool

A caps-lock paragraph from an email, a heading that needs title capitals, or a column label that must become a variable name: each is a few seconds of retyping that is easy to get wrong. This converter covers the ten cases people ask for most. Four are for prose: UPPER, lower, Title and Sentence case. Five are the naming styles programmers use: camelCase for JavaScript variables, PascalCase for class names, snakecase for Python, kebab-case for URLs and CSS, and CONSTANTCASE for fixed values. The last, aLtErNaTiNg, is for memes. Code styles work line by line, so a list of labels becomes a list of names. One limit: Sentence case cannot know proper nouns, so names such as Paris come out lower case and need a manual fix.

How to use it

  1. Add the text

    Type, paste, or open a .txt file from your device. Several lines are fine.

  2. Choose the case

    Pick one of the ten styles in the Convert to list; the result updates straight away.

  3. Copy the result

    Use the Copy button on the result box, and check the words and changed-characters count under it.

Examples

A book title in Title Case

Your text
the lord of the rings
Convert to
Title Case

Result Converted text: The Lord of the Rings
Words: 5
Characters changed: 3

  1. Target case: Title Case.
  2. Every word starts with a capital, except short joining words (a, the, of, in, and …) in the middle of a line.

Short joining words such as of and the stay lower case unless they open the line.

camelCase variable to snake_case

Your text
getUserName
Convert to
snake_case

Result Converted text: get_user_name
Words: 1
Characters changed: 8

  1. Target case: snake_case.
  2. Each line is split into words at spaces, punctuation and lower-to-upper letter changes, then the words are joined again.

The converter splits getUserName where a lower-case letter meets a capital, then joins the three words with underscores, the style Python uses for function names.

A heading as a kebab-case slug

Your text
Hello World Page
Convert to
kebab-case

Result Converted text: hello-world-page
Words: 3
Characters changed: 5

  1. Target case: kebab-case.
  2. Each line is split into words at spaces, punctuation and lower-to-upper letter changes, then the words are joined again.

Words are lowered and joined with hyphens, the form used in URLs and CSS class names.

How it is calculated

Letter cases use Unicode upper/lower mapping per character; code cases split words at spaces, punctuation and small-to-capital changes, then rejoin them

UPPER and lower map every letter through the Unicode case tables, so é becomes É and Greek or Cyrillic letters change too. Title Case raises the first letter of each word but keeps short joining words (a, an, the, and, or, of, in, on, to, by and similar) lower case when they sit inside a line. Sentence case lowers everything, then raises the first letter of the text and the first letter after a full stop, question mark or exclamation mark. For the code styles each line is broken into words wherever a space, hyphen, underscore or other symbol appears, and wherever a small letter is followed by a capital, as in getUser. The words are then lowered and joined with nothing, an underscore or a hyphen. Alternating case flips every other letter, skipping digits and spaces.

When not to use it

  • Headlines that must follow a specific house style such as AP or Chicago, which differ on words like 'with' and 'from'.
  • Text full of brand names like iPhone or eBay, which any case rule will break.
  • Renaming variables across a whole codebase; use your editor's refactor command so every reference changes.

Common mistakes

  • Expecting Sentence case to keep names capitalized; it lowers Paris and Monday like any other word.
  • Pasting a full paragraph into snake_case and getting one very long name instead of one per line.
  • Forgetting that acronyms such as HTML become Html in PascalCase and camelCase.

Frequently asked questions

What is kebab case?

Kebab case writes every word in lower case and joins the words with hyphens, like skewered pieces on a kebab: user-profile-page. It is the usual style for URL slugs, CSS class names and many command-line options. Pick kebab-case in the list and the converter lowers each word and puts a hyphen between them.

Can you show a kebab case example next to the other styles?

Take the words 'shopping cart total'. In kebab-case it is shopping-cart-total, in snakecase shoppingcarttotal, in camelCase shoppingCartTotal, in PascalCase ShoppingCartTotal and in CONSTANTCASE SHOPPINGCARTTOTAL. Only the separator and the capitals change; the words stay the same.

How do I convert uppercase text to lowercase?

Paste the text and choose lower case. Every letter is mapped to its small form, including accented and non-Latin letters, while digits and punctuation stay put. If you want the first word of each sentence to keep its capital, choose Sentence case instead.

How do I capitalize the first letter of each word?

Choose Title Case. It capitalizes the first letter of every word and lowers the rest, but leaves short joining words such as of, the and and in lower case when they are in the middle of a line. In Excel or Google Sheets the PROPER function capitalizes every word, joining words included.

What is the difference between proper case and Pascal case?

Proper case capitalizes each word and keeps the spaces: Order Line Item. Pascal case also capitalizes each word but removes the spaces and punctuation so the result is one name: OrderLineItem. Proper case is for reading; Pascal case is for class and type names in code.

How does sentence case conversion work?

Sentence case lowers the whole text, then capitalizes the first letter of the text and the first letter after each full stop, question mark or exclamation mark. A lone i becomes I. It cannot recognize proper nouns, so check names and places afterwards.

What does the camel case converter do with spaces and symbols?

It treats spaces, hyphens, underscores and other symbols as word breaks and drops them, then joins the words with the first one in lower case and every later one capitalized: 'user first name' becomes userFirstName. Each line of input gives its own name.

Cite this tool

Using this tool in an assignment, article or report? Copy a citation, or a link for your website.

APA

Tools Directory Editorial Team. (2026, November 30). Case Converter. Tools Directory. Retrieved December 1, 2026, from https://directory.milunir.com/text-tools/text-formatting/case-converter/

MLA

Tools Directory Editorial Team. “Case Converter.” Tools Directory, 30 Nov. 2026, https://directory.milunir.com/text-tools/text-formatting/case-converter/. Accessed 1 Dec. 2026.

Chicago

Tools Directory Editorial Team. “Case Converter.” Tools Directory. Last modified November 30, 2026. Accessed December 1, 2026. https://directory.milunir.com/text-tools/text-formatting/case-converter/.

Link<a href="https://directory.milunir.com/text-tools/text-formatting/case-converter/">Case Converter – Tools Directory</a>