</>CodeKitHub中文

Text Case Converter Online

Paste your text and convert it to any case with one click: UPPERCASE, lowercase, Title Case, Sentence case — plus the programmer cases camelCase, PascalCase, snake_case and kebab-case. Handles both prose and code identifiers.

What Is This Tool?

A case converter changes the capitalization style of text. Writers use it to fix accidental caps-lock passages, apply proper Title Case to headlines, or normalize copied text. The Title Case here follows editorial convention: minor words like "of", "and" and "the" stay lowercase unless they start or end the title.

For programmers it converts identifier styles: camelCase (JavaScript variables), PascalCase (class names), snake_case (Python), and kebab-case (URLs and CSS). It splits words on spaces, underscores, hyphens and existing capital letters, so it converts between any two styles directly.

Why Use It?

  • Eight case styles on one page — prose cases and programmer cases together.
  • Editorial Title Case that keeps minor words (a, of, the) lowercase, like real headlines.
  • Converts between identifier styles directly: camelCase → snake_case in one click.
  • Fix caps-lock accidents without retyping.
  • Free, instant, no upload.

How to Use

  1. Paste or type your text in the input box.
  2. Click the case style you want.
  3. The result appears in the output box below.
  4. Click "Copy" to use it.

Example

Input

the quick brown fox

Output

Title Case: The Quick Brown Fox
camelCase:  theQuickBrownFox
snake_case: the_quick_brown_fox

Note the editorial Title Case keeps "the" capitalized only at the start.

Frequently Asked Questions

What's the difference between Title Case and Sentence case?

Title Case capitalizes every major word (used for headlines and book titles); Sentence case capitalizes only the first word of each sentence (used for normal prose and most modern UI text).

Which words stay lowercase in Title Case?

Short function words: articles (a, an, the), short conjunctions (and, but, or) and short prepositions (of, in, to, at…) — unless they're the first or last word. This follows the style used by major publications.

When should I use camelCase vs snake_case?

Follow your language's convention: camelCase for JavaScript/Java variables, PascalCase for class names in most languages, snake_case for Python and Ruby, kebab-case for URLs, CSS classes and file names.

Can it convert camelCase directly to snake_case?

Yes. The converter recognizes existing capital letters as word boundaries, so myVariableName → my_variable_name works in one click — handy when porting code between languages.

Does it work with non-English text?

Case conversion applies to scripts that have letter case (Latin, Cyrillic, Greek). Chinese and Japanese characters have no case and pass through unchanged — mixed text is safe.

Related Tools