Case Converter

A case converter changes text between UPPERCASE, lowercase, Title Case, Sentence case and programming styles like camelCase and snake_case. Paste your text and pick a style to convert it instantly.

Reviewed by ToolNook editorial team Updated Sources

Convert to

What is a case converter?

A case converter changes the capitalisation of text without retyping it. It rescues paragraphs typed with Caps Lock on, tidies headlines into consistent title case, and turns phrases into the naming styles programmers use for variables, functions, files and database columns.

  • Title Case capitalises major words but keeps short words such as “of”, “the” and “and” lowercase unless they start or end the title.
  • Sentence case capitalises only the first letter of each sentence.
  • camelCase and PascalCase join words with capitals, common in JavaScript, Java and C#.
  • snake_case and CONSTANT_CASE join words with underscores, common in Python, SQL and environment variables.
  • kebab-case joins words with hyphens, used in URLs and CSS class names.

How to use it

  1. Type or paste your text into the top box.
  2. Choose a case style. The result updates immediately.
  3. Click Copy result, or Use as input to chain another conversion.

How words are detected

For programming cases, the converter splits text at spaces, punctuation, underscores and hyphens, and also at existing case changes. That means it can convert between styles directly: getHTTPResponse becomes get_http_response in snake_case, and user-profile-page becomes UserProfilePage in PascalCase.

Title case follows the common convention used by many style guides for short articles, conjunctions and prepositions. Publications differ on details, for example whether to capitalise longer prepositions such as “about”, so review important headlines.

Examples

Style“the quick brown fox”
Title CaseThe Quick Brown Fox
Sentence caseThe quick brown fox
camelCasetheQuickBrownFox
snake_casethe_quick_brown_fox
kebab-casethe-quick-brown-fox
CONSTANT_CASETHE_QUICK_BROWN_FOX

More worked examples

Programming: “user profile page” becomes userProfilePage in camelCase and USER_PROFILE_PAGE as a constant.

Common mistakes to avoid

  • Expecting sentence case to keep names capitalized. Fix proper nouns by hand afterwards.
  • Using title case for URLs. URLs work best in lowercase; use the text to slug converter.
  • Assuming one title case standard. AP, Chicago and APA styles differ on short words, so check your style guide.

Sources and methodology

The calculations on this page follow these published standards and references. The code is covered by automated tests against known values.

Frequently asked questions

Does sentence case keep proper nouns capitalised?

No. Sentence case lowercases everything except the first letter of each sentence, so names such as “London” need to be fixed by hand afterwards.

Which case should I use for URLs?

Lowercase kebab-case is the usual choice for URLs because it is readable and avoids case-sensitivity problems. Our text to slug tool also removes accents and symbols.

Does it work with accented and non-Latin letters?

Yes. Upper and lower case conversion uses Unicode rules, so letters such as é, ß and Cyrillic characters are handled correctly.

Is there a length limit?

Not in practice. The conversion runs in your browser and handles long documents in a fraction of a second.