Text Case Converter

Convert text case quickly with multiple naming conventions

Input
Output

Select Conversion Mode

What is Text Case Conversion?

Text case conversion transforms alphabetic characters to different case forms. Beyond basic uppercase, lowercase, and capitalize, it supports various programming naming conventions like camelCase, PascalCase, snake_case, etc.

These conversions are useful for programmers and editors to quickly standardize text formats or convert variable naming styles.

How to Use

Basic Operations

  1. Enter or paste text to convert in the left input box
  2. Click the corresponding button to select conversion mode
  3. The right side automatically shows the converted result
  4. Click 'Copy' to copy the result to clipboard

Conversion Mode Description

  • UPPERCASE: Convert all letters to uppercase, e.g. HELLO WORLD
  • lowercase: Convert all letters to lowercase, e.g. hello world
  • Capitalize Words: Capitalize the first letter of each word, e.g. Hello World
  • camelCase: First word lowercase, subsequent words capitalized, e.g. helloWorld
  • PascalCase: Capitalize the first letter of all words, e.g. HelloWorld
  • snake_case: Words connected by underscores, e.g. hello_world
  • kebab-case: Words connected by hyphens, e.g. hello-world

Examples

Programming Naming Conversion

Input: user_name camelCase: userName PascalCase: UserName snake_case: user_name kebab-case: user-name CONSTANT: USER_NAME

Text Format Conversion

Input: hello world UPPERCASE: HELLO WORLD lowercase: hello world Capitalize: Hello World Sentence: Hello world

Different Separator Conversion

Input: HelloWorld snake_case: hello_world kebab-case: hello-world dot.case: hello.world path/case: hello/world

FAQ

Q: What's the difference between camelCase and PascalCase?

A: camelCase starts with lowercase first word, PascalCase capitalizes all words. camelCase is commonly used for JavaScript variables and functions, PascalCase for class names and types.

Q: Can Chinese text be case-converted?

A: Chinese characters don't have case distinctions. Conversion mainly affects English letters. Chinese text remains unchanged during conversion.

Q: How to convert camelCase to snake_case?

A: Enter camelCase text (e.g. userName), click 'snake_case' button to convert to user_name. The tool automatically recognizes camelCase structure.

Q: What is toggle case used for?

A: Toggle case swaps uppercase to lowercase and lowercase to uppercase. For example, 'HeLLo' becomes 'hEllO', useful for special formatting needs or encoding scenarios.